lib/symmetric_encryption/writer.rb in symmetric-encryption-0.7.0 vs lib/symmetric_encryption/writer.rb in symmetric-encryption-0.7.1
- old
+ new
@@ -129,9 +129,17 @@
def <<(data)
write(data)
self
end
+ # Flush the output stream
+ # Does not flush internal buffers since encryption requires all data to
+ # be written following the encryption block size
+ # Needed by XLS gem
+ def flush
+ @ios.flush
+ end
+
private
# Write the Encryption header if this is the first write
def write_header
# Include Header and encryption version indicator