Last Updated: February 25, 2016
· stereoscott

Use local gems with Bundler

If you find yourself switching paths between remote gems and local versions that you've checked out with git, you can use bundler to specify a local location of a gem.

Run this in terminal:

bundle config local.multi_json ~/src/gems/multi_json

Put this in your Gemfile:

gem 'multi_json', github: 'intridea/multi_json', branch: 'master'

And now when you run bundle install, bundler will use your local version in ~/src/gems/multi_json automatically.