class Bundler::Source::GemCache

def specs

def specs
  @specs ||= begin
    index = Index.new
    Dir["#{@path}/*.gem"].each do |gemfile|
      spec = Gem::Format.from_file_by_path(gemfile).spec
      spec.source = self
      index << spec
    end
    index.freeze
  end
end