Skip to content

Commit

Permalink
(maint) pin rubocop dependencies to work on ruby 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS committed Mar 25, 2019
1 parent c1f82bc commit 26a13cf
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,20 @@ group :tests do
gem 'license_finder' if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.4.0')
gem 'rake', '~> 10.0'
gem 'rspec', '~> 3.0'
gem 'rubocop-rspec'
# rubocop 0.58 throws when testing against ruby 2.1, so pin to the latest,
# unless we're dealing with jruby...
if RUBY_PLATFORM == 'java'
gem 'rubocop'
else
# don't install rubocop on JRuby - we don't need it
elsif Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.0')
gem 'rubocop', '0.57.2'
# the last version of parallel to support ruby 2.1
gem 'parallel', '1.13.0'
gem 'rubocop-rspec'
else
# 2.1-compatible analysis was dropped after version 0.58
# This needs to be removed once we drop puppet4 support.
gem 'rubocop', '~> 0.57.0'
gem 'rubocop-rspec'
end
gem 'simplecov-console'
# the test gems required for module testing
Expand Down

0 comments on commit 26a13cf

Please sign in to comment.