class Gem::Resolver::IndexSet

通过传统的源索引表示的全局 rubygems 池。

公共实例方法

find_all(req) 点击以切换源代码

返回一个匹配依赖请求 req 的 IndexSpecification 对象数组。

# File rubygems/resolver/index_set.rb, line 39
def find_all(req)
  res = []

  return res unless @remote

  name = req.dependency.name

  @all[name].each do |uri, n|
    next unless req.match? n, @prerelease
    res << Gem::Resolver::IndexSpecification.new(
      self, n.name, n.version, uri, n.platform
    )
  end

  res
end