使用捆綁器僅更新一顆 gem - Update just one gem with bundler

問題:

I use bundler to manage dependencies in my rails app, and I have a gem hosted in a git repository included as followed:我使用 bundler 來管理 Rails 應用程序中的依賴項,並且我在 git 存儲庫中託管了一個 gem,如下所示:

gem 'gem-name', :git => 'path/to/my/gem.git'

To update this gem, I execute bundle update but it also updates all the gem mentioned in Gemfile.爲了更新這個 gem,我執行了bundle update但它也會更新 Gemfile 中提到的所有 gem。 So what is the command to update just one specific gem?那麼只更新一個特定 gem 的命令是什麼?


解決方案:

參考一: https://stackoom.com/question/lG3i
參考二: Update just one gem with bundler
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章