search (Gem::SourceInfoCache)

    # File lib/rubygems/source_info_cache.rb, line 282
      def search(pattern, platform_only = false, all = false)
        read_all_cache_data if all

        cache_data.map do |source_uri, sic_entry|
          next unless Gem.sources.include? source_uri
          # TODO - Remove this gunk after 2008/11
          unless pattern.kind_of?(Gem::Dependency)
            pattern = Gem::Dependency.new(pattern, Gem::Requirement.default)
          end
          sic_entry.source_index.search pattern, platform_only
        end.flatten.compact
      end