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

Use RESTRICT_ON_SEND #141

Merged
merged 1 commit into from Jun 22, 2023

Conversation

koic
Copy link
Contributor

@koic koic commented Jun 22, 2023

Follow up rubocop/rubocop#8365.

This PR uses RESTRICT_ON_SEND to restrict callbacks on_send to specific method names only. https://docs.rubocop.org/rubocop/1.52/development.html#implementation

RESTRICT_ON_SEND has been introduced since RuboCop 0.90, so it bumps the required lowest runtime RuboCop dependency from 0.87 to 0.90. No runtime Ruby version incompatibilities between 0.87 and 0.90: https://docs.rubocop.org/rubocop/1.52/compatibility.html

Follow up rubocop/rubocop#8365.

This PR uses `RESTRICT_ON_SEND` to restrict callbacks `on_send` to specific method names only.
https://docs.rubocop.org/rubocop/1.52/development.html#implementation

`RESTRICT_ON_SEND` has been introduced since RuboCop 0.90, so it bumps the required lowest runtime
RuboCop dependency from 0.87 to 0.90. No runtime Ruby version incompatibilities between 0.87 and 0.90:
https://docs.rubocop.org/rubocop/1.52/compatibility.html
@DmitryTsepelev
Copy link
Owner

Thank you 🙂

@DmitryTsepelev DmitryTsepelev merged commit abb1207 into DmitryTsepelev:master Jun 22, 2023
10 checks passed
@koic koic deleted the use_restrict_on_send branch June 22, 2023 15:14
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.

None yet

2 participants