From d5c6b98a456bb18063289dc3694dfdf79a072cfc Mon Sep 17 00:00:00 2001 From: James Mead Date: Wed, 23 Oct 2024 11:15:59 +0100 Subject: [PATCH] Fix rubocop version constraint for Ruby > v2.2.0 For some reason the `jaro_winkler` version constraint added in this commit [2] was causing bundler to downgrade the `rubocop` version from v0.58.2 to v0.56.0. Unfortunately this resulted in some `rubocop` violations when running `bundle exec rake lint` which prevented me from releasing. Adding this lower bound to the `rubocop` version seems to solve the problem. [1]: https://github.com/freerange/mocha/commit/5c7d14cb7d779bd22da3dbfe9d16ed1091ace7a1 --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 2c0a60a3..4c71d4d5 100644 --- a/Gemfile +++ b/Gemfile @@ -23,7 +23,7 @@ if RUBY_VERSION >= '2.2.0' end if RUBY_VERSION >= '2.2.0' gem 'jaro_winkler', '>= 1.5.5' - gem 'rubocop', '<= 0.58.2' + gem 'rubocop', '> 0.56', '<= 0.58.2' end if ENV['MOCHA_GENERATE_DOCS'] gem 'redcarpet'