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 Module.prepend instead of alias_method to patch Rake #152

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

mattbrictson
Copy link
Owner

Libraries like Sentry that also patch Rake conflict with Airbrussh, due to our use of alias_method. Fix by using Module.prepend instead, when it is available (Ruby >= 2.0).

Fixes #151

Libraries like Sentry that also patch Rake conflict with Airbrussh, due
to our use of `alias_method`. Fix by using `Module.prepend` instead,
when it is available (Ruby >= 2.0).

Fixes #151
@mattbrictson mattbrictson added the ✨ Feature Adds a new feature label Sep 11, 2023
@mattbrictson mattbrictson changed the title Use Module.prepend instead of alias_method to patch Rake Use Module.prepend instead of alias_method to patch Rake Sep 11, 2023
@mattbrictson mattbrictson merged commit 92acf4c into main Sep 12, 2023
@mattbrictson mattbrictson deleted the features/use-prepend-if-supported branch September 12, 2023 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature Adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Switch from alias_method to prepend
1 participant