Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression in Mode arguments in 3.3.2 #336

Closed
dburgess560 opened this issue Mar 19, 2025 · 2 comments
Closed

Regression in Mode arguments in 3.3.2 #336

dburgess560 opened this issue Mar 19, 2025 · 2 comments

Comments

@dburgess560
Copy link

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.

@kou kou closed this as completed in f394f79 Mar 20, 2025
@kou
Copy link
Member

kou commented Mar 20, 2025

Good catch!
I've fixed this.

@kou
Copy link
Member

kou commented Mar 20, 2025

I've released a new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants