Ruby’s GemServer



If you’re doing Rails development I came across a handy utility that I’d like to share.  It’s the RubyGems documentation that can be easily accessed on your local machine.  Simply run the following command at your command prompt:

gem_server

and an instance of WEBrick will start on port 8808.  Accessing this through http://localhost:8808 will display an index page (shown below) with all gems installed as well as their documentation.  I’ve found this useful in several instances where I was away from an internet connection and needed access to the RDocs.  Enjoy!



Leave a Reply