Skip to content

Instantly share code, notes, and snippets.

@fgarcia
Created April 26, 2015 11:44
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save fgarcia/61ae715aa5d8c3bcf2a3 to your computer and use it in GitHub Desktop.
multiple #yard gems #ruby
libraries = {}
gems = %w(poconf)
gems.each do |gem_name|
Gem.source_index.find_name(gem_name).each do |spec|
libraries[spec.name] ||= []
libraries[spec.name] << YARD::Server::LibraryVersion.new(spec.name, spec.version.to_s, nil, :gem)
end
end
YARD::Server::RackAdapter.setup
run YARD::Server::RackAdapter.new libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment