mirror of https://github.com/rails/rails
Add RUBY_VERSION conditional
This commit is contained in:
parent
9a53234695
commit
425f100f08
7
Gemfile
7
Gemfile
|
@ -15,7 +15,12 @@ gem "rake", ">= 13"
|
|||
gem "sprockets-rails", ">= 2.0.0"
|
||||
gem "propshaft", ">= 0.1.7"
|
||||
gem "capybara", ">= 3.39"
|
||||
gem "selenium-webdriver", ">= 4.11.0"
|
||||
if RUBY_VERSION < "3"
|
||||
gem "selenium-webdriver", "<= 4.9.0"
|
||||
gem "webdrivers"
|
||||
else
|
||||
gem "selenium-webdriver", ">= 4.11.0"
|
||||
end
|
||||
|
||||
gem "rack-cache", "~> 1.2"
|
||||
gem "stimulus-rails"
|
||||
|
|
|
@ -59,7 +59,10 @@ end
|
|||
<%- if depends_on_system_test? -%>
|
||||
group :test do
|
||||
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
|
||||
gem "capybara", ">= 3.39"
|
||||
gem "selenium-webdriver", ">= 4.11.0"
|
||||
gem "capybara"
|
||||
gem "selenium-webdriver"
|
||||
<%- if RUBY_VERSION < "3.0" -%>
|
||||
gem "webdrivers"
|
||||
<% end %>
|
||||
end
|
||||
<%- end -%>
|
||||
|
|
Loading…
Reference in New Issue