It is pretty simple, actually. In your Gemfile add a dependency like:
gem "nokogiri", :git => "git://github.com/tenderlove/nokogiri.git"
To do this, you will also need to use a bunch to manage your gem, you can get more information about it here .
Another option is to add the code that you changed to the supplier’s directory in your gem and distribute it using your code, so you can simply add the main directory of this other gem to your download path and you can request it without any either problems.
To add something to the boot path you just do:
$LOAD_PATH.unshift( File.join(File.dirname(__FILE__), '..', 'vendor', 'some_gem', 'lib') )
And you can directly request files in some_gem .
source share