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!

Printed from: http://rackerhacker.com/2008/11/05/viewing-documentation-for-your-ruby-gems/ .
© Major Hayden 2012.

1 Comment   »

  • Vincent says:

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

RSS feed for comments on this post

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden

    Flattr this