Skip to content

Add options "undef", "replace" form CSV#open#90

Closed
yuuna wants to merge 1 commit intoruby:masterfrom
yuuna:master
Closed

Add options "undef", "replace" form CSV#open#90
yuuna wants to merge 1 commit intoruby:masterfrom
yuuna:master

Conversation

@yuuna
Copy link
Copy Markdown

@yuuna yuuna commented Apr 20, 2019

I want to use CSV#open with undef: :repace, replace: "*" options form wrong character.

Copy link
Copy Markdown
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your report.
Could you check my comments?

strip: false)
strip: false,
undef: nil,
replace: nil)
Copy link
Copy Markdown
Member

@kou kou Apr 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to accept :undef and :replace in CVS#initialize?
It seems that we just need to accept them in CSV.open. Then we can remove them from options in CSV.open arguments.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will fix the arguments in CSV.open.

rows << row
end
assert_equal(@rows, rows)
end
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to new test data that fails without these new options.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will make a new test data.

@kou
Copy link
Copy Markdown
Member

kou commented Jun 1, 2020

Orphan.

@kou kou closed this Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants