summaryrefslogtreecommitdiff
path: root/lib/rubygems/source_info_cache.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/source_info_cache.rb9
1 files changed, 9 insertions, 0 deletions
@@ -284,6 +284,10 @@ class Gem::SourceInfoCache
cache_data.map do |source_uri, sic_entry|
next unless Gem.sources.include? source_uri
sic_entry.source_index.search pattern, platform_only
end.flatten.compact
end
@@ -300,6 +304,11 @@ class Gem::SourceInfoCache
cache_data.map do |source_uri, sic_entry|
next unless Gem.sources.include? source_uri
sic_entry.source_index.search(pattern, only_platform).each do |spec|
results << [spec, source_uri]
end