forked from bensheldon/good_job
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Appraisals
33 lines (27 loc) · 833 Bytes
/
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
# frozen_string_literal: true
ruby_2 = Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3')
ruby_27_or_higher = Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.7')
jruby = RUBY_PLATFORM.include?('java')
if ruby_2
appraise "rails-5.2" do
gem "rails", "~> 5.2.0"
end
appraise "rails-6.0" do
gem "rails", "~> 6.0.0"
end
end
appraise "rails-6.1" do
gem "rails", "~> 6.1.0"
end
if ruby_27_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
# https://github.com/rails/rails/issues/43422
# appraise "rails-head" do
# gem "rails", github: "rails/rails", branch: "main"
# end
end