I use bundler to manage dependencies in my rails app, and I have a gem hosted in a git repository included as followed:
gem \'gem-name\', :git => \'path/t
I've used bundle update --source
myself for a long time but there are scenarios where it doesn't work. Luckily, there's a gem called bundler-patch which has the goal of fixing this shortcoming.
I also wrote a short blog post about how to use bundler-patch
and why bundle update --source
doesn't work consistently. Also, be sure to check out a post by chrismo that explains in great detail what the --source
option does.
The way to do this is to run the following command:
bundle update --source gem-name