<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/ext/date, branch v3_4_9</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) c1877d431e76f4a782d51602fa8487e98d302956: [Backport #21437]</title>
<updated>2025-07-14T21:31:20+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2025-07-14T21:31:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=02744e58f3d410931a58873e1dab8752740e60ff'/>
<id>02744e58f3d410931a58873e1dab8752740e60ff</id>
<content type='text'>
	[ruby/date] [Bug #21437] Date#hash for large years

	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>
	[ruby/date] [Bug #21437] Date#hash for large years

	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] Fix broken rdoc-ref to the calendar page</title>
<updated>2024-12-15T06:20:10+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan.lo@shopify.com</email>
</author>
<published>2024-12-14T18:27:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6d00dee30aeb09c35bc85fb06543d5185d137272'/>
<id>6d00dee30aeb09c35bc85fb06543d5185d137272</id>
<content type='text'>
https://github.com/ruby/date/commit/cb52e64be1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/date/commit/cb52e64be1
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/date] Bump up 3.4.1</title>
<updated>2024-12-02T07:51:06+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-12-02T07:50:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=229592f175eab0a42071bdd237107b1ce1d5ba40'/>
<id>229592f175eab0a42071bdd237107b1ce1d5ba40</id>
<content type='text'>
https://github.com/ruby/date/commit/a3295ad262
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/date/commit/a3295ad262
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/date] Fix mixed declarations and code</title>
<updated>2024-11-29T02:48:10+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-11-29T02:12:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=43dd9c721f9bec8aeeaf6c6ca98313cb0e97b510'/>
<id>43dd9c721f9bec8aeeaf6c6ca98313cb0e97b510</id>
<content type='text'>
This still support ruby 2.6 which does not require C99.

https://github.com/ruby/date/commit/61d849758f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This still support ruby 2.6 which does not require C99.

https://github.com/ruby/date/commit/61d849758f
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/date] Suppress compound-token-split-by-macro warnings</title>
<updated>2024-11-29T02:48:09+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-11-29T02:08:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b910de641bed7cbcac2760261d747c17db0ebbab'/>
<id>b910de641bed7cbcac2760261d747c17db0ebbab</id>
<content type='text'>
It was used intentionally.

https://github.com/ruby/date/commit/291b40f939
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It was used intentionally.

https://github.com/ruby/date/commit/291b40f939
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/date] Extract Julian calendar epoch literals</title>
<updated>2024-11-05T04:19:40+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-11-05T04:16:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=511954dd5c22d8b63cd66c726d453c8db1408d3b'/>
<id>511954dd5c22d8b63cd66c726d453c8db1408d3b</id>
<content type='text'>
https://github.com/ruby/date/commit/e677e99a86
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/date/commit/e677e99a86
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/date] Update `argc` by `rb_scan_args` not to contain keywords</title>
<updated>2024-11-05T04:19:39+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-11-05T03:44:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c51feedbfd90362df1b4dc4499f6b939781c6fdd'/>
<id>c51feedbfd90362df1b4dc4499f6b939781c6fdd</id>
<content type='text'>
https://github.com/ruby/date/commit/f277463439
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/date/commit/f277463439
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/date] Fix incorrect argc2 decrement in datetime_s_iso8601 function</title>
<updated>2024-11-05T03:38:13+00:00</updated>
<author>
<name>Dmitrii Zudin</name>
<email>pelbyl@icloud.com</email>
</author>
<published>2024-09-21T20:37:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ee4599dbe7e49a242a1e8170b0439cfb0130ad98'/>
<id>ee4599dbe7e49a242a1e8170b0439cfb0130ad98</id>
<content type='text'>
Replace the decrement (argc2--) with an increment (argc2++) for
the correct number of arguments when opt is provided.

https://github.com/ruby/date/commit/b6974b00d8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace the decrement (argc2--) with an increment (argc2++) for
the correct number of arguments when opt is provided.

https://github.com/ruby/date/commit/b6974b00d8
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/date] Bump up v3.4.0</title>
<updated>2024-11-01T04:42:16+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-11-01T04:38:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bb5f28c8f7e692571a30359e08b539bc8c3538c4'/>
<id>bb5f28c8f7e692571a30359e08b539bc8c3538c4</id>
<content type='text'>
https://github.com/ruby/date/commit/94f8e51e65
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/date/commit/94f8e51e65
</pre>
</div>
</content>
</entry>
<entry>
<title>Resize arrays in `rb_ary_freeze` and use it for freezing arrays</title>
<updated>2024-07-02T17:34:23+00:00</updated>
<author>
<name>eileencodes</name>
<email>eileencodes@gmail.com</email>
</author>
<published>2024-06-18T18:52:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d25b74b32cbce4fcaed503f124fa8e7d721f18bf'/>
<id>d25b74b32cbce4fcaed503f124fa8e7d721f18bf</id>
<content type='text'>
While working on a separate issue we found that in some cases
`ary_heap_realloc` was being called on frozen arrays. To fix this, this
change does the following:

1) Updates `rb_ary_freeze` to assert the type is an array, return if
already frozen, and shrink the capacity if it is not embedded, shared
or a shared root.
2) Replaces `rb_obj_freeze` with `rb_ary_freeze` when the object is
always an array.
3) In `ary_heap_realloc`, ensure the new capa is set with
`ARY_SET_CAPA`. Previously the change in capa was not set.
4) Adds an assertion to `ary_heap_realloc` that the array is not frozen.

Some of this work was originally done in
https://github.com/ruby/ruby/pull/2640, referencing this issue
https://bugs.ruby-lang.org/issues/16291. There didn't appear to be any
objections to this PR, it appears to have simply lost traction.

The original PR made changes to arrays and strings at the same time,
this PR only does arrays. Also it was old enough that rather than revive
that branch I've made a new one. I added Lourens as co-author in addtion
to Aaron who helped me with this patch.

The original PR made this change for performance reasons, and while
that's still true for this PR, the goal of this PR is to avoid
calling `ary_heap_realloc` on frozen arrays. The capacity should be
shrunk _before_ the array is frozen, not after.

Co-authored-by: Aaron Patterson &lt;tenderlove@ruby-lang.org&gt;
Co-Authored-By: methodmissing &lt;lourens@methodmissing.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While working on a separate issue we found that in some cases
`ary_heap_realloc` was being called on frozen arrays. To fix this, this
change does the following:

1) Updates `rb_ary_freeze` to assert the type is an array, return if
already frozen, and shrink the capacity if it is not embedded, shared
or a shared root.
2) Replaces `rb_obj_freeze` with `rb_ary_freeze` when the object is
always an array.
3) In `ary_heap_realloc`, ensure the new capa is set with
`ARY_SET_CAPA`. Previously the change in capa was not set.
4) Adds an assertion to `ary_heap_realloc` that the array is not frozen.

Some of this work was originally done in
https://github.com/ruby/ruby/pull/2640, referencing this issue
https://bugs.ruby-lang.org/issues/16291. There didn't appear to be any
objections to this PR, it appears to have simply lost traction.

The original PR made changes to arrays and strings at the same time,
this PR only does arrays. Also it was old enough that rather than revive
that branch I've made a new one. I added Lourens as co-author in addtion
to Aaron who helped me with this patch.

The original PR made this change for performance reasons, and while
that's still true for this PR, the goal of this PR is to avoid
calling `ary_heap_realloc` on frozen arrays. The capacity should be
shrunk _before_ the array is frozen, not after.

Co-authored-by: Aaron Patterson &lt;tenderlove@ruby-lang.org&gt;
Co-Authored-By: methodmissing &lt;lourens@methodmissing.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
