Git, Github, and Rubygems quickstart31 Mar 08
Here's how to go from a rubygem's source code in a git repository to an installed gem on your machine:
- Make sure you have git installed. Install MacPorts, then do 'sudo port install git-core'.
- Copy the git repository to your local machine: git clone http://github.com/gwynm/mailtrap/tree/master.
- Now you have a new directory, "mailtrap". cd mailtrap
- Build the gem: rake gem. This step fails if the gem you downloaded isn't using "hoe", a gem which builds gems.
- Install the gem: sudo rake install_gem.
If 'rake gem' fails, you might be missing dependencies. Eg for Mailtrap, you need Trollop.