-
Notifications
You must be signed in to change notification settings - Fork 146
/
Appraisals
120 lines (103 loc) · 3.71 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# minimal rails gems required to run rails
# https://github.com/rails/rails/blob/main/rails.gemspec
RAILS_GEMS = %w[activesupport activemodel activerecord activejob railties actionpack]
appraise "standalone" do
end
if !RUBY_PLATFORM.match?(/java/)
appraise "binding_of_caller" do
gem "binding_of_caller"
end
end
appraise "rack-1" do
# Old (pre-2.0) Rack, works on all Rubies.
gem "rack", "< 2.0"
end
appraise "delayed_job" do
gem "delayed_job", "< 4.1.2" # See https://github.com/collectiveidea/delayed_job/pull/931
gem "activesupport", "> 3.1.12", "< 5.0.0" # Prevent buggy version from being installed
end
appraise "resque" do
gem "resque"
gem "mock_redis"
end
appraise "sidekiq" do
gem "sidekiq", "~> 6"
end
appraise "sidekiq7" do
gem "sidekiq", "~> 7"
end
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.5.0")
appraise "rails6.1" do
RAILS_GEMS.each { |rails_gem| gem rails_gem, "~> 6.1" }
gem "sqlite3", "~> 1.4", platforms: :mri
gem "activerecord-jdbcsqlite3-adapter", "~> 61", platforms: :jruby
gem "better_errors", require: false, platforms: :mri
gem "rack-mini-profiler", require: false
gem "rspec-rails"
gem "listen"
gem "tzinfo-data" # Needed for timezones to work on Windows
end
appraise "rails7.0" do
RAILS_GEMS.each { |rails_gem| gem rails_gem, "< 7.1" }
gem "sqlite3", "~> 1.4", platforms: :mri
gem "activerecord-jdbcsqlite3-adapter", "~> 60", platforms: :jruby
gem "better_errors", require: false, platforms: :mri
gem "rack-mini-profiler", require: false
gem "rspec-rails"
gem "tzinfo-data" # Needed for timezones to work on Windows
end
appraise "rails7.1" do
RAILS_GEMS.each { |rails_gem| gem rails_gem, "< 7.2" }
gem "sqlite3", "~> 1.4", platforms: :mri
gem "activerecord-jdbcsqlite3-adapter", "~> 60", platforms: :jruby
gem "better_errors", require: false, platforms: :mri
gem "rack-mini-profiler", require: false
gem "rspec-rails"
gem "tzinfo-data" # Needed for timezones to work on Windows
end
appraise "rails7.2" do
RAILS_GEMS.each { |rails_gem| gem rails_gem, "< 7.3" }
gem "sqlite3", "~> 2", platforms: :mri
gem "activerecord-jdbcsqlite3-adapter", "~> 70", platforms: :jruby
gem "better_errors", require: false, platforms: :mri
gem "rack-mini-profiler", require: false
gem "rspec-rails"
gem "tzinfo-data" # Needed for timezones to work on Windows
end
appraise "rails8" do
RAILS_GEMS.each { |rails_gem| gem rails_gem, "~> 8.0.0.rc1" }
gem "sqlite3", "~> 2", platforms: :mri
gem "activerecord-jdbcsqlite3-adapter", "~> 70", platforms: :jruby
gem "better_errors", require: false, platforms: :mri
gem "rack-mini-profiler", require: false
gem "rspec-rails"
gem "tzinfo-data" # Needed for timezones to work on Windows
end
# Rails edge
appraise "rails" do
RAILS_GEMS.each { |rails_gem| gem rails_gem, github: "rails" }
gem "rack", github: "rack/rack", branch: "2-2-stable" # Rack"s main branch is Rack 3, but ActionPack currently requires Rack 2
gem "arel", github: "rails/arel"
gem "sqlite3", "~> 2", platforms: :mri
gem "capistrano", "~> 3.0"
gem "better_errors", require: false, platforms: :mri
gem "rspec-rails"
# Listen is a soft-dependency in Rails 5. Guard requires listen (which makes
# it present when generating a new Rails app), so Rails expects it to be
# there. See https://github.com/rails/rails/pull/24066
gem "listen"
gem "tzinfo-data" # Needed for timezones to work on Windows
end
end
appraise "rack" do
gem "rack", ">= 2.0.0"
end
appraise "sinatra" do
gem "sinatra"
gem "rack-test"
end
appraise "hanami" do
gem "hanami", "~> 2.0"
gem "hanami-router", "~> 2.0"
gem "rack-test"
end