問題:
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