Skip to content

Commit 17a4212

Browse files
committed
(maint) change the rake dependency to be on ruby version lines, not JRuby-specific
1 parent e721dc3 commit 17a4212

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Gemfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ group :tests do
2525
end
2626

2727
# `rake` dropped support for older versions of ruby a while back
28-
if RUBY_PLATFORM == 'java'
29-
gem 'rake', '~> 13.0'
28+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.1.0')
29+
gem 'rake', '11.3.0'
30+
elsif Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.0')
31+
gem 'rake', '12.3.3'
3032
else
3133
gem 'rake', '~> 13.0'
3234
end

0 commit comments

Comments
 (0)