Class: Gem::Resolver::IndexSet
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Set
|
|
|
Instance Chain:
self,
Set
|
|
| Inherits: |
Gem::Resolver::Set
|
| Defined in: | lib/rubygems/resolver/index_set.rb |
Overview
The global rubygems pool represented via the traditional source index.
Instance Attribute Summary
Set - Inherited
| #errors | Errors encountered when resolving gems. |
| #prerelease | When true, allows matching of requests to prerelease gems. |
| #remote | Set to true to disable network access for this set. |
Instance Method Summary
-
#find_all(req)
Return an array of IndexSpecification objects matching DependencyRequest
req.
Set - Inherited
Instance Method Details
#find_all(req)
Return an array of IndexSpecification objects matching DependencyRequest req.
# File 'lib/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| if req.match? n, @prerelease then res << Gem::Resolver::IndexSpecification.new( self, n.name, n.version, uri, n.platform) end end res end