class Bundler::RubygemsIntegration::Future

def fetch_specs(source, name)

def fetch_specs(source, name)
  path = source + "#{name}.#{Gem.marshal_version}.gz"
  string = Gem::RemoteFetcher.fetcher.fetch_path(path)
  Bundler.load_marshal(string)
rescue Gem::RemoteFetcher::FetchError => e
  # it's okay for prerelease to fail
  raise e unless name == "prerelease_specs"
end