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:

  1. Make sure you have git installed. Install MacPorts, then do 'sudo port install git-core'.
  2. Copy the git repository to your local machine: git clone http://github.com/gwynm/mailtrap/tree/master.
  3. Now you have a new directory, "mailtrap". cd mailtrap
  4. Build the gem: rake gem. This step fails if the gem you downloaded isn't using "hoe", a gem which builds gems.
  5. Install the gem: sudo rake install_gem.
Gwyn said on 01 May 2008:

If 'rake gem' fails, you might be missing dependencies. Eg for Mailtrap, you need Trollop.




Gwyn Morfey — facebookflickrbuy the book — London UK