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

Make the ::Warning patch inactive if not configured #105

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

casperisfine
Copy link
Contributor

Otherwise the warning merging functionality may conflict with some other patches.

@@ -64,5 +66,5 @@ def warn(str, *)
end
ruby2_keywords :warn
end
::Warning.singleton_class.prepend(DeprecationToolkit::WarningPatch)
Copy link
Member

Choose a reason for hiding this comment

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

Any reason for moving it here?

Suggested change
::Warning.singleton_class.prepend(DeprecationToolkit::WarningPatch)
::Warning.singleton_class.prepend(WarningPatch)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mostly style. Was weird to reopen the module.

Otherwise the warning merging functionality may conflict with
some other patches.
@casperisfine casperisfine merged commit 984786c into main Jun 5, 2024
41 checks passed
@casperisfine casperisfine deleted the warning-patch branch June 5, 2024 13:21
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