I'm packaging up a gem with few external dependencies (such as 'liquid', 'fastercsv', etc..), the only requirement here is that the user installing the gem doesn't have access to the net (some proxy restrictions). I put my gems inside "vendor/bundle/jruby/1.9" folder, just wondering how I can force the user to use those gems instead of downloading them from http://rubygems.org?
Thanks!
If you really want to do it, you can edit your gem's Gemfile and remove those gems as dependencies.
This means that when a user installs your gem, he won't download any other gems.
Within your gem, you'll need to require each of the inner gems of yours.
If you want to be sure you get your own inner gem, rather than a pre-existing gem on the user's system, you can use the load path: save it, overwrite it with your own, load your gems, then restore the load path.