0.01
No commit activity in last 3 years
No release in over 3 years
gem_patching provides a mechanism for marking code as a patch for a specific version of a gem in order to get notified when that gem is updated
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

gem_patching

gem_patching provides a mechanism for marking blocks of code as patches for specific versions of a specific gem. If the targeted gem is updated and it’s version does not match the targeted version any more, an exception is raised, notifying developers to evaluate whether the patch is still needed for the new version:

# cucumber_patch.rb
Gem.patching('cucumber', '0.8.0') do
  # your code patching cucumber '0.8.0'
end
# this will raise the following exception if cucumber is updated:
# Attempt to apply patch targeting version '0.8.0' of 'cucumber', but active version is '0.8.1'

Installation

gem install gem_patching

Copyright © 2010 Ingo Weiss, released under the MIT license