Skip to content

Commit

Permalink
Pin sqlite3 to match versioning in Rails 6.1 and 7.0 for tests (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
4ndypanda authored May 22, 2024
1 parent 928152a commit 757a437
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.bundle
.config
.ruby-version
.tool-versions
.yardoc
.idea/
enumerize.iml
Expand Down
1 change: 0 additions & 1 deletion .tool-versions

This file was deleted.

2 changes: 1 addition & 1 deletion Gemfile.global
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if ENV['TEST_FRAMEWORK'] == 'rspec'
gem 'rspec', :require => false
end

gem 'pg', '~> 1.5.3', :platform => [:ruby, :mswin, :mingw]
gem 'pg', '~> 1.5.3', platforms: [:ruby, :mswin, :mingw]
gem 'sequel'
gem 'simple_form'
gem 'formtastic'
Expand Down
5 changes: 4 additions & 1 deletion Gemfile.mongo_mapper
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ eval_gemfile('Gemfile.global')
gem 'minitest', '~> 5.8'
gem 'rails', github: 'rails/rails', branch: '7-0-stable', require: false
gem 'mongo_mapper'
gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]

# This Rails version has a pessimistic version constraint on sqlite3:
# https://github.com/rails/rails/blob/7-0-stable/Gemfile#L148
gem 'sqlite3', '~> 1.6', '>= 1.6.6', platforms: [:ruby, :mswin, :mingw]
5 changes: 4 additions & 1 deletion Gemfile.rails61
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ eval_gemfile('Gemfile.global')
gem 'minitest', '~> 5.8'
gem 'rails', github: 'rails/rails', branch: '6-1-stable', require: false
gem 'mongoid', github: 'mongodb/mongoid'
gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]

# This Rails version has a pessimistic version constraint on sqlite3:
# https://github.com/rails/rails/blob/6-1-stable/Gemfile#L143
gem 'sqlite3', '~> 1.4', platforms: [:ruby, :mswin, :mingw]
4 changes: 3 additions & 1 deletion Gemfile.rails70
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ gem 'rails', github: 'rails/rails', branch: '7-0-stable', require: false

gem 'mongoid', github: 'mongodb/mongoid'

gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
# This Rails version has a pessimistic version constraint on sqlite3:
# https://github.com/rails/rails/blob/7-0-stable/Gemfile#L148
gem 'sqlite3', '~> 1.6', '>= 1.6.6', platforms: [:ruby, :mswin, :mingw]
2 changes: 1 addition & 1 deletion Gemfile.rails71
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ gem 'rails', github: 'rails/rails', branch: '7-1-stable', require: false

gem 'mongoid', github: 'mongodb/mongoid'

gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
gem 'sqlite3', platforms: [:ruby, :mswin, :mingw]
2 changes: 1 addition & 1 deletion Gemfile.railsmaster
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ eval_gemfile('Gemfile.global')

gem 'minitest', '~> 5.8'
gem 'rails', github: 'rails/rails', branch: 'main', require: false
gem 'sqlite3', :platform => [:ruby, :mswin, :mingw]
gem 'sqlite3', platforms: [:ruby, :mswin, :mingw]

0 comments on commit 757a437

Please sign in to comment.