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.
Written by Scott M
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#