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
Here you can find a good explanation on the difference between
Update both gem and dependencies:
bundle update gem-name
or
Update exclusively the gem:
bundle update --source gem-name
along with some nice examples of possible side-effects.
As @Tim's answer says, as of Bundler 1.14 the officially-supported way to this is with bundle update --conservative gem-name.