Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added :github to gemfile documentation

  • Loading branch information...
commit 40c36ec95e9805426caba8ceecc5d1ae9b9e23fe 1 parent 51424a7
@zofrex zofrex authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 man/gemfile.5.ronn
View
14 man/gemfile.5.ronn
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.