-
Notifications
You must be signed in to change notification settings - Fork 0
/
Appraisals
75 lines (64 loc) · 2.19 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# This is the Appraisals file that determines which specific gems should be tested based upon the selected
# Ruby version and Ruby on Rails framework.
# Because each of these configurations have their own requirements, we will build a compatibility matrix and
# make sure that each step includes the correct version of Ruby on Rails, and freezes the dependencies to the
# requirements of that version.
# Ruby 2.2 will be used to test all EOL Ruby on Rails versions still in use by Custom Ink.
# This is simply to provide a guarantee our code works against them until we can drop these versions.
if ::Gem::Version.new(RUBY_VERSION) < ::Gem::Version.new('2.3.0')
appraise 'rails32' do
gem 'rails', '~> 3.2.0'
gem 'rake', '< 13'
end
appraise 'rails40' do
gem 'rails', '~> 4.0.0'
gem 'rake', '< 13'
end
appraise 'rails41' do
gem 'rails', '~> 4.1.0'
gem 'rake', '< 13'
end
appraise 'rails42' do
gem 'rails', '~> 4.2.0'
gem 'rake', '< 13'
end
end
if ::Gem::Version.new(RUBY_VERSION) < ::Gem::Version.new('2.5.0')
appraise 'rails50' do
gem 'rails', '~> 5.0.0'
gem 'rake', '< 13'
end
end
if ::Gem::Version.new(RUBY_VERSION) < ::Gem::Version.new('2.6.0')
appraise 'rails51' do
gem 'rails', '~> 5.1.0'
gem 'rake', '< 13'
end
end
if ::Gem::Version.new(RUBY_VERSION) < ::Gem::Version.new('2.7.0')
appraise 'rails52' do
gem 'rails', '~> 5.2.0'
gem 'rake', '< 13'
end
end
# For Ruby versions >= 2.5.0 and < 3.0 we can test all Rails 6
if ::Gem::Version.new(RUBY_VERSION) >= ::Gem::Version.new('2.5.0') && ::Gem::Version.new(RUBY_VERSION) < ::Gem::Version.new('3.0.0')
appraise 'rails60' do
gem 'rails', '~> 6.0.0'
end
appraise 'rails61' do
gem 'rails', '~> 6.1.0'
end
end
# Ruby on Rails 7.0.0 recommends Ruby to be >= 2.7.0
if ::Gem::Version.new(RUBY_VERSION) >= ::Gem::Version.new('2.7.0')
appraise 'rails70' do
gem 'rails', '7.0.0'
end
end
# Ruby on Rails 7.0.x recommend Ruby to be >= 3.1.0
if ::Gem::Version.new(RUBY_VERSION) >= ::Gem::Version.new('3.1.0')
appraise 'rails7' do
gem 'rails', '~> 7.0.0'
end
end