compact_specs (Gem::Indexer)

    # File lib/rubygems/indexer.rb, line 495
      def compact_specs(specs)
        names = {}
        versions = {}
        platforms = {}

        specs.map do |(name, version, platform)|
          names[name] = name unless names.include? name
          versions[version] = version unless versions.include? version
          platforms[platform] = platform unless platforms.include? platform

          [names[name], versions[version], platforms[platform]]
        end
      end