lib/io_streams/zip/reader.rb in iostreams-0.14.0 vs lib/io_streams/zip/reader.rb in iostreams-0.15.0
- old
+ new
@@ -31,10 +31,10 @@
temp_file = Tempfile.new('rocket_job')
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)
+ IOStreams.copy(file_name_or_io, file, buffer_size: buffer_size)
end
read_file(file_name, &block)
ensure
temp_file.delete if temp_file