diff --git a/Gemfile b/Gemfile index 19f70996a..68ec2043b 100644 --- a/Gemfile +++ b/Gemfile @@ -123,12 +123,12 @@ if RUBY_PLATFORM == 'java' else gem 'activerecord-jdbcsqlite3-adapter', "~> #{rails.tr('.', '')}.0" end +elsif RUBY_VERSION < '3.0' + gem 'sqlite3', '~> 1.4.4' elsif frameworks_versions['rails'] =~ /^(4|5)/ gem 'sqlite3', '~> 1.3.6' -elsif RUBY_VERSION < '2.7' - gem 'sqlite3', '~> 1.4.4' else - gem 'sqlite3' + gem 'sqlite3', '~> 2.0' end # sneakers main only supports >=2.5.0 diff --git a/spec/support/mock_intake.rb b/spec/support/mock_intake.rb index 486a85a84..a0af9a4b3 100644 --- a/spec/support/mock_intake.rb +++ b/spec/support/mock_intake.rb @@ -19,7 +19,7 @@ require 'json' require 'timeout' -require 'rack/chunked' +require 'rack/chunked' if ::Rack.release < '3.1.0' class MockIntake def initialize