From b7ecb3b37f1d9abd103cf73f0cd7ecbe1ef86d69 Mon Sep 17 00:00:00 2001 From: Tanna McClure Date: Wed, 8 Feb 2023 11:33:24 -0800 Subject: [PATCH] pin rubocop gem versions --- newrelic_rpm.gemspec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/newrelic_rpm.gemspec b/newrelic_rpm.gemspec index 0026f23163..a2d17dfc72 100644 --- a/newrelic_rpm.gemspec +++ b/newrelic_rpm.gemspec @@ -54,10 +54,13 @@ https://github.com/newrelic/newrelic-ruby-agent/ s.add_development_dependency 'mocha', '~> 1.16' s.add_development_dependency 'pry' unless ENV['CI'] s.add_development_dependency 'rake', '12.3.3' - s.add_development_dependency 'rubocop' unless ENV['CI'] && RUBY_VERSION < '3.0.0' - s.add_development_dependency 'rubocop-minitest' unless ENV['CI'] && RUBY_VERSION < '3.0.0' - s.add_development_dependency 'rubocop-performance' unless ENV['CI'] && RUBY_VERSION < '3.0.0' - s.add_development_dependency 'rubocop-rake' unless ENV['CI'] && RUBY_VERSION < '3.0.0' + + s.add_development_dependency 'rubocop', '1.44.1' unless ENV['CI'] && RUBY_VERSION < '3.0.0' + s.add_development_dependency 'rubocop-ast', '1.24.1' unless ENV['CI'] && RUBY_VERSION < '3.0.0' + s.add_development_dependency 'rubocop-minitest', '0.27.0' unless ENV['CI'] && RUBY_VERSION < '3.0.0' + s.add_development_dependency 'rubocop-performance', '1.16.0' unless ENV['CI'] && RUBY_VERSION < '3.0.0' + s.add_development_dependency 'rubocop-rake', '0.6.0' unless ENV['CI'] && RUBY_VERSION < '3.0.0' + s.add_development_dependency 'simplecov' if RUBY_VERSION >= '2.7.0' s.add_development_dependency 'thor' unless ENV['CI'] s.add_development_dependency 'warning' if RUBY_VERSION >= '2.4.0'