Skip to content

Instantly share code, notes, and snippets.

@lennart
Created June 28, 2011 09:39
Show Gist options
  • Save lennart/1050812 to your computer and use it in GitHub Desktop.
Save lennart/1050812 to your computer and use it in GitHub Desktop.
rackup for local yard server
require 'rubygems'
require 'yard'
libraries = {}
gems = 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
run YARD::Server::RackAdapter.new libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment