DeprecationToolkit adds private methods in the Minitest module - should we avoid that?
rmacklin opened this issue · 2 comments
rmacklin commented
These two methods:
deprecation_toolkit/lib/minitest/deprecation_toolkit_plugin.rb
Lines 23 to 36 in 5169259
are defined inside the Minitest module. However, the methods themselves are independent. It seems safer to define them inside the DeprecationToolkit
namespace, to keep this gem isolated from potential conflicts with other gems that could redefine Minitest#add_notify_behavior
and Minitest#attach_subscriber
.
If you agree, I'd be happy to open a PR.
Edouard-chin commented
That sounds reasonable to me 👍