When developing an application where you have split out shared functionality to multiple dependent gem repositories can get cumbersome when you
- need to edit the Gemfile in order to swap local
:path
sources with:git
or just plain Rubygems sources, - then forget to
bundle update
, - wonder why your git repository is dirty and it's just the modified
Gemfile
andGemfile.lock
, - accidentally commit the
Gemfile.lock
with local:path
sources bundled etc. etc.
So what about this strategy:
A. Create a file .Gemfile.local
containing: