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

[Fix #11405] Fix Style/WhileUntilModifier with ruby 3.1 #11406

Merged
merged 1 commit into from
Jan 9, 2023
Merged

[Fix #11405] Fix Style/WhileUntilModifier with ruby 3.1 #11406

merged 1 commit into from
Jan 9, 2023

Conversation

such
Copy link
Contributor

@such such commented Jan 9, 2023

Fixes #11405


Before submitting the PR make sure the following are checked:

  • [x ] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • [ x] Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
  • Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

CHANGELOG.md Outdated
@@ -2,6 +2,10 @@

## master (unreleased)

### Bug fixes

* [#11405](https://github.com/rubocop/rubocop/issues/11405): Fix undefined method `range_between' for Style/WhileUntilModifier. ([@such][])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you write the changelog entry with the below instead?

Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

CHANGELOG.md Outdated
@@ -6742,3 +6742,4 @@
[@arika]: https://github.com/arika
[@soroktree]: https://github.com/soroktree
[@alexevanczuk]: https://github.com/alexevanczuk
[@such]: https://github.com/such
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove it? Because it is automatically generated by release task.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

Fix crash when while/until body last argument is a hash with value omission
@koic koic merged commit 52a448f into rubocop:master Jan 9, 2023
@koic
Copy link
Member

koic commented Jan 9, 2023

Thanks!

@such
Copy link
Contributor Author

such commented Jan 9, 2023

No problem. When do you think this can be released?

@bbatsov
Copy link
Collaborator

bbatsov commented Jan 9, 2023

Probably before the end of this week.

koic added a commit to koic/rubocop that referenced this pull request Feb 10, 2023
Occasionally I review direct edit to the CHANGELOG.md:

- rubocop#11559 (comment)
- rubocop#11406 (comment)
- rubocop#11395 (comment)

It might be communicated a little more efficiently if listed in the CHANGELOG.md.
And the triple dash for commenting out is used intentionally.
https://stackoverflow.com/questions/4823468/comments-in-markdown/4829998#4829998

It affects when markdown is viewed on GitHub. This is unnecessary note for
user viewing the CHANGELOG.md on GitHub.

Also add changelog/.gitkeep to prevent dead link after release.
bbatsov pushed a commit that referenced this pull request Feb 11, 2023
Occasionally I review direct edit to the CHANGELOG.md:

- #11559 (comment)
- #11406 (comment)
- #11395 (comment)

It might be communicated a little more efficiently if listed in the CHANGELOG.md.
And the triple dash for commenting out is used intentionally.
https://stackoverflow.com/questions/4823468/comments-in-markdown/4829998#4829998

It affects when markdown is viewed on GitHub. This is unnecessary note for
user viewing the CHANGELOG.md on GitHub.

Also add changelog/.gitkeep to prevent dead link after release.
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.

undefined method `range_between' for Style/WhileUntilModifier
3 participants