csv-diff
csv-diff copied to clipboard
Performs field-by-field diffs of CSV files
fixes #17 This is a quick fix to double splat csv_options on sourcefile open.
Hello, I've been here before and I'm back 😊 This gem has become a cornerstone in one of the projects I've developed. In most cases, it handles very well, minus...
It does not work with Ruby 3.0. The following line causes ArgumentError in csv library. https://github.com/agardiner/csv-diff/blob/e55c1af19e54c626afd023e4767bbd7b289f7412/lib/csv-diff/csv_source.rb#L60 Changing `csv_options` to `**csv_options` will resolve it.
Hi I'm using this tool for some csv files. then, I discover that error occurs when there is the null field. For example, if specifying these csv files, occurs NoMethodError....
Parsing a csv now gives you a CSV::Row, which doesn't respond to `+`. `'get_diff_fields': undefined method + for #CSV::Row:0x007f91dba5fe50 (NoMethodError).