Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Range#minmax refinement #307

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

Earlopain
Copy link
Contributor

It was added for a bug in Ruby < 2.7
The minimum version now is 2.7 so it is not needed anymore.

Context in #151 and #150

irb(main):001:0> RUBY_VERSION
=> "2.6.10"
irb(main):002:0> Range.instance_method(:minmax).owner != ::Range
=> true

irb(main):002> RUBY_VERSION
=> "2.7.8"
irb(main):003> Range.instance_method(:minmax).owner != ::Range
=> false

It was added for a bug in Ruby <= 2.7
The minimum version now is 2.7 so it is not needed anymore.

rubocop#151

```
irb(main):001:0> RUBY_VERSION
=> "2.6.10"
irb(main):002:0> Range.instance_method(:minmax).owner != ::Range
=> true

irb(main):002> RUBY_VERSION
=> "2.7.8"
irb(main):003> Range.instance_method(:minmax).owner != ::Range
=> false
```
@koic koic merged commit 6e5e64b into rubocop:master Aug 3, 2024
19 checks passed
@koic
Copy link
Member

koic commented Aug 3, 2024

Thanks!

@Earlopain Earlopain deleted the remove-range-refinement branch August 3, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants