We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1b1c58 commit 522d1b9Copy full SHA for 522d1b9
1 file changed
Gemfile
@@ -60,8 +60,15 @@ if ruby_version >= Gem::Version.new('2.2.0')
60
gem 'redis'
61
end
62
63
- # rack 2.2.0 dropped support for Ruby 2.2
64
- gem 'rack', ruby_version < Gem::Version.new('2.3.0') ? '< 2.2.0' : '~> 2.2'
+ if ruby_version < Gem::Version.new('2.3.0')
+ # rack 2.2.0 dropped support for Ruby 2.2
65
+ gem 'rack', '< 2.2.0'
66
+ elsif ruby_version < Gem::Version.new('2.4.0')
67
+ # rack 3.0.0 dropped support for Ruby 2.3
68
+ gem 'rack', '~> 2.2'
69
+ else
70
+ gem 'rack', '~> 3.0'
71
+ end
72
73
# rack-protection 3.0.0 requires Ruby 2.6+
74
gem 'rack-protection', '< 3.0.0' if ruby_version < Gem::Version.new('2.6.0')
0 commit comments