Skip to content

Commit d920c30

Browse files
committed
Permit usage of puma 3.11.4 between Ruby 1.9.3 and 2.2
1 parent 1a47885 commit d920c30

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Gemfile-rails-dependencies

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ when /stable$/
2020
gem_list = %w[rails railties actionmailer actionpack activerecord activesupport]
2121
gem_list << 'activejob' if version > '4-1-stable'
2222
gem_list << 'actionview' if version > '4-0-stable'
23-
if RUBY_VERSION >= "2.2"
23+
if RUBY_VERSION >= "1.9.3" && RUBY_VERSION < "2.2"
24+
gem "puma", "~> 3.11.4"
25+
elsif RUBY_VERSION >= "2.2"
2426
gem_list << 'puma' if version > '5-0-stable'
2527
end
2628

@@ -40,8 +42,12 @@ when nil, false, ""
4042
else
4143
gem "rails", version
4244

43-
if version >= '5-1-stable' && RUBY_VERSION >= "2.2"
44-
gem "puma"
45+
if version >= '5-1-stable'
46+
if RUBY_VERSION < "2.2"
47+
gem "puma", "~> 3.11.4"
48+
else
49+
gem "puma"
50+
end
4551
end
4652
end
4753

0 commit comments

Comments
 (0)