1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

So that we can run the tests locally without giving a RAILS_VERSION

This commit is contained in:
Akira Matsuda 2022-01-24 00:43:11 +09:00
parent 73162156d8
commit d8ffaa413c

View file

@ -19,10 +19,12 @@ end
gem 'selenium-webdriver'
rails_version = ENV['RAILS_VERSION'] || '∞'
platforms :ruby do
gem 'sqlite3', ENV['RAILS_VERSION'] >= '5.1' ? '>= 1.4' : '< 1.4', require: false
gem 'pg', ENV['RAILS_VERSION'] >= '5.1' ? '>= 1.0.0' : '< 1.0.0', require: false
gem 'mysql2', ENV['RAILS_VERSION'] >= '4.2' ? '>= 0.4' : '< 0.4', require: false
gem 'sqlite3', rails_version >= '5.1' ? '>= 1.4' : '< 1.4', require: false
gem 'pg', rails_version >= '5.1' ? '>= 1.0.0' : '< 1.0.0', require: false
gem 'mysql2', rails_version >= '4.2' ? '>= 0.4' : '< 0.4', require: false
end
platforms :jruby do