Skip to content

Commit f97c892

Browse files
Allow rubocop 1.73
Current gemspec required rubocop to be `'~> 1.72.1'`, which doesn't allow rubocop 1.73. It's better to use `'~> 1.72', '>= 1.72.1'`. This approach is used in other rubocop plugin gems, for example: https://github.com/rubocop/rubocop-factory_bot/blob/103168792b4e042a235825080b9e552f53be379a/rubocop-factory_bot.gemspec#L38C34-L38C56.
1 parent 1a9052f commit f97c892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rubocop-rubycw.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ Gem::Specification.new do |spec|
2828
spec.require_paths = ["lib"]
2929

3030
spec.add_runtime_dependency 'lint_roller', '~> 1.1'
31-
spec.add_runtime_dependency 'rubocop', '~> 1.72.1'
31+
spec.add_runtime_dependency 'rubocop', '~> 1.72', '>= 1.72.1'
3232
end

0 commit comments

Comments
 (0)