ruby / csv

CSV Reading and Writing
https://ruby.github.io/csv/
BSD 2-Clause "Simplified" License
178 stars 113 forks source link

ruby 2.5.8 is missing write_converters #219

Closed kanayo closed 3 years ago

kanayo commented 3 years ago

I get an error using CSV with write converters and ruby 2.5.8:

ArgumentError: unknown keyword: write_converters

When I look at the docs for 2.5.7 & 2.5.8:

https://ruby-doc.org/stdlib-2.5.8/libdoc/csv/rdoc/CSV.html https://ruby-doc.org/stdlib-2.5.7/libdoc/csv/rdoc/CSV.html

2.5.7 has write converters but 2.5.8 and 2.5.9 don't.

and in 2.6, write_converters is back:

https://ruby-doc.org/stdlib-2.6/libdoc/csv/rdoc/CSV.html

Wouldn't be a problem to upgrade to 2.6, except using jruby and the current 9.2 version uses 2.5

kanayo commented 3 years ago

Found a solution, added

gem 'csv'

to bundle to get a newer version.