I’ve got dozens of Ruby projects using Bundler, each with their own gem bundle in ./vendor. I’d like to be able to do something like this at the top of my Gemfile:
source 'file:///Users/midwire/.rvm/gems/ruby-1.8.7-p352'
But this doesn’t seem to work unless I’m not doing it right. Is there a way to accomplish this, or possibly a way to just copy gems from another project’s bundle or from my global installed gem repository in:
/Users/midwire/.rvm/gems/ruby-1.8.7-p352
It just seems a bit inefficient to be hitting the wire every time I install the pry gem when I’ve already got it on my hard drive in 78 locations.
Thanks in advance for any help.
The
sourcedirective refers to a RubyGems server.Using a localhost
sourcein Gemfile:I believe what you want is the ability to specify a local filepath to the gem: