diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-17 20:50:00 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-04-17 20:50:00 +0000 |
commit | 22d9456b7917fe96fa81fd1d994073312753af8b (patch) | |
tree | be157928ed84f75988ceb82a070797c3482b66a6 /lib/rubygems/spec_fetcher.rb | |
parent | 22263729af357eb86e8bc2165a9eaa6f25eec8a6 (diff) | |
download | ruby-22d9456b7917fe96fa81fd1d994073312753af8b.tar.gz |
* lib/rubygems: Update to RubyGems 1.8.22 plus r33517 and r35337 which
were ported to the rubygems git repository.
See https://github.com/rubygems/rubygems/blob/1.8/History.txt for
changes since 1.8.11.
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/spec_fetcher.rb')
-rw-r--r-- | lib/rubygems/spec_fetcher.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/rubygems/spec_fetcher.rb b/lib/rubygems/spec_fetcher.rb index ad61267cae..7302ad9ffa 100644 --- a/lib/rubygems/spec_fetcher.rb +++ b/lib/rubygems/spec_fetcher.rb @@ -255,8 +255,12 @@ class Gem::SpecFetcher loaded = false if File.exist? local_file then - spec_dump = - @fetcher.fetch_path(spec_path, File.mtime(local_file)) rescue nil + begin + spec_dump = + @fetcher.fetch_path(spec_path, File.mtime(local_file)) + rescue Gem::RemoteFetcher::FetchError => e + alert_warning "Error fetching data: #{e.message}" + end loaded = true if spec_dump |