Skip to content

Instantly share code, notes, and snippets.

@fgarcia
Created April 26, 2015 11:44
Show Gist options
  • Select an option

  • Save fgarcia/61ae715aa5d8c3bcf2a3 to your computer and use it in GitHub Desktop.

Select an option

Save fgarcia/61ae715aa5d8c3bcf2a3 to your computer and use it in GitHub Desktop.

Revisions

  1. Francisco Garcia created this gist Apr 26, 2015.
    11 changes: 11 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    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