From b94f4e2ea3c14f360915ceaa254a20197fc31a08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20G=C3=B3rniak?= Date: Thu, 9 Jan 2025 01:11:00 +0100 Subject: [PATCH] Use proper version of "sqlite3" for newest Rails versions --- Gemfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 98e37eda..2887d3d0 100644 --- a/Gemfile +++ b/Gemfile @@ -13,11 +13,12 @@ ENV['CURRENT_GEMFILE'] ||= __FILE__ is_jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && RUBY_ENGINE == 'jruby') -GEMFILE_RAILS_VERSION = '~> 7.2.0'.freeze +GEMFILE_RAILS_VERSION = '~> 8.0.0'.freeze gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby gem 'jruby-openssl', platform: :jruby gem 'rails', GEMFILE_RAILS_VERSION gem 'rake' + if GEMFILE_RAILS_VERSION < '6.0' gem 'rspec-rails', '~> 3.4' elsif GEMFILE_RAILS_VERSION < '7.0' @@ -26,7 +27,9 @@ else gem 'rspec-rails', '~> 6.0.3' end -if GEMFILE_RAILS_VERSION < '6.0' +if GEMFILE_RAILS_VERSION >= '8.0' + gem 'sqlite3', '~> 2.0', platform: [:ruby, :mswin, :mingw] +elsif GEMFILE_RAILS_VERSION < '6.0' gem 'sqlite3', '< 1.4.0', platform: [:ruby, :mswin, :mingw] else gem 'sqlite3', '~> 1.4', platform: [:ruby, :mswin, :mingw] @@ -65,6 +68,7 @@ if GEMFILE_RAILS_VERSION < '6.0' else gem 'delayed_job', '~> 4.1', require: false end + gem 'generator_spec' gem 'redis', '<= 4.8.0' gem 'resque', '< 2.0.0'