You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a ruby project's .gemspec file dynamically sets the required_ruby_version value, this causes rubocop to crash while attempting to parse the right-hand side of the spec.required_ruby_version assignment.
If a ruby project's
.gemspec
file dynamically sets therequired_ruby_version
value, this causes rubocop to crash while attempting to parse the right-hand side of thespec.required_ruby_version
assignment.Expected behavior
rubocop
does not raise an exception.Actual behavior
Exception during parsing of the
.gemspec
file.Steps to reproduce the problem
bundle gem test
cd test/
test.gemspec
and add the linespec.required_ruby_version = ENV['required_ruby_version']
to theGem::Specification.new
block.Gemfile
:bundle install
bundle exec rubocop
RuboCop version
The text was updated successfully, but these errors were encountered: