From 34a6b0b211a8996327865207fcdaa7cfd9ba29fa Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Mon, 17 Jun 2024 11:43:59 +0200 Subject: [PATCH] Restrict SQLite to 1.x They just released sqlite3 2.0.0, but ActiveRecord's sqlite3 adapter doesn't know about this yet, leading to conflicting sqlite3 gems in specs. This is probably a temporary fix until ActiveRecord learns the news. See https://github.com/rails/rails/blob/main/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14 and https://github.com/sparklemotion/sqlite3-ruby/blob/main/CHANGELOG.md --- Gemfile | 2 +- lib/solidus_dev_support/templates/extension/Gemfile.tt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 12b11bb2..0721eca2 100644 --- a/Gemfile +++ b/Gemfile @@ -21,7 +21,7 @@ group :test do gem 'mysql2' gem 'pg' gem 'solidus_auth_devise' - gem 'sqlite3' + gem 'sqlite3', '~> 1.4' end # Use a local Gemfile to include development dependencies that might not be diff --git a/lib/solidus_dev_support/templates/extension/Gemfile.tt b/lib/solidus_dev_support/templates/extension/Gemfile.tt index b0194708..71655b7e 100644 --- a/lib/solidus_dev_support/templates/extension/Gemfile.tt +++ b/lib/solidus_dev_support/templates/extension/Gemfile.tt @@ -30,7 +30,7 @@ when 'mysql' when 'postgresql' gem 'pg' else - gem 'sqlite3' + gem 'sqlite3', '~> 1.4' end # While we still support Ruby < 3 we need to workaround a limitation in