Closed dylanahsmith closed 5 years ago
Fixes #33 using the suggestion from https://github.com/rubygems/rubygems/issues/2588#issuecomment-452401326
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.
Thanks Dylan. The immediate fix make sense to me but I still believe that Ruby gems needs to be fixed
Fixes #33 using the suggestion from https://github.com/rubygems/rubygems/issues/2588#issuecomment-452401326
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.