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

Prepend module to Warning to patch Warning.warn #34

Merged
merged 1 commit into from
Jan 9, 2019

Conversation

dylanahsmith
Copy link
Contributor

Fixes #33 using the suggestion from rubygems/rubygems#2588 (comment)

We should prepend a module to patch Warning.warn because overriding the method directly assumes that no other code is patching Warning.warn as well as avoiding the assumption that Warning.warn is equivalent to Kernel.warn.

@Edouard-chin
Copy link
Contributor

Thanks Dylan. The immediate fix make sense to me but I still believe that Ruby gems needs to be fixed

@dylanahsmith dylanahsmith merged commit 27def8f into master Jan 9, 2019
@dylanahsmith dylanahsmith deleted the warning-prepend-patch branch January 9, 2019 20:06
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.

3 participants