Skip to content

Commit 18baa3c

Browse files
committed
fix support for RuboCop 0.84.0 and 0.85.x
These were the first versions to use rubocop-ast, and unfortunately the dependency is loose enough that rubocop-ast versions >= 0.7.0 are allowed, which cause require 'rubocop' to fail with NoMethodError: undefined method `join' for #<Set: {:==, :===, :!=, :<=, :>=, :>, :<}> in rubocop-0.84.0/lib/rubocop/cop/style/redundant_conditional.rb:57:in `<class:RedundantConditional>' This is due to rubocop/rubocop-ast#22 so just block those versions directly. This has the unfortunate side effect of requiring rubocop-ast for older versions which don't require it.
1 parent 7e19460 commit 18baa3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pronto-rubocop.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Gem::Specification.new do |s|
3434

3535
s.add_runtime_dependency('pronto', '~> 0.11.0')
3636
s.add_runtime_dependency('rubocop', '>= 0.63.1', '< 1.0')
37+
s.add_runtime_dependency('rubocop-ast', '>= 0.6.0', '!= 0.7.0', '!= 0.7.1', '!= 0.8.0')
3738
s.add_development_dependency('rake', '~> 12.0')
3839
s.add_development_dependency('rspec', '~> 3.4')
3940
s.add_development_dependency('rspec-its', '~> 1.2')

0 commit comments

Comments
 (0)