Skip to content

Commit

Permalink
Only add dependency on rubocop if we're actually going to use it
Browse files Browse the repository at this point in the history
We only attempt to run rubocop from Ruby v2.0.0 onwards, so there's no
point in including it for earlier versions.
  • Loading branch information
floehopper committed Jun 18, 2021
1 parent 7ce5f29 commit f2f879f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mocha.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Gem::Specification.new do |s| # rubocop:disable Metrics/BlockLength
# No test libraries in standard library
s.add_development_dependency('minitest')
end
if RUBY_VERSION >= '1.9.2'
if RUBY_VERSION >= '2.2.0'
s.add_development_dependency('rubocop', '<= 0.58.2')
end
if ENV['MOCHA_GENERATE_DOCS']
Expand Down

0 comments on commit f2f879f

Please sign in to comment.