lib/symmetric_encryption/writer.rb in symmetric-encryption-0.8.0 vs lib/symmetric_encryption/writer.rb in symmetric-encryption-0.9.0

- old
+ new

@@ -64,10 +64,10 @@ # ensure # csv.close if csv # end def self.open(filename_or_stream, options={}, &block) raise "options must be a hash" unless options.respond_to?(:each_pair) - mode = options.fetch(:mode, 'w') + mode = options.fetch(:mode, 'wb') compress = options.fetch(:compress, false) ios = filename_or_stream.is_a?(String) ? ::File.open(filename_or_stream, mode) : filename_or_stream begin file = self.new(ios, options)