Skip to content

Commit

Permalink
SQLite3 v2.x isn't yet working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascaton committed Apr 21, 2024
1 parent 37f295d commit 184da01
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 18 deletions.
11 changes: 8 additions & 3 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ rails_versions = JSON.parse(Net::HTTP.get(URI('https://rubygems.org/api/v1/versi

if Gem::Version.new(rails_version) <= Gem::Version.new(5.0)
gem 'sqlite3', '< 1.4'
elsif Gem::Version.new(RUBY_VERSION) < '3'
gem 'sqlite3', '< 2'
else
gem 'sqlite3'
# v2.x isn't yet working. See: https://github.com/sparklemotion/sqlite3-ruby/issues/529
gem 'sqlite3', '< 2'
end

# elsif Gem::Version.new(RUBY_VERSION) < '3'
# gem 'sqlite3', '< 2'
# else
# gem 'sqlite3'
# end
end
end
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ GEM
rubocop-factory_bot (~> 2.22)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
sqlite3 (2.0.1)
sqlite3 (1.7.3)
mini_portile2 (~> 2.8.0)
thor (1.2.2)
tzinfo (2.0.6)
Expand All @@ -110,7 +110,7 @@ DEPENDENCIES
rubocop
rubocop-rake
rubocop-rspec
sqlite3
sqlite3 (< 2)
wwtd

BUNDLED WITH
Expand Down
2 changes: 1 addition & 1 deletion enumerate_it.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ Gem::Specification.new do |gem|
gem.add_development_dependency 'rubocop'
gem.add_development_dependency 'rubocop-rake'
gem.add_development_dependency 'rubocop-rspec'
gem.add_development_dependency 'sqlite3'
gem.add_development_dependency 'sqlite3', '< 2'
gem.add_development_dependency 'wwtd'
end
2 changes: 1 addition & 1 deletion gemfiles/rails_5.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ source 'https://rubygems.org'

gem 'activerecord', '~> 5.1.7'
gem 'activesupport', '~> 5.1.7'
gem 'sqlite3'
gem 'sqlite3', '< 2'

gemspec path: '../'
2 changes: 1 addition & 1 deletion gemfiles/rails_5.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ source 'https://rubygems.org'

gem 'activerecord', '~> 5.2.8.1'
gem 'activesupport', '~> 5.2.8.1'
gem 'sqlite3'
gem 'sqlite3', '< 2'

gemspec path: '../'
2 changes: 1 addition & 1 deletion gemfiles/rails_6.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ source 'https://rubygems.org'

gem 'activerecord', '~> 6.0.6.1'
gem 'activesupport', '~> 6.0.6.1'
gem 'sqlite3'
gem 'sqlite3', '< 2'

gemspec path: '../'
6 changes: 3 additions & 3 deletions gemfiles/rails_6.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

source 'https://rubygems.org'

gem 'activerecord', '~> 6.1.7.6'
gem 'activesupport', '~> 6.1.7.6'
gem 'sqlite3'
gem 'activerecord', '~> 6.1.7.7'
gem 'activesupport', '~> 6.1.7.7'
gem 'sqlite3', '< 2'

gemspec path: '../'
6 changes: 3 additions & 3 deletions gemfiles/rails_7.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

source 'https://rubygems.org'

gem 'activerecord', '~> 7.0.8'
gem 'activesupport', '~> 7.0.8'
gem 'sqlite3'
gem 'activerecord', '~> 7.0.8.1'
gem 'activesupport', '~> 7.0.8.1'
gem 'sqlite3', '< 2'

gemspec path: '../'
6 changes: 3 additions & 3 deletions gemfiles/rails_7.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

source 'https://rubygems.org'

gem 'activerecord', '~> 7.1.1'
gem 'activesupport', '~> 7.1.1'
gem 'sqlite3'
gem 'activerecord', '~> 7.1.3.2'
gem 'activesupport', '~> 7.1.3.2'
gem 'sqlite3', '< 2'

gemspec path: '../'

0 comments on commit 184da01

Please sign in to comment.