From 53d947add7dc80c6720f5c44eadaa72b5db9296e Mon Sep 17 00:00:00 2001 From: Jordan White Date: Tue, 31 Dec 2013 03:14:43 -0500 Subject: [PATCH] set tempfile to binary mode to prevent corrupted gzip on windows --- lib/filey-diff/data-sources/aws_sdk_s3.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/filey-diff/data-sources/aws_sdk_s3.rb b/lib/filey-diff/data-sources/aws_sdk_s3.rb index eaab3bf..0f1ad5e 100644 --- a/lib/filey-diff/data-sources/aws_sdk_s3.rb +++ b/lib/filey-diff/data-sources/aws_sdk_s3.rb @@ -86,6 +86,7 @@ def last_modified_and_md5_from_gzipped(s3_object, path) [s3_object.last_modified, md5] else tempfile = Tempfile.new(File.basename(path)) + tempfile.binmode tempfile.write s3_object_contents tempfile.close