class Bundler::Source::Rubygems
def fetch_all_remote_specs(&blk)
def fetch_all_remote_specs(&blk) begin # 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 rescue Gem::RemoteFetcher::FetchError Bundler.ui.warn "Could not reach #{self}" end end