summaryrefslogtreecommitdiff
path: root/lib/rubygems/available_set.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/available_set.rb8
1 files changed, 4 insertions, 4 deletions
@@ -70,11 +70,11 @@ class Gem::AvailableSet
end
def all_specs
- @set.map { |t| t.spec }
end
def match_platform!
- @set.reject! { |t| !Gem::Platform.match(t.spec.platform) }
@sorted = nil
self
end
@@ -91,7 +91,7 @@ class Gem::AvailableSet
end
def source_for(spec)
- f = @set.find { |t| t.spec == spec }
f.source
end
@@ -160,7 +160,7 @@ class Gem::AvailableSet
end
def inject_into_list(dep_list)
- @set.each { |t| dep_list.add t.spec }
end
end