Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
# Rack file for local Rubygems server, using YARD
require "rubygems"
require "yard"
libraries = {}
Gem.source_index.find_name('').each do |spec|
libraries[] ||= []
libraries[] <<, spec.version.to_s, nil, :gem)
options = {:single_library => false}
server_options = {}
run, options, server_options)

granth commented Sep 2, 2010

You can use this to make a gems.local site in OS X, using PassengerPane. You'll have to create a public directory, too, because PassengerPane insists on setting DocumentRoot Rails-style.

I adapted this to pull from all gemsets (assuming you use rvm).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment