Skip to content

Instantly share code, notes, and snippets.

@kugaevsky
Last active December 11, 2015 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kugaevsky/4637390 to your computer and use it in GitHub Desktop.
Save kugaevsky/4637390 to your computer and use it in GitHub Desktop.
Yard server rack config.ru file
require 'rubygems'
require 'yard'
gems = %w(xendoola jackad)
libraries = {}
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
run YARD::Server::RackAdapter.new libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment