-
Notifications
You must be signed in to change notification settings - Fork 153
/
Copy pathAppraisals
41 lines (35 loc) · 870 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
34
35
36
37
38
39
40
41
RUBY_MAJOR_VERSION, RUBY_MINOR_VERSION, _ = RUBY_VERSION.split(".").map(&:to_i)
# run on ruby <= 3.2
if RUBY_MAJOR_VERSION == 3 && RUBY_MINOR_VERSION <= 2
appraise "rails_6_1" do
gem "rails", "~> 6.1.0"
gem 'concurrent-ruby', '<= 1.3.4'
end
end
# run on ruby <= 3.3
if RUBY_MAJOR_VERSION == 3 && RUBY_MINOR_VERSION <= 3
appraise "rails_7_0" do
gem "rails", "~> 7.0.0"
gem 'concurrent-ruby', '<= 1.3.4'
gem "propshaft"
end
end
appraise "rails_7_1" do
gem "rails", "~> 7.1.0"
gem "propshaft"
end
appraise "rails_7_2" do
gem "rails", "~> 7.2.0"
gem "propshaft"
end
# run on ruby >= 3.1
if RUBY_MAJOR_VERSION >= 3 && RUBY_MINOR_VERSION > 1
appraise "rails_8_0" do
gem "rails", "~> 8.0.0"
gem "propshaft"
end
appraise "rails_main" do
gem "rails", github: "rails/rails", branch: "main"
gem "propshaft"
end
end