Skip to content

Commit

Permalink
Use latest sqlite3 version when possible
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascaton committed Oct 14, 2023
1 parent 46e810c commit 7af4db0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ rails_versions = JSON.parse(Net::HTTP.get(URI('https://rubygems.org/api/v1/versi
gem 'activesupport', "~> #{current_version}"
gem 'activerecord', "~> #{current_version}"

gem 'sqlite3', Gem::Version.new(version) > Gem::Version.new(5.0) ? '~> 1.4.2' : '< 1.4'
if Gem::Version.new(version) > Gem::Version.new(5.0)
gem 'sqlite3'
else
gem 'sqlite3', '< 1.4'
end
end
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', '~> 1.4.2'
gem 'sqlite3'

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', '~> 1.4.2'
gem 'sqlite3'

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', '~> 1.4.2'
gem 'sqlite3'

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

gem 'activerecord', '~> 6.1.7.6'
gem 'activesupport', '~> 6.1.7.6'
gem 'sqlite3', '~> 1.4.2'
gem 'sqlite3'

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.7.2'
gem 'activesupport', '~> 7.0.7.2'
gem 'sqlite3', '~> 1.4.2'
gem 'activerecord', '~> 7.0.8'
gem 'activesupport', '~> 7.0.8'
gem 'sqlite3'

gemspec path: '../'

0 comments on commit 7af4db0

Please sign in to comment.