From e9512163e6c3927c03c1c70c9c136f12ab0d8088 Mon Sep 17 00:00:00 2001 From: Chris Griego Date: Tue, 12 Nov 2024 15:32:10 -0800 Subject: [PATCH] Support Rails 8.0 --- .github/workflows/test.yaml | 19 +++++++++++++++++++ CHANGELOG.md | 4 ++++ Gemfile | 6 +++--- active_attr.gemspec | 6 +++--- gemfiles/rails_7_2.gemfile | 10 ++++++++++ lib/active_attr/version.rb | 2 +- 6 files changed, 40 insertions(+), 7 deletions(-) create mode 100644 gemfiles/rails_7_2.gemfile diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 90493c5..d1c19c3 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -41,6 +41,7 @@ jobs: - gemfiles/rails_6_1.gemfile - gemfiles/rails_7_0.gemfile - gemfiles/rails_7_1.gemfile + - gemfiles/rails_7_2.gemfile - Gemfile - gemfiles/rails_head.gemfile exclude: @@ -58,6 +59,8 @@ jobs: gemfile: gemfiles/rails_7_0.gemfile - ruby: "2.1" gemfile: gemfiles/rails_7_1.gemfile + - ruby: "2.1" + gemfile: gemfiles/rails_7_2.gemfile - ruby: "2.1" gemfile: Gemfile - ruby: "2.1" @@ -70,6 +73,8 @@ jobs: gemfile: gemfiles/rails_7_0.gemfile - ruby: "2.2" gemfile: gemfiles/rails_7_1.gemfile + - ruby: "2.2" + gemfile: gemfiles/rails_7_2.gemfile - ruby: "2.2" gemfile: Gemfile - ruby: "2.2" @@ -82,6 +87,8 @@ jobs: gemfile: gemfiles/rails_7_0.gemfile - ruby: "2.3" gemfile: gemfiles/rails_7_1.gemfile + - ruby: "2.3" + gemfile: gemfiles/rails_7_2.gemfile - ruby: "2.3" gemfile: Gemfile - ruby: "2.3" @@ -94,6 +101,8 @@ jobs: gemfile: gemfiles/rails_7_0.gemfile - ruby: "2.4" gemfile: gemfiles/rails_7_1.gemfile + - ruby: "2.4" + gemfile: gemfiles/rails_7_2.gemfile - ruby: "2.4" gemfile: Gemfile - ruby: "2.4" @@ -106,6 +115,8 @@ jobs: gemfile: gemfiles/rails_7_0.gemfile - ruby: "2.5" gemfile: gemfiles/rails_7_1.gemfile + - ruby: "2.5" + gemfile: gemfiles/rails_7_2.gemfile - ruby: "2.5" gemfile: Gemfile - ruby: "2.5" @@ -118,6 +129,8 @@ jobs: gemfile: gemfiles/rails_7_0.gemfile - ruby: "2.6" gemfile: gemfiles/rails_7_1.gemfile + - ruby: "2.6" + gemfile: gemfiles/rails_7_2.gemfile - ruby: "2.6" gemfile: Gemfile - ruby: "2.6" @@ -134,6 +147,8 @@ jobs: gemfile: gemfiles/rails_4_1.gemfile - ruby: "2.7" gemfile: gemfiles/rails_4_2.gemfile + - ruby: "2.7" + gemfile: gemfiles/rails_7_2.gemfile - ruby: "2.7" gemfile: Gemfile - ruby: "2.7" @@ -156,6 +171,8 @@ jobs: gemfile: gemfiles/rails_5_1.gemfile - ruby: "3.0" gemfile: gemfiles/rails_5_2.gemfile + - ruby: "3.0" + gemfile: gemfiles/rails_7_2.gemfile - ruby: "3.0" gemfile: Gemfile - ruby: "3.0" @@ -178,6 +195,8 @@ jobs: gemfile: gemfiles/rails_5_1.gemfile - ruby: "3.1" gemfile: gemfiles/rails_5_2.gemfile + - ruby: "3.1" + gemfile: Gemfile - ruby: "3.1" gemfile: gemfiles/rails_head.gemfile - ruby: "3.2" diff --git a/CHANGELOG.md b/CHANGELOG.md index fc1701f..4b75b78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# ActiveAttr 0.17.1 (November 12, 2024) + +* ActiveAttr now supports Rails 8.0 + # ActiveAttr 0.17.0 (September 26, 2024) * ActiveAttr now supports Ruby 3.3 diff --git a/Gemfile b/Gemfile index 1a2b64d..d6978c9 100644 --- a/Gemfile +++ b/Gemfile @@ -2,9 +2,9 @@ source "https://rubygems.org" gemspec :development_group => :test -gem "activemodel", "~> 7.2.0" -gem "activesupport", "~> 7.2.0" -gem "actionpack", "~> 7.2.0" +gem "activemodel", "~> 8.0.0" +gem "activesupport", "~> 8.0.0" +gem "actionpack", "~> 8.0.0" gem "activemodel-serializers-xml", :group => :test gem "rexml", :group => :test gem "protected_attributes_continued", :group => :test diff --git a/active_attr.gemspec b/active_attr.gemspec index 50d0604..1024f23 100644 --- a/active_attr.gemspec +++ b/active_attr.gemspec @@ -22,9 +22,9 @@ Gem::Specification.new do |gem| gem.required_ruby_version = ">= 2.1.0" - gem.add_runtime_dependency "actionpack", ">= 3.0.2", "< 8.0" - gem.add_runtime_dependency "activemodel", ">= 3.0.2", "< 8.0" - gem.add_runtime_dependency "activesupport", ">= 3.0.2", "< 8.0" + gem.add_runtime_dependency "actionpack", ">= 3.0.2", "< 8.1" + gem.add_runtime_dependency "activemodel", ">= 3.0.2", "< 8.1" + gem.add_runtime_dependency "activesupport", ">= 3.0.2", "< 8.1" gem.add_development_dependency "bundler" gem.add_development_dependency "factory_bot", "< 7.0" diff --git a/gemfiles/rails_7_2.gemfile b/gemfiles/rails_7_2.gemfile new file mode 100644 index 0000000..a3bb53b --- /dev/null +++ b/gemfiles/rails_7_2.gemfile @@ -0,0 +1,10 @@ +source "https://rubygems.org" + +gemspec :development_group => :test, :path => ".." + +gem "activemodel", "~> 7.2.0" +gem "activesupport", "~> 7.2.0" +gem "actionpack", "~> 7.2.0" +gem "activemodel-serializers-xml", :group => :test +gem "rexml", :group => :test +gem "protected_attributes_continued", :group => :test diff --git a/lib/active_attr/version.rb b/lib/active_attr/version.rb index 80beb92..b216f4c 100644 --- a/lib/active_attr/version.rb +++ b/lib/active_attr/version.rb @@ -1,5 +1,5 @@ module ActiveAttr # Complete version string # @since 0.1.0 - VERSION = "0.17.0" + VERSION = "0.17.1" end