Bundler: always use latest revision of git branch in Gemfile

I have a Gemfile with a private git repo in the following format:

gem 'magic_beans', :git => "git@git.example.com:magic_beans.git', :branch => 'super_beans'

When I bundle install, the Gemfile.lock locks it to a specific SHA revision.

Can I get bundler to always check and use the latest SHA commit and/or update the Gemfile.lock? Notice that when I push updates to the super_beans branch I am not modifying the gem version.

Ideally, every time I run bundle it would check upstream git repo for a newer SHA revision of the branch.


This isn't how bundler works. The point is to allow seamless versioning of dependencies. (particularly so you know exactly what version of the code is deployed at any given time).

If want the latest version, you should just run.

bundle update magic_beans

This is exactly the same functionality as if you just say

gem "rails"

I'd suggest though, if you have a range of specific things you want to update then add a custom binary (say an executable file named bundle_update)

#!/usr/bin/env bash
bundle install
bundle update magic_beans

Then just do a ./bundle_update when you want to update these things.

Need Your Help

Can't create an instance of an array type not listed by suds

python xml soap wsdl suds

i am making a client to access a wsdl and print the response..later on print the response on a web page..however right now I am stuck in the initial code itself....i believe that suds is generating...

Moving a Web app to Google App Engine. is it right?


I am building a Web App using Codeigniter and MySQL and completed most of the part.

Eclipse : Maven - context menu does not display the option “Search dependency for…”

java eclipse maven jboss dependencies

I downloaded a fresh copy of Eclipse IDE for Java EE Developers (eclipse-jee-luna-SR1a-win32-x86_64.zip).

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.