Created
June 28, 2011 09:39
-
-
Save lennart/1050812 to your computer and use it in GitHub Desktop.
rackup for local yard server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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