mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Update to RubyGems master 0a3814b. Changes:
Fixed extension directory in Gem::Specification#require_paths. Allow installation of gems when $HOME is nonexistent or unwritable. Use proper API in InstallCommand. Improve support for path option in gem dependency files. Remove warnings. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9f9b476710
commit
08aa6d59a2
17 changed files with 165 additions and 116 deletions
|
@ -47,12 +47,7 @@ class Gem::Source
|
|||
include Comparable
|
||||
|
||||
def ==(other)
|
||||
case other
|
||||
when self.class
|
||||
@uri == other.uri
|
||||
else
|
||||
false
|
||||
end
|
||||
self.class === other and @uri == other.uri
|
||||
end
|
||||
|
||||
alias_method :eql?, :==
|
||||
|
@ -71,7 +66,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