* lib/rubygems: Update to RubyGems 2.0.13. [ruby-core:58031]

[Backport #9052]
  the patch is provided by drbrain (Eric Hodel).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@43435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagachika 2013-10-26 17:44:33 +00:00
parent b385f19c92
commit d39041bab5
12 changed files with 169 additions and 20 deletions

View file

@ -63,7 +63,12 @@ class Gem::Source
end
def update_cache?
@update_cache ||= File.stat(Gem.user_home).uid == Process.uid
@update_cache ||=
begin
File.stat(Gem.user_home).uid == Process.uid
rescue Errno::ENOENT
false
end
end
def fetch_spec(name)