DEV: Allow Net::HTTP#request patch to be applied with module prepend or method aliasing #444
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@SamSaffron what do you think about this? This will allow people to choose how our Net::HTTP is applied like we allow our Rails patches to be optional. People who want our Net::HTTP patch to be applied using module prepend, they can do something like this in their Gemfile:
Right now people who have other gems with patches that conflict with our patch are forced to either pin their Mini Profiler version and avoid updates, or remove one of the conflicting gems. I think it's nice if we can do something simple to avoid picking sides.