Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get bundler to always pull latest commit from private gem repo

Is this possible force bunlder to always get the latest commit? Something like:

gem "gemname", :git => "[email protected]:/username/gemname.git", ref: :force-latest

like image 616
newUserNameHere Avatar asked Nov 19 '25 22:11

newUserNameHere


2 Answers

you can try to use master branch to get latest commit

lets for rails

gem "rails", github: "rails/rails",  branch: "master"
like image 95
Rajarshi Das Avatar answered Nov 22 '25 12:11

Rajarshi Das


I believe this should work:

bundle update gemname

The bundle update command uses the latest available version of the named gem that is compatible with the specification in your Gemfile.

like image 20
Vladan Markovic Avatar answered Nov 22 '25 12:11

Vladan Markovic