Skip to content

Please add 'csv' as an explicit gemspec dependency for Ruby 3.4+ compatibility (backport from 3.0.0) #641

@tomgrrr

Description

@tomgrrr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions