csvreader gem Update (Now 3.x Compatible) - Read tabular data in the comma-separated values (csv) format the right way (uses best practices out-of-the-box with zero-configuration)

Hello,

    to lead by example allow me highlight today's patch [1] that resulted
in an update to the csvreader gem.

Patches reader_hash.rb so it is compatible with Ruby 3

   Let's thank Pedro Sena. Obrigado!

   What's your favorite csv gem in ruby? Anyone has any tips or
tricks to share?

[1] Patches reader_hash.rb so it is compatible with Ruby 3 by PedroSena · Pull Request #10 · csvreader/csvreader · GitHub

I stopped using CSV gems after they added CSV functionality to Ruby
(in some old version, perhaps prior to 2.4.0).

I'll keep those gems in mind though since they seem to be handling
some advanced scenarios.

···

On Tue, Oct 5, 2021 at 3:11 PM Gerald Bauer <gerald.bauer@gmail.com> wrote:

Hello,

    to lead by example allow me highlight today's patch [1] that resulted
in an update to the csvreader gem.

> Patches reader_hash.rb so it is compatible with Ruby 3

   Let's thank Pedro Sena. Obrigado!

   What's your favorite csv gem in ruby? Anyone has any tips or
tricks to share?

[1] Patches reader_hash.rb so it is compatible with Ruby 3 by PedroSena · Pull Request #10 · csvreader/csvreader · GitHub

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

--
Andy Maleh

LinkedIn: https://www.linkedin.com/in/andymaleh
Blog: http://andymaleh.blogspot.com
GitHub: http://www.github.com/AndyObtiva

Hello,

I stopped using CSV gems after they added CSV functionality to Ruby
(in some old version, perhaps prior to 2.4.0).

I'll keep those gems in mind though since they seem to be handling
some advanced scenarios.

  The built-in CSV module / gem got some good updates lately. I think
the broken whitespace issue
for quotes values is now fixed and the built-in CSV module now has a
proper parser and no longer a string.split hack claiming for sure to
be super-fast but kind-of broken.

   Anyways, the main issue of the built-in CSV module is the old-ish
overengineered "OOP" interface.
  If you read a datasets - you usually want to get back a "plain
vanilla" ruby hash with all strings and not some "OOP" hash-like
wrappers or such.

   Not really blaming anyone - I understand it is hard (or impossible)
to upgrade the interface without breaking compatibility.

    Cheers. Prost.