class YARD::Server::LibraryVersion

def gemspec

Returns:
  • (nil) - if there is no installed gem for the library
  • (Gem::Specification) - a gemspec object for a given library. Used
def gemspec
  ver = version ? "= #{version}" : ">= 0"
  YARD::GemIndex.find_all_by_name(name, ver).last
end