<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/ruby/test_io_buffer.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>merge revision(s) 35e124832e29b65c84d4e0e4e434616859f9bdf5: [Backport #20755]</title>
<updated>2024-11-04T22:39:22+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2024-11-04T22:39:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5ce0ba0d415deb99527c409cc5f1df16ce02ef3e'/>
<id>5ce0ba0d415deb99527c409cc5f1df16ce02ef3e</id>
<content type='text'>
	[Bug #20755] Frozen string should not be writable via IO::Buffer
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[Bug #20755] Frozen string should not be writable via IO::Buffer
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) 637067440f74043c6d79fc649ab8acf1afea25a5: [Backport #20752]</title>
<updated>2024-11-04T22:38:18+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2024-11-04T22:38:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=12ea98e8c8af0ed6778aad26e7ec5f95e2c239e5'/>
<id>12ea98e8c8af0ed6778aad26e7ec5f95e2c239e5</id>
<content type='text'>
	[Bug #20752] Slice of readonly `IO::Buffer` also should be readonly
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[Bug #20752] Slice of readonly `IO::Buffer` also should be readonly
</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) c5cf4d4e129f64cb69aaf0a829aed068ef1943c4: [Backport#19542] (#9829)</title>
<updated>2024-02-04T13:54:36+00:00</updated>
<author>
<name>NARUSE, Yui</name>
<email>nurse@users.noreply.github.com</email>
</author>
<published>2024-02-04T13:54:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d7dc57a545d75c01313a9020b162ebb648a3ea18'/>
<id>d7dc57a545d75c01313a9020b162ebb648a3ea18</id>
<content type='text'>
merge revision(s) c5cf4d4e129f64cb69aaf0a829aed068ef1943c4: [Backport #19542]

	Improve behavioural consistency of unallocated (zero length)
	 `IO::Buffer`. (#9532)

	This makes the behaviour of IO::Buffer.new(0) and IO::Buffer.new.slice(0, 0) consistent.

	Fixes https://bugs.ruby-lang.org/issues/19542 and https://bugs.ruby-lang.org/issues/18805.
	---
	 io_buffer.c                 | 14 ++++++--------
	 test/ruby/test_io_buffer.rb | 35 +++++++++++++++++++++++++++++++++++
	 2 files changed, 41 insertions(+), 8 deletions(-)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
merge revision(s) c5cf4d4e129f64cb69aaf0a829aed068ef1943c4: [Backport #19542]

	Improve behavioural consistency of unallocated (zero length)
	 `IO::Buffer`. (#9532)

	This makes the behaviour of IO::Buffer.new(0) and IO::Buffer.new.slice(0, 0) consistent.

	Fixes https://bugs.ruby-lang.org/issues/19542 and https://bugs.ruby-lang.org/issues/18805.
	---
	 io_buffer.c                 | 14 ++++++--------
	 test/ruby/test_io_buffer.rb | 35 +++++++++++++++++++++++++++++++++++
	 2 files changed, 41 insertions(+), 8 deletions(-)</pre>
</div>
</content>
</entry>
<entry>
<title>merge revision(s) e5a4f757bdf5dc3d8c329ddd268432f9ecc7bff6: [Backport #20086]</title>
<updated>2024-01-30T01:24:31+00:00</updated>
<author>
<name>NARUSE, Yui</name>
<email>naruse@airemix.jp</email>
</author>
<published>2024-01-30T01:24:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=818b4ea9b16e3570b431b86da9a24a5743b29617'/>
<id>818b4ea9b16e3570b431b86da9a24a5743b29617</id>
<content type='text'>
	Fix Window private file mapping unlink EACCES issue. (#9358)

	* Don't return early.

	* Add missing `mapping` assignment.

	* Make debug logs conditional.
	---
	 io_buffer.c                 | 18 ++++++++++++------
	 test/ruby/test_io_buffer.rb | 32 ++++++++++++++------------------
	 2 files changed, 26 insertions(+), 24 deletions(-)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	Fix Window private file mapping unlink EACCES issue. (#9358)

	* Don't return early.

	* Add missing `mapping` assignment.

	* Make debug logs conditional.
	---
	 io_buffer.c                 | 18 ++++++++++++------
	 test/ruby/test_io_buffer.rb | 32 ++++++++++++++------------------
	 2 files changed, 26 insertions(+), 24 deletions(-)
</pre>
</div>
</content>
</entry>
<entry>
<title>Do not leave test file</title>
<updated>2023-12-25T04:01:55+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-12-25T02:13:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2cdbeb29e6e06d3492e2d4a388558ab883b07150'/>
<id>2cdbeb29e6e06d3492e2d4a388558ab883b07150</id>
<content type='text'>
Run this test separately because something seems remained unreleased
on Windows.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Run this test separately because something seems remained unreleased
on Windows.
</pre>
</div>
</content>
</entry>
<entry>
<title>Correctly release the underlying file mapping. (#9340)</title>
<updated>2023-12-25T01:20:53+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2023-12-25T01:20:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=260bf60e52ffdfa625be1153624b0d123fc305f8'/>
<id>260bf60e52ffdfa625be1153624b0d123fc305f8</id>
<content type='text'>
* Avoiding using `Tempfile` which was retaining the file preventing it from unlinking.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Avoiding using `Tempfile` which was retaining the file preventing it from unlinking.</pre>
</div>
</content>
</entry>
<entry>
<title>IO::Buffer improvements and documentation. (#9329)</title>
<updated>2023-12-24T13:03:36+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2023-12-24T13:03:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=37753f163e461e157e6e224d9d3e5626427a50cc'/>
<id>37753f163e461e157e6e224d9d3e5626427a50cc</id>
<content type='text'>
* Restore experimental warnings.

* Documentation and code structure improvements.

* Improved validation of flags, clarified documentation of argument handling.

* Remove inconsistent use of `Example:` and add example to `null?`.

* Expose `IO::Buffer#private?` and add test.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Restore experimental warnings.

* Documentation and code structure improvements.

* Improved validation of flags, clarified documentation of argument handling.

* Remove inconsistent use of `Example:` and add example to `null?`.

* Expose `IO::Buffer#private?` and add test.</pre>
</div>
</content>
</entry>
<entry>
<title>Raise TypeError for bad IO::Buffer.map argument (#8728)</title>
<updated>2023-10-21T04:30:40+00:00</updated>
<author>
<name>Charles Oliver Nutter</name>
<email>headius@headius.com</email>
</author>
<published>2023-10-21T04:30:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=55d954721e25ada90482f6d3f751a12fc982620b'/>
<id>55d954721e25ada90482f6d3f751a12fc982620b</id>
<content type='text'>
* Raise TypeError when IO::Buffer.map argument is neither IO nor implements #fileno

* Use UNREACHABLE_CODE

Co-authored-by: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;

* Use macro for undef check

Co-authored-by: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;

---------

Co-authored-by: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Raise TypeError when IO::Buffer.map argument is neither IO nor implements #fileno

* Use UNREACHABLE_CODE

Co-authored-by: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;

* Use macro for undef check

Co-authored-by: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;

---------

Co-authored-by: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Extract IO::Buffer.for string locking test (#8729)</title>
<updated>2023-10-21T02:00:18+00:00</updated>
<author>
<name>Charles Oliver Nutter</name>
<email>headius@headius.com</email>
</author>
<published>2023-10-21T02:00:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0e62802c3bdc2167b1c8e5f9db014f1e421f2c62'/>
<id>0e62802c3bdc2167b1c8e5f9db014f1e421f2c62</id>
<content type='text'>
String locking with locktmp is not really part of the public API,
and the test relies in a side effect of using it to protect the
buffer. On other implementations without locktmp this does not
fail. Separate into its own test so it can be excluded from public
API expectations.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
String locking with locktmp is not really part of the public API,
and the test relies in a side effect of using it to protect the
buffer. On other implementations without locktmp this does not
fail. Separate into its own test so it can be excluded from public
API expectations.</pre>
</div>
</content>
</entry>
<entry>
<title>Fix `io_buffer_get_string` default length computation. (#8427)</title>
<updated>2023-09-14T08:37:43+00:00</updated>
<author>
<name>Samuel Williams</name>
<email>samuel.williams@oriontransfer.co.nz</email>
</author>
<published>2023-09-14T08:37:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a095740fed2a05a04806a1d3827bcaba02e45720'/>
<id>a095740fed2a05a04806a1d3827bcaba02e45720</id>
<content type='text'>
* Fix `io_buffer_get_string` default length computation.

When an offset bigger than the size is given, the resulting length will be
computed incorrectly. Raise an argument error in this case.

* Validate all arguments.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix `io_buffer_get_string` default length computation.

When an offset bigger than the size is given, the resulting length will be
computed incorrectly. Raise an argument error in this case.

* Validate all arguments.</pre>
</div>
</content>
</entry>
</feed>
