ruby-win32/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb
def search_with_source(pattern, only_platform = false)
    results = []

    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
    end

    results
  end
# Searches all source indexes for +pattern+.  If +only_platform+ is true,
# only gems matching Gem.platforms will be selected.  Returns an Array of
# pairs containing the Gem::Specification found and the source_uri it was
# found at.
Searches all source indexes for +pattern+.  If +only_platform+ is true,
only gems matching Gem.platforms will be selected.  Returns an Array of
pairs containing the Gem::Specification found and the source_uri it was
found at.
Searches all source indexes for + pattern + . If + only_platform + is true only gems matching Gem . platforms will be selected . Returns an Array of pairs containing the Gem :: Specification found and the source_uri it was found at .
def search_with_source(pattern, only_platform = false)
    results = []
    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
    end
    results
  end
def search_with_source ( pattern , only_platform = false ) results = [ ] 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 end results end
Searches all source indexes for +pattern+.
Searches all source indexes for + pattern + .
pattern
only_platform