From d7d445917c65d17db1728376d3afb963c10350bd Mon Sep 17 00:00:00 2001 From: Anthony O'Connor Date: Tue, 13 Oct 2026 15:52:15 -0700 Subject: [PATCH] Update sqlite3 to 2.9.6 Keeps the test database driver on a supported release line so we pick up upstream SQLite and security fixes instead of staying pinned to 1.x. The pin moves from the gemspec to the Gemfile so the Active Record 7.0 appraisal can override it: AR 7.0's SQLite adapter refuses to load with sqlite3 2.x (it requires ~> 1.4), and a gemspec dependency cannot be overridden per appraisal. --- Appraisals | 2 ++ Gemfile | 1 + inheritance_integer_type.gemspec | 1 - 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Appraisals b/Appraisals index 63e9331..697e735 100644 --- a/Appraisals +++ b/Appraisals @@ -1,6 +1,8 @@ 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 diff --git a/Gemfile b/Gemfile index eff579c..55a20e1 100644 --- a/Gemfile +++ b/Gemfile @@ -15,6 +15,7 @@ else end gem "activerecord", ar +gem "sqlite3", "~> 2.9", ">= 2.9.6" group :development, :test do gem "appraisal", "2.5.0" diff --git a/inheritance_integer_type.gemspec b/inheritance_integer_type.gemspec index 65e6be3..fa75771 100644 --- a/inheritance_integer_type.gemspec +++ b/inheritance_integer_type.gemspec @@ -22,6 +22,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency "rake" spec.add_development_dependency "rspec" spec.add_development_dependency "activerecord", ">= 7.0" - spec.add_development_dependency "sqlite3", "~> 1.4" spec.add_development_dependency "pry" end