<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/stringio/test_stringio.rb, branch v3_3_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/stringio] Add missing row separator encoding conversion</title>
<updated>2023-11-08T00:46:17+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2023-11-08T00:46:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7ed37388fb9c0e85325b4e3db2ffbfca3f4179ad'/>
<id>7ed37388fb9c0e85325b4e3db2ffbfca3f4179ad</id>
<content type='text'>
(https://github.com/ruby/stringio/pull/69)

The conversion logic is borrowed from ruby/ruby's io.c:
https://github.com/ruby/ruby/blob/40391faeab608665da87a05c686c074f91a5a206/io.c#L4059-L4079

Fix ruby/stringio#68

Reported by IWAMOTO Kouichi. Thanks!!!

https://github.com/ruby/stringio/commit/4b170c1a68
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/stringio/pull/69)

The conversion logic is borrowed from ruby/ruby's io.c:
https://github.com/ruby/ruby/blob/40391faeab608665da87a05c686c074f91a5a206/io.c#L4059-L4079

Fix ruby/stringio#68

Reported by IWAMOTO Kouichi. Thanks!!!

https://github.com/ruby/stringio/commit/4b170c1a68
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/stringio] StringIO#pread: handle 0 length like IO#pread</title>
<updated>2023-10-05T07:44:08+00:00</updated>
<author>
<name>Jean byroot Boussier</name>
<email>jean.boussier+github@shopify.com</email>
</author>
<published>2023-10-05T07:43:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f087f2c74c99ec5fed04896d3dc91ff76c2b16b8'/>
<id>f087f2c74c99ec5fed04896d3dc91ff76c2b16b8</id>
<content type='text'>
(https://github.com/ruby/stringio/pull/67)

Fix: https://github.com/ruby/stringio/issues/66

If length is 0, IO#pread don't even try to read the IO, it simply return
the buffer untouched if there is one or a new empty buffer otherwise.

It also doesn't validate the offset when length is 0.

cc @jdelStrother @kou

https://github.com/ruby/stringio/commit/37e9279337

Co-authored-by: Jean Boussier &lt;jean.boussier@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/stringio/pull/67)

Fix: https://github.com/ruby/stringio/issues/66

If length is 0, IO#pread don't even try to read the IO, it simply return
the buffer untouched if there is one or a new empty buffer otherwise.

It also doesn't validate the offset when length is 0.

cc @jdelStrother @kou

https://github.com/ruby/stringio/commit/37e9279337

Co-authored-by: Jean Boussier &lt;jean.boussier@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>jruby: Add StringIO::VERSION (#59)</title>
<updated>2023-08-29T09:15:05+00:00</updated>
<author>
<name>Sutou Kouhei</name>
<email>kou@clear-code.com</email>
</author>
<published>2023-08-10T06:43:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0a219ef44af0cfb126799a7109c2e658172d7819'/>
<id>0a219ef44af0cfb126799a7109c2e658172d7819</id>
<content type='text'>
Fixes GH-57
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes GH-57
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement StringIO#pread (#56)</title>
<updated>2023-08-02T09:18:17+00:00</updated>
<author>
<name>Jean byroot Boussier</name>
<email>jean.boussier+github@shopify.com</email>
</author>
<published>2023-06-08T03:27:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fd8dd7199665ed26818a140de945cca71d6fc84b'/>
<id>fd8dd7199665ed26818a140de945cca71d6fc84b</id>
<content type='text'>
Both for being closer to real IOs and also because it's a convenient API
in multithreaded scenarios.

Co-authored-by: Jean Boussier &lt;jean.boussier@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Both for being closer to real IOs and also because it's a convenient API
in multithreaded scenarios.

Co-authored-by: Jean Boussier &lt;jean.boussier@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/stringio] [Bug #19389] Fix chomping with longer separator</title>
<updated>2023-01-28T13:00:08+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-01-28T12:59:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=21dced8b01823a991829b66ffdc8ffc635965c76'/>
<id>21dced8b01823a991829b66ffdc8ffc635965c76</id>
<content type='text'>
https://github.com/ruby/stringio/commit/eb322a9716
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/stringio/commit/eb322a9716
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/stringio] Fix the result of `StringIO#truncate` so compatible with `File`</title>
<updated>2022-06-30T15:52:29+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-06-30T15:49:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=302f353fd9223d020e48495eaa7a03ce5d539409'/>
<id>302f353fd9223d020e48495eaa7a03ce5d539409</id>
<content type='text'>
https://github.com/ruby/stringio/commit/16847fea32
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/stringio/commit/16847fea32
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/stringio] Accept external and internal encodings pair</title>
<updated>2022-05-30T05:48:44+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-05-30T04:46:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d3e986d9ab9a880b58a0b4fc68dadc2b10f4cf12'/>
<id>d3e986d9ab9a880b58a0b4fc68dadc2b10f4cf12</id>
<content type='text'>
Fix https://github.com/ruby/stringio/pull/16

https://github.com/ruby/stringio/commit/c8a69e80d2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix https://github.com/ruby/stringio/pull/16

https://github.com/ruby/stringio/commit/c8a69e80d2
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/stringio] Fix handling of chomp with paragraph separator</title>
<updated>2022-05-30T04:10:46+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2022-05-26T22:01:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=609d73e8925f807786686caf635178bb1de74256'/>
<id>609d73e8925f807786686caf635178bb1de74256</id>
<content type='text'>
Try to mirror IO behavior, where chomp takes out the entire paragraph
separators between entries, but does not chomp a single line separator
at the end of the string.

Partially Fixes [Bug #18768]

https://github.com/ruby/stringio/commit/a83ddbb7f0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Try to mirror IO behavior, where chomp takes out the entire paragraph
separators between entries, but does not chomp a single line separator
at the end of the string.

Partially Fixes [Bug #18768]

https://github.com/ruby/stringio/commit/a83ddbb7f0
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/stringio] Ignore chomp keyword for nil separator</title>
<updated>2022-05-30T04:01:17+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2022-05-26T19:17:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=adaaf12857ce41d35b282e3fb5aa330934ce45c6'/>
<id>adaaf12857ce41d35b282e3fb5aa330934ce45c6</id>
<content type='text'>
nil separator means no separator at all, so nothing should be
chomped.

Partial fix for Ruby [Bug #18770]

https://github.com/ruby/stringio/commit/feaa2ec631
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
nil separator means no separator at all, so nothing should be
chomped.

Partial fix for Ruby [Bug #18770]

https://github.com/ruby/stringio/commit/feaa2ec631
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/stringio] Fix each with multiple character string and chomp</title>
<updated>2022-05-30T03:55:47+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2022-05-26T22:22:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1f82269f4e1bf037e3e5504c6071b905f26fec6f'/>
<id>1f82269f4e1bf037e3e5504c6071b905f26fec6f</id>
<content type='text'>
Previously, this could result in an infinite loop.  Always update
the e pointer in this case, setting w when chomping so the chomped
data is not included in the output.

Fixes [Bug #18769]

https://github.com/ruby/stringio/commit/4bf64d5130
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, this could result in an infinite loop.  Always update
the e pointer in this case, setting w when chomping so the chomped
data is not included in the output.

Fixes [Bug #18769]

https://github.com/ruby/stringio/commit/4bf64d5130
</pre>
</div>
</content>
</entry>
</feed>
