lib/io_streams/tabular/utility/csv_row.rb in iostreams-1.5.1 vs lib/io_streams/tabular/utility/csv_row.rb in iostreams-1.6.0
- old
+ new
@@ -4,13 +4,10 @@
module Utility
# For parsing a single line of CSV at a time
# 2 to 3 times better performance than CSV.parse_line and considerably less
# garbage collection required.
#
- # Note:
- # This parser does not support line feeds embedded in quoted fields since
- # the file is broken apart based on line feeds during the upload process and
- # is then processed by each worker on a line by line basis.
+ # Note: Only used prior to Ruby 2.6
class CSVRow < ::CSV
UTF8_ENCODING = Encoding.find("UTF-8").freeze
def initialize(encoding = UTF8_ENCODING)
@io = StringIO.new("".force_encoding(encoding))