forked from bensheldon/good_job
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Appraisals
37 lines (31 loc) · 1.22 KB
/
Appraisals
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# frozen_string_literal: true
ruby_27_or_higher = Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.7')
ruby_31_or_higher = Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1')
jruby = RUBY_PLATFORM.include?('java')
unless ruby_31_or_higher # https://github.com/rails/rails/issues/44090#issuecomment-1007686519
appraise "rails-6.0" do
gem "rails", "~> 6.0.0"
end
appraise "rails-6.1" do
gem "rails", "~> 6.1.0"
end
end
if ruby_27_or_higher && !ruby_31_or_higher && !jruby
# Rails HEAD requires MRI 2.7+
# activerecord-jdbcpostgresql-adapter does not have a compatible version
appraise "rails-7.0" do
gem "rails", "~> 7.0.0"
gem "selenium-webdriver", "~> 4.0" # https://github.com/rails/rails/pull/43498
end
appraise "rails-head" do
gem "rails", github: "rails/rails", branch: "main"
gem "selenium-webdriver", "~> 4.0" # https://github.com/rails/rails/pull/43498
end
end
if ruby_31_or_higher && !jruby
appraise "rails-7.0-ruby-3.1" do
gem "capybara", "~> 3.36" # For Ruby 3.1 support https://github.com/teamcapybara/capybara/pull/2468
gem "rails", "~> 7.0.1" # Ruby 3.1 requires Rails 7.0.1+
gem "selenium-webdriver", "~> 4.0" # https://github.com/rails/rails/pull/43498
end
end