Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
# 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)

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
Something went wrong with that request. Please try again.