From 79cf4662c85c44c85185b9dc8d32d5148c2d5d97 Mon Sep 17 00:00:00 2001 From: Anthony O'Connor Date: Mon, 2 Nov 2026 13:48:17 -0700 Subject: [PATCH 1/2] Test against ActiveRecord 8.1 instead of 7.0/7.1 The only Clio consumer of this gem (themis) runs ActiveRecord 8.1, but CI only exercised 7.0 and 7.1, so we had no signal that the gem works on the version we actually ship. Running the suite on 8.1 immediately surfaced a break in the spec setup: MigrationContext no longer accepts the SchemaMigration class as its second argument (removed in 7.2), so the suite could not boot. Letting it pick the schema migration from the connection works on 7.1+. Dropping the 7.0 appraisal also removes the sqlite3 1.x and concurrent-ruby pins that only existed to keep that old adapter loading. --- Appraisals | 12 ++---------- Gemfile | 2 +- inheritance_integer_type.gemspec | 2 +- spec/spec_helper.rb | 2 +- 4 files changed, 5 insertions(+), 13 deletions(-) diff --git a/Appraisals b/Appraisals index 697e735..a82c5d6 100644 --- a/Appraisals +++ b/Appraisals @@ -1,11 +1,3 @@ -appraise "activerecord-7.0" do - gem "activerecord", "~> 7.0.0" - gem "concurrent-ruby", "1.3.4" - # Active Record 7.0's SQLite adapter only supports sqlite3 1.x - gem "sqlite3", "~> 1.4" -end - -appraise "activerecord-7.1" do - gem "activerecord", "~> 7.1.0" - gem "concurrent-ruby" +appraise "activerecord-8.1" do + gem "activerecord", "~> 8.1.0" end diff --git a/Gemfile b/Gemfile index 55a20e1..72b8dca 100644 --- a/Gemfile +++ b/Gemfile @@ -9,7 +9,7 @@ ar = case ar_version when "master" { github: "rails/rails" } when "default" - ">= 6.0" + ">= 8.1" else "~> #{ar_version}" end diff --git a/inheritance_integer_type.gemspec b/inheritance_integer_type.gemspec index fa75771..0848aed 100644 --- a/inheritance_integer_type.gemspec +++ b/inheritance_integer_type.gemspec @@ -21,6 +21,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency "bundler" spec.add_development_dependency "rake" spec.add_development_dependency "rspec" - spec.add_development_dependency "activerecord", ">= 7.0" + spec.add_development_dependency "activerecord", ">= 8.1" spec.add_development_dependency "pry" end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b003f0e..307170d 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -9,7 +9,7 @@ RSpec.configure do |config| config.before(:suite) do - ActiveRecord::MigrationContext.new("#{File.dirname(__FILE__)}/support/migrations", ::ActiveRecord::SchemaMigration).migrate + ActiveRecord::MigrationContext.new("#{File.dirname(__FILE__)}/support/migrations").migrate end # No need to return the run the down migration after the test From 68c564620d61fd3e8a6cbd235d7568e3488e2eea Mon Sep 17 00:00:00 2001 From: Anthony O'Connor Date: Mon, 2 Nov 2026 15:01:21 -0700 Subject: [PATCH 2/2] Release 0.3.0 requiring ActiveRecord 8.1 CI now only verifies ActiveRecord 8.1, so publishing a version that still claims 7.0+ support would promise compatibility we no longer test. Declaring activerecord as a runtime dependency lets RubyGems stop apps on older Rails from resolving to this version, instead of relying on users reading the README. This is a minor bump because dropping supported Rails versions is a breaking change for a pre-1.0 gem. 0.2.3 was never published, so 7.x users stay on 0.2.2, which has the same library code. --- README.md | 2 +- inheritance_integer_type.gemspec | 2 +- lib/inheritance_integer_type/version.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4eb543a..6b54895 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ The problem with this approach is that `type` is a string (and by default it is ## Installation -_Current versions of this gem (>= v0.2.3) only support Ruby 3+ and ActiveRecord >= 7.0. For ActiveRecord 6.1, use v0.2.2. For Ruby <= v2.7 or ActiveRecord <= 6.0, use v0.1.3._ +_Current versions of this gem (>= v0.3.0) only support ActiveRecord >= 8.1. For ActiveRecord 6.1 through 8.0, use v0.2.2. For Ruby <= v2.7 or ActiveRecord <= 6.0, use v0.1.3._ Add this line to your application's Gemfile: diff --git a/inheritance_integer_type.gemspec b/inheritance_integer_type.gemspec index 0848aed..5d3d7b1 100644 --- a/inheritance_integer_type.gemspec +++ b/inheritance_integer_type.gemspec @@ -21,6 +21,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency "bundler" spec.add_development_dependency "rake" spec.add_development_dependency "rspec" - spec.add_development_dependency "activerecord", ">= 8.1" + spec.add_dependency "activerecord", ">= 8.1" spec.add_development_dependency "pry" end diff --git a/lib/inheritance_integer_type/version.rb b/lib/inheritance_integer_type/version.rb index 071b91a..d913f15 100644 --- a/lib/inheritance_integer_type/version.rb +++ b/lib/inheritance_integer_type/version.rb @@ -1,3 +1,3 @@ module InheritanceIntegerType - VERSION = "0.2.3" + VERSION = "0.3.0" end