lib/symmetric_encryption/reader.rb in symmetric-encryption-3.4.0 vs lib/symmetric_encryption/reader.rb in symmetric-encryption-3.6.0
- old
+ new
@@ -61,18 +61,18 @@
# file.read(5)
# end
# end
#
# # Example: Read, Unencrypt and decompress data in a file
- # SymmetricEncryption::Reader.open('encrypted_compressed.zip', :compress => true) do |file|
+ # SymmetricEncryption::Reader.open('encrypted_compressed.zip', compress: true) do |file|
# file.each_line {|line| p line }
# end
#
# # Example: Reading from a CSV file
#
- # require 'fastercsv'
+ # require 'csv'
# begin
- # csv = FasterCSV.new(SymmetricEncryption::Reader.open('csv_encrypted'))
+ # csv = CSV.new(SymmetricEncryption::Reader.open('csv_encrypted'))
# csv.each {|row| p row}
# ensure
# csv.close if csv
# end
def self.open(filename_or_stream, options={}, &block)