Update just one gem with bundler

后端 未结 8 1101
没有蜡笔的小新
没有蜡笔的小新 2020-12-07 07:05

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         


        
8条回答
  •  长情又很酷
    2020-12-07 07:41

    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.

    Update

    As @Tim's answer says, as of Bundler 1.14 the officially-supported way to this is with bundle update --conservative gem-name.

提交回复
热议问题