Archive for the ‘Gem’ Category

gem_server for gem documentation

Tuesday, January 23rd, 2007

A handy tip for getting documentation on your Ruby gems is to use gem_server which fires off a local server which you can access on http://127.0.0.1:8808. Very handy. Another way is to run gem environment gemdir to get your gem install dir, append doc onto the end and the gem documents are all in there e.g. /usr/local/lib/ruby/gems/1.8/doc

Rails gem files

Thursday, August 17th, 2006

If you ever need to install Ruby on Rails 1.1.6 then here is the minimal list of gems you need:

Use gem install on them.

Packaging Edge Rails as a Gem?

Thursday, August 3rd, 2006

Does anyone have a clue as to how to download Edge Rails and package it as a Gem for easy install? Right now I have my svn repo setup with an external link to Edge Rails but ideally I’d like to be able to create a gem from Edge Rails and install that. Any help is appreciated.

Cerberus on Windows

Wednesday, July 26th, 2006

Just a quick one before a longer “Rails Continuous Integration” post but if you are trying to get Cerberus to work on Windows then after the gem install you have to set an environment variable yourself. Create one called CERBERUS_HOME with a value of C:\ruby\lib\ruby\gems\1.8\gems\cerberus-0.1.1

GUID/UUID in Ruby

Monday, May 15th, 2006

Surprisingly Ruby doesn’t come with a built in GUID generator. Thankfully there is the useful uuid project which implements a gem that you can easily install and use to generate GUIDs.

1. gem install uuid

2. require 'uuid'

3. UUID.new

Gems rock.