Viewing documentation for your ruby gems

I stumbled into this four line ruby script that will serve up all of the rdoc documentation for your server's currently installed gems:

1
2
3
4
#!/usr/bin/env ruby
require "rubygems/server"
options = {:gemdir => Gem.dir, :port => 4242, :daemon => true}
Gem::Server::run(options)

Thanks to Daniel for the ruby code!

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://rackerhacker.com/2008/11/05/viewing-documentation-for-your-ruby-gems/ .
© Major Hayden 2010.

1 Comment   »

  • Vincent says:

    hi,
    a "gem server --deamon -p 4242" will also do the trick

RSS feed for comments on this post , TrackBack URI

Leave a Reply