From: "Ben U." Date: 2011-02-28T13:24:04+09:00 Subject: Re: Running GzipWriter on same input produces different output I think the reason for this is because gzip saves the original filename and timestamp. If no timestamp is present gzip uses the gzip file creation time. If you want the files to be the same, as I did, you can set the modification time when using GzipWriter. I.e.: require 'zlib' Zlib::GzipWriter.open('/tmp/file.gz') do |gz| gz.mtime = 1 gz.write "contents" end -- Posted via http://www.ruby-forum.com/.