mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 10:03:59 +02:00
* 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:
parent
b385f19c92
commit
d39041bab5
12 changed files with 169 additions and 20 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue