class YARD::Server::LibraryVersion

def load_yardoc_from_gem

Raises:
  • (LibraryNotPreparedError) - if the gem does not have an existing
def load_yardoc_from_gem
  return if ready?
  ver = version ? "= #{version}" : ">= 0"
  @@chdir_mutex.synchronize do
    Thread.new do
      # Build gem docs on demand
      log.debug "Building gem docs for #{to_s(false)}"
      CLI::Gems.run(name, ver)
      log.debug "Done building gem docs for #{to_s(false)}"
    end
  end
  raise LibraryNotPreparedError
end