I was tinkering with Rails4 from source and noticed something interesting in the Gemfile of an app that Rails generated.
gem 'rails', github: 'rails/rails'
The :github option? Looks like this was added recently.
From the Gemfile manual:
If the git repository you want to use is hosted on GitHub and is public, you can use the :github shorthand to specify just the github username and repository name (without the trailing “.git”), separated by a slash. If both the username and repository name are the same, you can omit one.
gem "rails", :github => "rails/rails" gem "rails", :github => "rails"
Are both equivalent to
gem "rails", :git => "git://github.com/rails/rails.git"
Just to keep you informed, this is available in the stable release of Bundler.