lib/io_streams/zip/reader.rb in iostreams-0.17.2 vs lib/io_streams/zip/reader.rb in iostreams-0.17.3

- old
+ new

@@ -27,9 +27,10 @@ # Stream supplied begin # Since ZIP cannot be streamed, download un-zipped data to a local file before streaming temp_file = Tempfile.new('rocket_job') + temp_file.binmode file_name = temp_file.to_path # Stream zip stream into temp file ::File.open(file_name, 'wb') do |file| IOStreams.copy(file_name_or_io, file, buffer_size: buffer_size)