Octocat

GitHub RubyGems

Welcome to GitHub's RubyGem repository!

Installing a RubyGem from GitHub

There have been issues reported using gem sources -a http://gems.github.com,
so please use the manual source install below until a resolution is found.

  $ sudo gem install username-projectname --source=http://gems.github.com

Example Usage:

  $ sudo gem install mojombo-grit --source=http://gems.github.com
  Successfully installed mojombo-grit-0.8.1
  $ irb -rubygems
  
  (regular require)
  >> require 'grit'
  => true
  
  (explicit require)
  >> gem 'mojombo-grit'
  => true
  >> require 'grit'
  => true  

Hosting a RubyGem on GitHub

If you'd like to host your gem on Github, please do the following:

  1. Create a new repository on GitHub if you haven't already.
  2. Add project_name.gemspec to the root directory. (example gemspec)
  3. Go to your project's edit screen and check the 'RubyGem' box.
  4. Push your gemspec to GitHub and we'll build a gem (prefixed with your username) on the fly.
  5. Any subsequent changes you make to your gemspec, we'll build a new gem for you.

Troubleshooting

GitHub is Logical Awesome ©2008