Created
February 3, 2015 04:16
-
-
Save ecoologic/146be3c2379ed748d5b2 to your computer and use it in GitHub Desktop.
avoid getting screwed when you update a gem you monkey-patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If the behaviour the gem you're monkey patching changes | |
# your monkey patch might not work anymore | |
if Gem::Specification.all_names.detect { |gem_v| gem_v == 'haml-3.1.8' } | |
# my monkey patch here | |
else | |
raise "Please check this gem works with the above monkey patch" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍