Ruby Quicktips Logo

Ruby Quicktips

Random Ruby and Rails tips.
This blog is dedicated to deliver short, interesting and practical tidbits of the Ruby language and Ruby on Rails framework. Read more...

Your submissions are more than welcome!
Aug 24 ’11

Rails 3, Bundler and forking gems

Did you know you can specify a Github repo or custom path to a gem in your Gemfile? Either stay up to date with bleeding edge changes or fork your own version. In your Gemfile:

# Referencing Github
gem 'sg-ruby', :git => 'git://github.com/simplegeo/simplegeo-ruby.git'

# Referencing local copy
gem 'sg-ruby', :path => "/Users/user/gems/simplegeo-ruby"

1 note 0 comments

  1. Ryan submitted this to rubyquicktips

Comments

You can use HTML tags for formatting. Wrap code in <code> tags and multiple lines of code in <pre><code> tags.

blog comments powered by Disqus