NYTimes/Fech — pull request #22 by abstrctn (2012-02-21 15:29:09+00:00)
Title: Malformed CSV Handling

From https://github.com/NYTimes/Fech/issues/20:

Added support for alternative CSV Parsers. The main parse loop was moved out of Fech::Filing#each_row, and into Fech::Csv.parse_row.

To handle rows in the data with misplaced quote characters which cannot be parsed normally, use a subclass of Fech::Csv, Fech::CsvDoctor, which overrides .parse_row to rescue MalformedCSV errors on every line.

Example:
Fech::Filing.new(723604, :csv_parser => Fech::CsvDoctor)

By default, the old Fech::Csv is used.