Collective Idea

Collective Idea Logo

Brian Ryckbost

gemfiles and branches

By Brian Ryckbost on September 28, 2010 in bundler and tidbit

I came across this little nugget in the gemfile manual today:

Git repositories support a number of additional options.

branch, tag, and ref
You MUST only specify at most one of these options. The default is :branch => “master”

I can now specify the rails3 branch of acts_as_geocodable in my gemfile with:

gem 'acts_as_geocodable',
  :git => 'git://github.com/collectiveidea/acts_as_geocodable.git',
  :branch => 'rails3'
By Brian Ryckbost on September 28, 2010 in bundler and tidbit

4 Comments

  1. Daniel Morrison

    Daniel Morrison September 28, 2010 http://collectiveidea.com

    What? acts_as_geocodable is updated for Rails 3? Can’t wait to see a gem release soon! ;)

  2. Dom

    Dom June 23, 2011 http://meetdom.com

    Nice tip – thank you!

  3. Rob Warner

    Rob Warner September 08, 2011 http://grailbox.com

    You saved me yesterday with OmniAuth—blogged here: http://www.grailbox.com/2011/09/using-omniauth-0-3-0-rc1-with-rails-3-1/

    Thanks!

  4. Brian Ryckbost

    Brian Ryckbost September 08, 2011 http://collectiveidea.com

    @Rob Warner: Awesome. Glad this helped!

Post a Comment

Contact Us

Find us on Google Maps
Collective Idea
25 West 8th Street, Suite 200
Holland, Michigan 49423 USA 42.790299-86.108415

Follow us on the Interwebs

We are currently available for medium and long term projects. Please get in touch if we can be of service.