class Bundler::Source::Rubygems

def fetch_all_specs(&blk)

def fetch_all_specs(&blk)
  # Fetch all specs, minus prerelease specs
  Gem::SpecFetcher.new.list(true, false).each(&blk)
  # Then fetch the prerelease specs
  begin
    Gem::SpecFetcher.new.list(false, true).each(&blk)
  rescue Gem::RemoteFetcher::FetchError
    Bundler.ui.warn "Could not fetch prerelease specs from #{self}"
  end
end