laurilehmijoki/s3_website — pull request #54 by jordanwhite (2013-12-31 08:22:22+00:00)
Title: set tempfile to binary mode to prevent corrupted gzip on windows

It works fine on Linux but when attempting a push to s3 on Windows with Ruby 1.9.3, the gzipped files come out corrupted. Similar to this issue: http://stackoverflow.com/questions/3689963/ruby-zlibgzip-not-working-properly

Switching the tempfile to binary mode solves this issue and produces proper gzip output.