Summary
Ruby 3.4 removed csv from the list of default gems, meaning it is no longer automatically available without an explicit require or gemspec dependency. As a result, roo 2.10.1 raises a LoadError on Ruby 3.4+ environments.
Current behavior
On Ruby 3.4+, any code path in roo that uses CSV without an explicit require 'csv' will fail with:
LoadError: cannot load such file -- csv
Expected behavior
roo 2.10.1 should declare csv as an explicit dependency in its gemspec, or at minimum document that users on Ruby 3.4+ must add gem 'csv' to their Gemfile manually.
Context
This has already been fixed in roo 3.0.0, where the gemspec conditionally adds:
spec.add_dependency 'csv', '~> 3'
for Ruby >= 3.4. However, users still on the 2.10.x branch are affected.
A backport of this single dependency line to 2.10.x would be sufficient to resolve the issue.
References
Summary
Ruby 3.4 removed
csvfrom the list of default gems, meaning it is no longer automatically available without an explicitrequireor gemspec dependency. As a result,roo2.10.1 raises aLoadErroron Ruby 3.4+ environments.Current behavior
On Ruby 3.4+, any code path in
roothat usesCSVwithout an explicitrequire 'csv'will fail with:Expected behavior
roo2.10.1 should declarecsvas an explicit dependency in its gemspec, or at minimum document that users on Ruby 3.4+ must addgem 'csv'to their Gemfile manually.Context
This has already been fixed in
roo3.0.0, where the gemspec conditionally adds:for Ruby >= 3.4. However, users still on the 2.10.x branch are affected.
A backport of this single dependency line to
2.10.xwould be sufficient to resolve the issue.References