Skip to content

Regression in Mode arguments in 3.3.2 #336

Closed
@dburgess560

Description

@dburgess560

Version

Docker's ruby:3.3.2-bookworm image.
Ruby 3.3.2 implicitly includes CSV 3.2.8
We recently bumped CSV to 3.3.2 in our Gemfile.lock

Reproduction

CSV.open(Tempfile.new.path, 577)

Expected Behavior

CSV.open returns an IO object/file handle.

Current Behavior

NoMethodError: undefined method include?' for an instance of Integer`

Additional Info

This previously worked in 3.2.8. We believe that commit b706d91 introduced this behavior.
Our understanding of the docs is that CSV.open mimics Ruby's File.open mode argument, which does accepts numeric permissions File.open(Tempfile.new.path, 577) returns a file handle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions