def generate_output(inputs, output)
      inputs.each do |input|
        # gzip input file to stream
        fakefile = StringIO.new
        gz = Zlib::GzipWriter.new(fakefile)
        gz.write(input.read)
        gz.close

        # send gzipped contents to output
        output.write fakefile.string
      end
    end
def generate_output(inputs, output)
      inputs.each do |input|
        # gzip input file to stream
        fakefile = StringIO.new
        gz = Zlib::GzipWriter.new(fakefile)
        gz.write(input.read)
        gz.close

        # send gzipped contents to output
        output.write fakefile.string
      end
    end
@param [Proc] block a block to use as the Filter's
   {#output_name_generator}.
 Implement the {#generate_output} method required by
 the {Filter} API. Compresses each input file with
 Zlib.GzipWriter.

 @param [Array<FileWrapper>] inputs an Array of
   {FileWrapper} objects representing the inputs to
   this filter.
 @param [FileWrapper] output a single {FileWrapper}
   object representing the output.