diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index b8674da..2f823e1 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -14,6 +14,7 @@ on: branches: ['master'] schedule: - cron: '0 0 * * 0' + workflow_dispatch: permissions: contents: read @@ -23,12 +24,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - ruby-version: ['3.0', '3.1'] - activerecord: ['6.0', '6.1', '7.0', '7.1'] + ruby-version: ['3.0', '3.1', '3.2', '3.3'] + activerecord: ['7.0', '7.1', '7.2'] + exclude: + - ruby-version: '3.0' + activerecord: '7.2' env: BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/rails_${{ matrix.activerecord }}.gemfile steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Ruby # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, # change this to (see https://github.com/ruby/setup-ruby#versioning): diff --git a/.ruby-version b/.ruby-version deleted file mode 100644 index 818bd47..0000000 --- a/.ruby-version +++ /dev/null @@ -1 +0,0 @@ -3.0.6 diff --git a/Appraisals b/Appraisals index f3dc278..2a248b4 100644 --- a/Appraisals +++ b/Appraisals @@ -1,13 +1,3 @@ -appraise "rails-6.0" do - gem 'rails', '~> 6.0' - gem "rspec-rails", '~> 5' -end - -appraise "rails-6.1" do - gem 'rails', '~> 6.1' - gem "rspec-rails", '>= 6' -end - appraise "rails-7.0" do gem 'rails', '~> 7.0' gem "rspec-rails", '>= 6' @@ -17,3 +7,8 @@ appraise "rails-7.1" do gem 'rails', '~> 7.1' gem "rspec-rails", '>= 6' end + +appraise "rails-7.2" do + gem 'rails', '~> 7.2' + gem "rspec-rails", '>= 6' +end diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d9dde7..35da3e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,11 @@ # Changelog + + ## 3.0.7 (4-9-2024) + * Adi Suryanata Herwana - Support Rails >= 7.2 and Ruby >= 3.3. + + ## 3.0.6 (24-7-2024) + * Bivan Alzacky Harmanto - Support Rails >= 6.0 and Ruby >= 3.0. + ## 3.0.5 (22-8-2017) * Jonathan Putney - Support Rails 5.0. * Joel Low - Add additional combinations to Travis build matrix. diff --git a/activerecord-userstamp.gemspec b/activerecord-userstamp.gemspec index 2f53d86..d947bb5 100644 --- a/activerecord-userstamp.gemspec +++ b/activerecord-userstamp.gemspec @@ -6,7 +6,7 @@ require 'active_record/userstamp/version' Gem::Specification.new do |s| s.name = 'activerecord-userstamp' s.version = ActiveRecord::Userstamp::VERSION - s.authors = ['Bivan Alzacky Harmanto'] + s.authors = ['Joel Low', 'Bivan Alzacky Harmanto', 'Adi Suryanata Herwana'] s.email = ['bivan.alzacky@gmail.com'] s.summary = 'Adds magic creator and updater attributes to your ActiveRecord models.' @@ -19,7 +19,7 @@ Gem::Specification.new do |s| s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } s.require_paths = ['lib'] - s.add_dependency 'rails', '>= 6' + s.add_dependency 'rails', '>= 7.0' s.required_ruby_version = ">= 3.0" @@ -27,7 +27,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'rake' s.add_development_dependency 'rdoc' s.add_development_dependency 'simplecov' - s.add_development_dependency 'coveralls' + s.add_development_dependency 'coveralls_reborn' s.add_development_dependency 'codeclimate-test-reporter' s.add_development_dependency 'sqlite3', "~> 1.7" s.add_development_dependency "appraisal", "~> 2.1" diff --git a/gemfiles/rails_6.0.gemfile b/gemfiles/rails_6.0.gemfile deleted file mode 100644 index 2b81f9a..0000000 --- a/gemfiles/rails_6.0.gemfile +++ /dev/null @@ -1,8 +0,0 @@ -# This file was generated by Appraisal - -source "https://rubygems.org" - -gem "rails", "~> 6.0" -gem "rspec-rails", "~> 5" - -gemspec path: "../" diff --git a/gemfiles/rails_6.1.gemfile b/gemfiles/rails_7.2.gemfile similarity index 84% rename from gemfiles/rails_6.1.gemfile rename to gemfiles/rails_7.2.gemfile index 89b786e..e2c7394 100644 --- a/gemfiles/rails_6.1.gemfile +++ b/gemfiles/rails_7.2.gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" -gem "rails", "~> 6.1" +gem "rails", "~> 7.2" gem "rspec-rails", ">= 6" gemspec path: "../" diff --git a/lib/active_record/userstamp/version.rb b/lib/active_record/userstamp/version.rb index ee39458..4542b2a 100644 --- a/lib/active_record/userstamp/version.rb +++ b/lib/active_record/userstamp/version.rb @@ -1,4 +1,4 @@ module ActiveRecord; end module ActiveRecord::Userstamp - VERSION = '3.0.5' + VERSION = '3.0.7' end