From 65e5e8e4b95e8ed512a1656fffe91999f1229f1e Mon Sep 17 00:00:00 2001 From: Mitsuhiro Shibuya Date: Sat, 1 Jun 2024 18:06:18 +0900 Subject: [PATCH] Pin sqlite3 to 1.x, to fix Rails 7 builds --- Gemfile | 2 +- gemfiles/rails-7-0.gemfile | 2 +- gemfiles/rails-7-1.gemfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index b4fbadb86..5e4c4a4ec 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" gem "rails", ">= 6.0.0" gem "activemodel-serializers-xml" -gem 'sqlite3', platforms: :ruby +gem "sqlite3", "~> 1.0", platforms: :ruby gem "activerecord-jdbcsqlite3-adapter", platform: [:jruby, :truffleruby] # See https://github.com/fog/fog-google/issues/535 for this restriction. gem "fog-google", "~> 1.13.0" if RUBY_VERSION.to_f < 2.7 diff --git a/gemfiles/rails-7-0.gemfile b/gemfiles/rails-7-0.gemfile index 030fff33d..f40ee8aac 100644 --- a/gemfiles/rails-7-0.gemfile +++ b/gemfiles/rails-7-0.gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" gem "rails", "~> 7.0.0" gem "activemodel-serializers-xml" -gem "sqlite3", platforms: :ruby +gem "sqlite3", "~> 1.0", platforms: :ruby gem "activerecord-jdbcsqlite3-adapter", platform: [:jruby, :truffleruby] gemspec :path => "../" diff --git a/gemfiles/rails-7-1.gemfile b/gemfiles/rails-7-1.gemfile index 23697ebfc..6ae198f5c 100644 --- a/gemfiles/rails-7-1.gemfile +++ b/gemfiles/rails-7-1.gemfile @@ -2,7 +2,7 @@ source "https://rubygems.org" gem "rails", "~> 7.1.0" gem "activemodel-serializers-xml" -gem "sqlite3", platforms: :ruby +gem "sqlite3", "~> 1.0", platforms: :ruby gem "activerecord-jdbcsqlite3-adapter", platform: [:jruby, :truffleruby] gem "observer" # Workaround for https://github.com/rmagick/rmagick/pull/1411