<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/date, branch ruby_4_0</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/date] Remove archaic conditions</title>
<updated>2025-10-29T10:03:50+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-10-29T09:40:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e49e0bb6c9b4ade9d8fb615a1f7cc65f9ea13a7f'/>
<id>e49e0bb6c9b4ade9d8fb615a1f7cc65f9ea13a7f</id>
<content type='text'>
`Time#nsec` and `Time#subsec` were both introduced in Ruby 1.9.

https://github.com/ruby/date/commit/2c310d9f5c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`Time#nsec` and `Time#subsec` were both introduced in Ruby 1.9.

https://github.com/ruby/date/commit/2c310d9f5c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/date] Prefer `method_defined?` over `allocate.respond_to?`</title>
<updated>2025-10-29T10:03:50+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-10-29T09:12:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0f629083722a09f0b5a75040ca0511e71eb6032a'/>
<id>0f629083722a09f0b5a75040ca0511e71eb6032a</id>
<content type='text'>
https://github.com/ruby/date/commit/fd8e3725f8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/date/commit/fd8e3725f8
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/date] `Date._parse` does not accept `nil`</title>
<updated>2025-10-06T05:22:03+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-10-06T05:17:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e6188c45e1114be3be4955971464f1b39d567d71'/>
<id>e6188c45e1114be3be4955971464f1b39d567d71</id>
<content type='text'>
https://github.com/ruby/date/commit/545066ca28
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/date/commit/545066ca28
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/date] Do not repeat conversions to string</title>
<updated>2025-10-06T04:16:56+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-10-05T12:18:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f13e68e252ee96ee01e3b6eb11ad4109d5e033b1'/>
<id>f13e68e252ee96ee01e3b6eb11ad4109d5e033b1</id>
<content type='text'>
https://github.com/ruby/date/commit/159e1ebb7f
https://github.com/ruby/date/commit/4f7b6c9b42
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/date/commit/159e1ebb7f
https://github.com/ruby/date/commit/4f7b6c9b42
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/date] [Bug #21436] check for fixnum lower bound in `m_ajd`</title>
<updated>2025-06-15T16:12:45+00:00</updated>
<author>
<name>Dmitry Dygalo</name>
<email>dadygalo@gmail.com</email>
</author>
<published>2025-06-15T16:12:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=022c18b60d2245980abcdd7b5195eebca73b8809'/>
<id>022c18b60d2245980abcdd7b5195eebca73b8809</id>
<content type='text'>
Issue - https://bugs.ruby-lang.org/issues/21436

Apparently, the lower bound check is missing, which results in overflow &amp; wrapping later on in RB_INT2FIX

Signed-off-by: Dmitry Dygalo &lt;dmitry.dygalo@workato.com&gt;

https://github.com/ruby/date/commit/67d75e8423
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Issue - https://bugs.ruby-lang.org/issues/21436

Apparently, the lower bound check is missing, which results in overflow &amp; wrapping later on in RB_INT2FIX

Signed-off-by: Dmitry Dygalo &lt;dmitry.dygalo@workato.com&gt;

https://github.com/ruby/date/commit/67d75e8423
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/date] [Bug #21437] Date#hash for large years</title>
<updated>2025-06-15T16:11:06+00:00</updated>
<author>
<name>Dmitry Dygalo</name>
<email>dadygalo@gmail.com</email>
</author>
<published>2025-06-15T16:11:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c1877d431e76f4a782d51602fa8487e98d302956'/>
<id>c1877d431e76f4a782d51602fa8487e98d302956</id>
<content type='text'>
Addresses https://bugs.ruby-lang.org/issues/21437

Signed-off-by: Dmitry Dygalo &lt;dmitry.dygalo@workato.com&gt;

https://github.com/ruby/date/commit/31f07bc576
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Addresses https://bugs.ruby-lang.org/issues/21437

Signed-off-by: Dmitry Dygalo &lt;dmitry.dygalo@workato.com&gt;

https://github.com/ruby/date/commit/31f07bc576
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/date] Removed workaround for assert_ractor</title>
<updated>2025-06-04T05:28:25+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-06-04T05:24:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ac1dfee44aaf8d33cfb47dcb39f0edef6c2a22e2'/>
<id>ac1dfee44aaf8d33cfb47dcb39f0edef6c2a22e2</id>
<content type='text'>
https://github.com/ruby/date/commit/700e44ef54
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/date/commit/700e44ef54
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/date] Alias value to take in old Ruby</title>
<updated>2025-06-03T06:46:56+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-06-03T06:43:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=52d85c0efb8871ed2e29738c8edf60cc0fa034c3'/>
<id>52d85c0efb8871ed2e29738c8edf60cc0fa034c3</id>
<content type='text'>
https://github.com/ruby/date/commit/1ce29a26dd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/date/commit/1ce29a26dd
</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/date] Skip tests failing on TruffleRuby</title>
<updated>2025-01-10T15:59:25+00:00</updated>
<author>
<name>Andrew Konchin</name>
<email>andry.konchin@gmail.com</email>
</author>
<published>2024-11-15T10:49:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8adc96b5ca17c504d7a4afe7c6034c1d4d1984ba'/>
<id>8adc96b5ca17c504d7a4afe7c6034c1d4d1984ba</id>
<content type='text'>
https://github.com/ruby/date/commit/d019ac8186
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/date/commit/d019ac8186
</pre>
</div>
</content>
</entry>
</feed>
