lib/io_streams/zip/reader.rb in iostreams-0.7.0 vs lib/io_streams/zip/reader.rb in iostreams-0.8.0

- old
+ new

@@ -11,12 +11,12 @@ # while data = io_stream.read(256) # puts data # end # end def self.open(file_name_or_io, options={}, &block) - options = options.dup - buffer_size = options.delete(:buffer_size) || 65536 + options = options.dup + buffer_size = options.delete(:buffer_size) || 65536 raise(ArgumentError, "Unknown IOStreams::Zip::Reader option: #{options.inspect}") if options.size > 0 # File name supplied return read_file(file_name_or_io, &block) unless file_name_or_io.respond_to?(:read) @@ -52,10 +52,10 @@ else # MRI needs Ruby Zip, since it only has native support for GZip begin require 'zip' rescue LoadError => exc - puts "Please install gem rubyzip so that RocketJob can read Zip files in Ruby MRI" + puts 'Please install gem rubyzip so that RocketJob can read Zip files in Ruby MRI' raise(exc) end # Read from a zip file or stream, decompressing the contents as it is read # The input stream from the first file found in the zip file is passed \ No newline at end of file