<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/ruby.git/lib/csv, branch ruby_3_2</title>
<subtitle>github.com: ruby/ruby.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ruby.git/'/>
<entry>
<title>Merge csv-3.2.6</title>
<updated>2022-12-09T07:36:22+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2022-12-08T23:46:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ruby.git/commit/?id=643918ecfe9c980f251247de6acd3be6280da24c'/>
<id>643918ecfe9c980f251247de6acd3be6280da24c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Replace the external URIs to docs with rdoc-ref</title>
<updated>2022-10-12T04:30:25+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-10-12T04:30:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ruby.git/commit/?id=0360fca4ad9cfcffbcc5e5a016308563267a5fcb'/>
<id>0360fca4ad9cfcffbcc5e5a016308563267a5fcb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Replace the external URIs to docs with rdoc-ref</title>
<updated>2022-10-12T03:27:40+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-10-12T02:54:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ruby.git/commit/?id=3539da64fc42d6eb76f1d4c3ccd219c3259ecd8b'/>
<id>3539da64fc42d6eb76f1d4c3ccd219c3259ecd8b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/csv] Revert "parser: fix a keep bug that some texts may be dropped unexpectedly"</title>
<updated>2021-12-24T05:35:33+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2021-12-24T01:44:11+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ruby.git/commit/?id=22ef4f6445376b992b2725124594dad1c77a185e'/>
<id>22ef4f6445376b992b2725124594dad1c77a185e</id>
<content type='text'>
This reverts commit https://github.com/ruby/csv/commit/5c6523da0a61.

This introduces another pbolem. We should try again later.

https://github.com/ruby/csv/commit/43a1d6fff1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit https://github.com/ruby/csv/commit/5c6523da0a61.

This introduces another pbolem. We should try again later.

https://github.com/ruby/csv/commit/43a1d6fff1
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/csv] parser: use row separator explicitly</title>
<updated>2021-12-24T05:35:33+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2021-12-24T01:18:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ruby.git/commit/?id=002ce9f515d984aa0fe43c51448b36ea3651a395'/>
<id>002ce9f515d984aa0fe43c51448b36ea3651a395</id>
<content type='text'>
It will improve performance a bit. (But I haven't confirmed it yet...)

https://github.com/ruby/csv/commit/06a65b0302
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It will improve performance a bit. (But I haven't confirmed it yet...)

https://github.com/ruby/csv/commit/06a65b0302
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/csv] parser: fix a keep bug that some texts may be dropped unexpectedly</title>
<updated>2021-12-24T05:35:33+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2021-12-24T01:18:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ruby.git/commit/?id=4a5d372ca8902a649928eb0689aca7edcfaa07b6'/>
<id>4a5d372ca8902a649928eb0689aca7edcfaa07b6</id>
<content type='text'>
Ruby: [Bug #18245] [ruby-core:105587]

Reported by Hassan Abdul Rehman.

https://github.com/ruby/csv/commit/5c6523da0a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ruby: [Bug #18245] [ruby-core:105587]

Reported by Hassan Abdul Rehman.

https://github.com/ruby/csv/commit/5c6523da0a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/csv] Fix a bug that all of ARGF contents may not be consumed</title>
<updated>2021-12-24T05:35:33+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2021-12-02T21:30:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ruby.git/commit/?id=56a5ae9f52920982a2f1571a57090772c94c8243'/>
<id>56a5ae9f52920982a2f1571a57090772c94c8243</id>
<content type='text'>
GitHub: fix GH-228

Reported by Rafael Navaza. Thanks!!!

https://github.com/ruby/csv/commit/81f595b6a1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GitHub: fix GH-228

Reported by Rafael Navaza. Thanks!!!

https://github.com/ruby/csv/commit/81f595b6a1
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/csv] Bump version</title>
<updated>2021-12-24T05:35:33+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2021-12-02T21:29:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ruby.git/commit/?id=d137ce50a1fb438b1fa078f5c54a72b7be30c52a'/>
<id>d137ce50a1fb438b1fa078f5c54a72b7be30c52a</id>
<content type='text'>
https://github.com/ruby/csv/commit/e32b666731
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/csv/commit/e32b666731
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/csv] Add handling for ambiguous parsing options (https://github.com/ruby/csv/pull/226)</title>
<updated>2021-12-24T05:35:33+00:00</updated>
<author>
<name>adamroyjones</name>
<email>10088591+adamroyjones@users.noreply.github.com</email>
</author>
<published>2021-11-18T21:20:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ruby.git/commit/?id=c70dc3cafb29d89d0377677ead346495183db47e'/>
<id>c70dc3cafb29d89d0377677ead346495183db47e</id>
<content type='text'>
GitHub: fix GH-225

With Ruby 3.0.2 and csv 3.2.1, the file

```ruby
require "csv"
File.open("example.tsv", "w") { |f| f.puts("foo\t\tbar") }
CSV.read("example.tsv", col_sep: "\t", strip: true)
```

produces the error

```
lib/csv/parser.rb:935:in `parse_quotable_robust': TODO: Meaningful
message in line 1. (CSV::MalformedCSVError)
```

However, the CSV in this example is not malformed; instead, ambiguous
options were provided to the parser. It is not obvious (to me) whether
the string should be parsed as

- `["foo\t\tbar"]`,
- `["foo", "bar"]`,
- `["foo", "", "bar"]`, or
- `["foo", nil, "bar"]`.

This commit adds code that raises an exception when this situation is
encountered. Specifically, it checks if the column separator either ends
with or starts with the characters that would be stripped away.

This commit also adds unit tests and updates the documentation.

https://github.com/ruby/csv/commit/cc317dd42d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GitHub: fix GH-225

With Ruby 3.0.2 and csv 3.2.1, the file

```ruby
require "csv"
File.open("example.tsv", "w") { |f| f.puts("foo\t\tbar") }
CSV.read("example.tsv", col_sep: "\t", strip: true)
```

produces the error

```
lib/csv/parser.rb:935:in `parse_quotable_robust': TODO: Meaningful
message in line 1. (CSV::MalformedCSVError)
```

However, the CSV in this example is not malformed; instead, ambiguous
options were provided to the parser. It is not obvious (to me) whether
the string should be parsed as

- `["foo\t\tbar"]`,
- `["foo", "bar"]`,
- `["foo", "", "bar"]`, or
- `["foo", nil, "bar"]`.

This commit adds code that raises an exception when this situation is
encountered. Specifically, it checks if the column separator either ends
with or starts with the characters that would be stripped away.

This commit also adds unit tests and updates the documentation.

https://github.com/ruby/csv/commit/cc317dd42d
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/csv] Add support for Ractor (https://github.com/ruby/csv/pull/218)</title>
<updated>2021-10-23T20:57:33+00:00</updated>
<author>
<name>rm155</name>
<email>86454369+rm155@users.noreply.github.com</email>
</author>
<published>2021-10-11T02:21:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/ruby.git/commit/?id=ee948fc1b4cb1ad382beee709008bb93b8f6ba75'/>
<id>ee948fc1b4cb1ad382beee709008bb93b8f6ba75</id>
<content type='text'>
https://github.com/ruby/csv/commit/a802690e11
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/csv/commit/a802690e11
</pre>
</div>
</content>
</entry>
</feed>
