jseifer / sinatra-rubygems forked from jnewland/sinatra-rubygems

A complete reimplementation of the gem server command as a Sinatra application

This URL has Read+Write access

jseifer (author)
Sat Feb 21 22:32:27 -0800 2009
commit  8ba3217e295641c9488ab9d3cb7e055d22614409
tree    c139c19d92a12aa46550a5b794ec76fa1b6ea290
parent  bd6fd73c7447ad36e93cf9299f6f33cb0354b2de
name age message
file Rakefile Sun Feb 08 13:47:18 -0800 2009 initial import [jnewland]
file Readme.textile Loading commit data...
file config.ru Fri Feb 20 06:56:59 -0800 2009 passenger compat [jnewland]
directory lib/
directory public/ Sat Feb 21 16:23:55 -0800 2009 copy over the root method & template [jnewland]
directory spec/ Sat Feb 21 16:23:55 -0800 2009 copy over the root method & template [jnewland]
directory tmp/ Fri Feb 20 06:56:59 -0800 2009 passenger compat [jnewland]
directory views/ Sat Feb 21 16:23:55 -0800 2009 copy over the root method & template [jnewland]
Readme.textile

sinatra-rubygems

An complete reimplementation of the gem server command as a Sinatra application.

Uh, Why?

  • Host your own gem server using Apache + Passenger, not Webrick
  • Drop this project into PassengerPane for instant offline access to RDoc Documentation for all installed Rubygems.

Setup

  1. git clone git://github.com/jnewland/sinatra-rubygems.git
  2. open .
  3. Drag the sinatra-rubygems folder into PassengerPane. Setup a gems.local alias for maximum convenience.

If you’re not using PassengerPane, use the following vhost config:


<VirtualHost *:80> ServerName gems.local #ServerAlias custom.gem.server.fqdn DocumentRoot "/path/to/sinatra-rubygems/public" RackEnv production <directory "/path/to/src/sinatra-rubygems/public"> Order allow,deny Allow from all

If you’d like to run this as a rack app, you can run rackup config.ru in the root of this project, then see the server at http://localhost:9292.

License

GPL, since RubyGems is GPL.