find_latest_gem_paths (Templater::Discovery)

    # File lib/templater/discovery.rb, line 56
        def find_latest_gem_paths
          # Minigems provides a simpler (and much faster) method for finding the
          # latest gems.
          if Gem.respond_to?(:latest_gem_paths)
            Gem.latest_gem_paths
          else
            gems = Gem.cache.inject({}) do |latest_gems, cache|
              name, gem = cache
              currently_latest = latest_gems[gem.name]
              latest_gems[gem.name] = gem if currently_latest.nil? or gem.version > currently_latest.version
              latest_gems
            end
            gems.values.map{|g| g.full_gem_path}
          end
        end