Skip to content

ingoweiss/gem_patching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Better management of patches for specific versions of other gems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages