Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle major version requirements in Gemspec/RequiredRubyVersion
It's possible to use `required_ruby_version` to allow all minor versions of a particular major version of Ruby: spec.required_ruby_version = '~> 2' Previously this would cause `Gemspec/RequiredRubyVersion` to crash with: undefined method `[]' for nil:NilClass lib/rubocop/cop/gemspec/required_ruby_version.rb:71:in `extract_ruby_version' I've added docs and tests for the pessimistic operator, which otherwise works well.
- Loading branch information
Showing
4 changed files
with
72 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters