public
Last active

  • Download Gist
config.ru
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# Rack file for local Rubygems server, using YARD
 
require "rubygems"
require "yard"
 
libraries = {}
Gem.source_index.find_name('').each do |spec|
libraries[spec.name] ||= []
libraries[spec.name] << YARD::Server::LibraryVersion.new(spec.name, spec.version.to_s, nil, :gem)
end
 
options = {:single_library => false}
server_options = {}
 
run YARD::Server::RackAdapter.new(libraries, 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).

https://gist.github.com/1313488

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.