mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Update to RubyGems HEAD(c202db2).
this version contains many enhancements see http://git.io/vtNwF * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9c4ef4b191
commit
effdbf5936
90 changed files with 2489 additions and 1159 deletions
|
@ -164,6 +164,10 @@ class Gem::Dependency
|
|||
@type ||= :runtime
|
||||
end
|
||||
|
||||
def runtime?
|
||||
@type == :runtime || !@type
|
||||
end
|
||||
|
||||
def == other # :nodoc:
|
||||
Gem::Dependency === other &&
|
||||
self.name == other.name &&
|
||||
|
@ -270,9 +274,8 @@ class Gem::Dependency
|
|||
end
|
||||
|
||||
def matching_specs platform_only = false
|
||||
matches = Gem::Specification.stubs.find_all { |spec|
|
||||
self.name === spec.name and # TODO: == instead of ===
|
||||
requirement.satisfied_by? spec.version
|
||||
matches = Gem::Specification.stubs_for(name).find_all { |spec|
|
||||
requirement.satisfied_by? spec.version
|
||||
}.map(&:to_spec)
|
||||
|
||||
if platform_only
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue