    # File lib/rubygems/indexer.rb, line 248
      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