<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/psych, branch v4.0.4</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) c27ae8d91aadca0660070ee1eeae9598b1fe47ee, b6e6ccc6c22ebb464ce101e42a14e7daea2a80b6, cbca59377ebfa1bc1183322fa9d9d0067d445c24: [Backport #21844]</title>
<updated>2026-04-04T03:20:44+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2026-04-04T03:20:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7ba583d753411a39dec78ea6e7c8d2701b04c118'/>
<id>7ba583d753411a39dec78ea6e7c8d2701b04c118</id>
<content type='text'>
	[ruby/psych] Remove excessive check of message

	Make `Data#initialize` reject `Integer` keys

	[Bug #21844] Fix error message
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	[ruby/psych] Remove excessive check of message

	Make `Data#initialize` reject `Integer` keys

	[Bug #21844] Fix error message
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Check that Data members match exactly</title>
<updated>2025-12-15T22:48:40+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2025-12-10T20:11:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=abefd3e8ff1853800d4df5b28388191b51d9ec37'/>
<id>abefd3e8ff1853800d4df5b28388191b51d9ec37</id>
<content type='text'>
* Fixes https://github.com/ruby/psych/issues/760

https://github.com/ruby/psych/commit/952008c898
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fixes https://github.com/ruby/psych/issues/760

https://github.com/ruby/psych/commit/952008c898
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Use Node#to_ruby parse_symbols option</title>
<updated>2025-12-05T17:14:30+00:00</updated>
<author>
<name>Étienne Barrié</name>
<email>etienne.barrie@gmail.com</email>
</author>
<published>2025-12-05T14:33:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=65dbd571c1e0aae3b0919ae6e64704726f18b265'/>
<id>65dbd571c1e0aae3b0919ae6e64704726f18b265</id>
<content type='text'>
https://github.com/ruby/psych/commit/907fd4fa97
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/psych/commit/907fd4fa97
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Add option to disable symbol parsing</title>
<updated>2025-12-04T00:42:17+00:00</updated>
<author>
<name>Caleb Stewart</name>
<email>caleb.stewart94@gmail.com</email>
</author>
<published>2025-08-05T01:52:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0e7e6858e3a3689708371028cb1553317b905bb0'/>
<id>0e7e6858e3a3689708371028cb1553317b905bb0</id>
<content type='text'>
https://github.com/ruby/psych/commit/4e9d08c285
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/psych/commit/4e9d08c285
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Revert "Alias value or join to take in old Ruby"</title>
<updated>2025-06-04T05:51:19+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-06-04T05:36:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6b7e3395a4ab69f5eaefb983243a8e4cad7f8abf'/>
<id>6b7e3395a4ab69f5eaefb983243a8e4cad7f8abf</id>
<content type='text'>
This reverts commit https://github.com/ruby/psych/commit/1a4d383efe0b.

https://github.com/ruby/psych/commit/2f51c02280
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit https://github.com/ruby/psych/commit/1a4d383efe0b.

https://github.com/ruby/psych/commit/2f51c02280
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Alias value or join to take in old Ruby</title>
<updated>2025-06-03T07:56:39+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-06-03T07:06:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a77ec9a22c22a93ee979809dc7e4bed57b52972f'/>
<id>a77ec9a22c22a93ee979809dc7e4bed57b52972f</id>
<content type='text'>
https://github.com/ruby/psych/commit/1a4d383efe
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/psych/commit/1a4d383efe
</pre>
</div>
</content>
</entry>
<entry>
<title>`Ractor::Port`</title>
<updated>2025-05-30T19:01:33+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2025-05-26T18:58:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ef2bb61018cd9ccb5b61a3d91911e04a773da4a7'/>
<id>ef2bb61018cd9ccb5b61a3d91911e04a773da4a7</id>
<content type='text'>
* Added `Ractor::Port`
  * `Ractor::Port#receive` (support multi-threads)
  * `Rcator::Port#close`
  * `Ractor::Port#closed?`
* Added some methods
  * `Ractor#join`
  * `Ractor#value`
  * `Ractor#monitor`
  * `Ractor#unmonitor`
* Removed some methods
  * `Ractor#take`
  * `Ractor.yield`
* Change the spec
  * `Racotr.select`

You can wait for multiple sequences of messages with `Ractor::Port`.

```ruby
ports = 3.times.map{ Ractor::Port.new }
ports.map.with_index do |port, ri|
  Ractor.new port,ri do |port, ri|
    3.times{|i| port &lt;&lt; "r#{ri}-#{i}"}
  end
end

p ports.each{|port| pp 3.times.map{port.receive}}

```

In this example, we use 3 ports, and 3 Ractors send messages to them respectively.
We can receive a series of messages from each port.

You can use `Ractor#value` to get the last value of a Ractor's block:

```ruby
result = Ractor.new do
  heavy_task()
end.value
```

You can wait for the termination of a Ractor with `Ractor#join` like this:

```ruby
Ractor.new do
  some_task()
end.join
```

`#value` and `#join` are similar to `Thread#value` and `Thread#join`.

To implement `#join`, `Ractor#monitor` (and `Ractor#unmonitor`) is introduced.

This commit changes `Ractor.select()` method.
It now only accepts ports or Ractors, and returns when a port receives a message or a Ractor terminates.

We removes `Ractor.yield` and `Ractor#take` because:
* `Ractor::Port` supports most of similar use cases in a simpler manner.
* Removing them significantly simplifies the code.

We also change the internal thread scheduler code (thread_pthread.c):
* During barrier synchronization, we keep the `ractor_sched` lock to avoid deadlocks.
  This lock is released by `rb_ractor_sched_barrier_end()`
  which is called at the end of operations that require the barrier.
* fix potential deadlock issues by checking interrupts just before setting UBF.

https://bugs.ruby-lang.org/issues/21262
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Added `Ractor::Port`
  * `Ractor::Port#receive` (support multi-threads)
  * `Rcator::Port#close`
  * `Ractor::Port#closed?`
* Added some methods
  * `Ractor#join`
  * `Ractor#value`
  * `Ractor#monitor`
  * `Ractor#unmonitor`
* Removed some methods
  * `Ractor#take`
  * `Ractor.yield`
* Change the spec
  * `Racotr.select`

You can wait for multiple sequences of messages with `Ractor::Port`.

```ruby
ports = 3.times.map{ Ractor::Port.new }
ports.map.with_index do |port, ri|
  Ractor.new port,ri do |port, ri|
    3.times{|i| port &lt;&lt; "r#{ri}-#{i}"}
  end
end

p ports.each{|port| pp 3.times.map{port.receive}}

```

In this example, we use 3 ports, and 3 Ractors send messages to them respectively.
We can receive a series of messages from each port.

You can use `Ractor#value` to get the last value of a Ractor's block:

```ruby
result = Ractor.new do
  heavy_task()
end.value
```

You can wait for the termination of a Ractor with `Ractor#join` like this:

```ruby
Ractor.new do
  some_task()
end.join
```

`#value` and `#join` are similar to `Thread#value` and `Thread#join`.

To implement `#join`, `Ractor#monitor` (and `Ractor#unmonitor`) is introduced.

This commit changes `Ractor.select()` method.
It now only accepts ports or Ractors, and returns when a port receives a message or a Ractor terminates.

We removes `Ractor.yield` and `Ractor#take` because:
* `Ractor::Port` supports most of similar use cases in a simpler manner.
* Removing them significantly simplifies the code.

We also change the internal thread scheduler code (thread_pthread.c):
* During barrier synchronization, we keep the `ractor_sched` lock to avoid deadlocks.
  This lock is released by `rb_ractor_sched_barrier_end()`
  which is called at the end of operations that require the barrier.
* fix potential deadlock issues by checking interrupts just before setting UBF.

https://bugs.ruby-lang.org/issues/21262
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] Fix dumping `StringIO` (and potentially others) on Ruby &lt;= 2.7</title>
<updated>2025-05-12T16:19:38+00:00</updated>
<author>
<name>Earlopain</name>
<email>14981592+Earlopain@users.noreply.github.com</email>
</author>
<published>2025-05-12T15:51:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0c94ae048a277485aa691820277108c2335ec3d3'/>
<id>0c94ae048a277485aa691820277108c2335ec3d3</id>
<content type='text'>
In Ruby &lt; 3.0, the superclass of StringIO was actually already `Data`,
but it doesn't have the expected shape. So, on these earlier versions it errors:
&gt; NoMethodError: undefined method `members' for #&lt;StringIO:0x00005641dd5f2880&gt;
&gt;    vendor/bundle/ruby/2.6.0/gems/psych-5.2.5/lib/psych/visitors/yaml_tree.rb:170:in `visit_Data'

This test doesn't fail on 2.7, presumably because it can pull in a newer `stringio` version.

https://github.com/ruby/psych/commit/0f40f56268
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Ruby &lt; 3.0, the superclass of StringIO was actually already `Data`,
but it doesn't have the expected shape. So, on these earlier versions it errors:
&gt; NoMethodError: undefined method `members' for #&lt;StringIO:0x00005641dd5f2880&gt;
&gt;    vendor/bundle/ruby/2.6.0/gems/psych-5.2.5/lib/psych/visitors/yaml_tree.rb:170:in `visit_Data'

This test doesn't fail on 2.7, presumably because it can pull in a newer `stringio` version.

https://github.com/ruby/psych/commit/0f40f56268
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] exception tests</title>
<updated>2025-05-09T17:53:18+00:00</updated>
<author>
<name>OrenGitHub</name>
<email>tuna.is.good.for.you@gmail.com</email>
</author>
<published>2025-04-29T05:22:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e2f5e233b53208f032e9196cb3e411add1658853'/>
<id>e2f5e233b53208f032e9196cb3e411add1658853</id>
<content type='text'>
https://github.com/ruby/psych/commit/1e9b79f699
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/psych/commit/1e9b79f699
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/psych] more special cases</title>
<updated>2025-05-09T17:53:18+00:00</updated>
<author>
<name>OrenGitHub</name>
<email>tuna.is.good.for.you@gmail.com</email>
</author>
<published>2025-04-29T05:15:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=42328d4ef447b71f952a8b3a6e9850b4f827b7ea'/>
<id>42328d4ef447b71f952a8b3a6e9850b4f827b7ea</id>
<content type='text'>
https://github.com/ruby/psych/commit/b33bf8b060
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/psych/commit/b33bf8b060
</pre>
</div>
</content>
</entry>
</feed>
