Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1848 from ZoFreX/master
Browse files Browse the repository at this point in the history
Added documentation of the new :github option for gemfiles
  • Loading branch information
radar committed Apr 13, 2012
2 parents 51424a7 + 40c36ec commit d195524
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions man/gemfile.5.ronn
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,20 @@ and then installs the resulting gem. The `gem build` command,
which comes standard with Rubygems, evaluates the `.gemspec` in
the context of the directory in which it is located.

### GITHUB (:github)

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", :github => :git://github.com/rails/rails.git"

### PATH (:path)

You can specify that a gem is located in a particular location
Expand Down

0 comments on commit d195524

Please sign in to comment.