Skip to content

Commit f422780

Browse files
committed
(maint) pin rubocop dependencies to work on ruby 2.1
1 parent a596384 commit f422780

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Gemfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,20 @@ group :tests do
1212
gem 'license_finder' if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.4.0')
1313
gem 'rake', '~> 10.0'
1414
gem 'rspec', '~> 3.0'
15-
gem 'rubocop-rspec'
1615
# rubocop 0.58 throws when testing against ruby 2.1, so pin to the latest,
1716
# unless we're dealing with jruby...
18-
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.0')
17+
if RUBY_PLATFORM == 'java'
18+
# don't install rubocop on JRuby - we don't need it
19+
elsif Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.0')
1920
gem 'rubocop', '0.57.2'
21+
# the last version of parallel to support ruby 2.1
2022
gem 'parallel', '1.13.0'
23+
gem 'rubocop-rspec'
2124
else
2225
# 2.1-compatible analysis was dropped after version 0.58
2326
# This needs to be removed once we drop puppet4 support.
2427
gem 'rubocop', '~> 0.57.0'
28+
gem 'rubocop-rspec'
2529
end
2630
gem 'simplecov-console'
2731
# the test gems required for module testing

0 commit comments

Comments
 (0)