Patching RubyGems Quickstart
Patching is a Ruby gem is really quite simple, once you know how.
Fetch the original gem. Gems are just tar files containing a couple of compressed (.gz) files. Unzip the data.tar.gz file. Make necessary changes then create the Rakefile required to build the gem. It should contain the contents of the gemspec, preceded by:
require ‘rake/gempackagetask’
and followed by:
Rake::GemPackageTask.new(spec).define
Then build the gem with:
rake gem
The new gem is created in the pkg subdirectory.
Categories: Uncategorized
Recent Comments