<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/spec/ruby/core, branch v4.0.3</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Fix UnboundMethod#== for methods from included/extended modules [Backport #21873]</title>
<updated>2026-02-10T18:32:51+00:00</updated>
<author>
<name>Mike Dalessio</name>
<email>mike@37signals.com</email>
</author>
<published>2026-02-10T17:10:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0768f08caff514b0ba616dc26d76aad90577eefe'/>
<id>0768f08caff514b0ba616dc26d76aad90577eefe</id>
<content type='text'>
Method#unbind clones the method entry, preserving its defined_class.
For methods mixed in via include/extend, defined_class is an ICLASS,
causing UnboundMethod#== to return false when comparing against the
same method obtained via Module#instance_method.

Resolve ICLASS defined_class in method_eq.

[Bug #21873]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Method#unbind clones the method entry, preserving its defined_class.
For methods mixed in via include/extend, defined_class is an ICLASS,
causing UnboundMethod#== to return false when comparing against the
same method obtained via Module#instance_method.

Resolve ICLASS defined_class in method_eq.

[Bug #21873]
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert pack/unpack support for LEB128</title>
<updated>2025-12-20T07:59:51+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-12-20T07:12:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=77c3a9e447ec477be39e00072e1ce3348d0f4533'/>
<id>77c3a9e447ec477be39e00072e1ce3348d0f4533</id>
<content type='text'>
https://bugs.ruby-lang.org/issues/21785#note-10
&gt; It is too late to introduce it in Ruby 4.0, let's aim for 4.1.

This reverts commits:

* d0b72429a93e54f1f956b4aedfc25c57dc7001aa
  Add support for signed and unsigned LEB128 to pack/unpack.

* 68a900e30b4ca1537d7975c3a619fd94fca7b084
  add news for pack / unpack directives
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://bugs.ruby-lang.org/issues/21785#note-10
&gt; It is too late to introduce it in Ruby 4.0, let's aim for 4.1.

This reverts commits:

* d0b72429a93e54f1f956b4aedfc25c57dc7001aa
  Add support for signed and unsigned LEB128 to pack/unpack.

* 68a900e30b4ca1537d7975c3a619fd94fca7b084
  add news for pack / unpack directives
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for signed and unsigned LEB128 to pack/unpack.</title>
<updated>2025-12-18T22:42:47+00:00</updated>
<author>
<name>Aaron Patterson</name>
<email>tenderlove@ruby-lang.org</email>
</author>
<published>2025-12-16T17:10:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d0b72429a93e54f1f956b4aedfc25c57dc7001aa'/>
<id>d0b72429a93e54f1f956b4aedfc25c57dc7001aa</id>
<content type='text'>
This commit adds a new pack format command `R` and `r` for unsigned and
signed LEB128 encoding.  The "r" mnemonic is because this is a
"vaRiable" length encoding scheme.

LEB128 is used in various formats including DWARF, WebAssembly, MQTT,
and Protobuf.

[Feature #21785]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit adds a new pack format command `R` and `r` for unsigned and
signed LEB128 encoding.  The "r" mnemonic is because this is a
"vaRiable" length encoding scheme.

LEB128 is used in various formats including DWARF, WebAssembly, MQTT,
and Protobuf.

[Feature #21785]
</pre>
</div>
</content>
</entry>
<entry>
<title>Box: fix the class name in tests</title>
<updated>2025-12-16T07:53:13+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-12-16T00:01:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=85b40c5ea8f606cf34cab8a5b1277033bede2457'/>
<id>85b40c5ea8f606cf34cab8a5b1277033bede2457</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[Feature #6012] Extend `source_location` for end position</title>
<updated>2025-12-16T07:13:07+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-12-16T03:51:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=065c48cdf11a1c4cece84db44ed8624d294f8fd5'/>
<id>065c48cdf11a1c4cece84db44ed8624d294f8fd5</id>
<content type='text'>
and columns"

This reverts commit 073c4e1cc712064e626914fa4a5a8061f903a637.

https://bugs.ruby-lang.org/issues/6012#note-31
&gt; we will cancel this feature in 4.0 because of design ambiguities
&gt; such as whether to return column positions in bytes or characters as
&gt; in [#21783].

[#21783]: https://bugs.ruby-lang.org/issues/21783
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and columns"

This reverts commit 073c4e1cc712064e626914fa4a5a8061f903a637.

https://bugs.ruby-lang.org/issues/6012#note-31
&gt; we will cancel this feature in 4.0 because of design ambiguities
&gt; such as whether to return column positions in bytes or characters as
&gt; in [#21783].

[#21783]: https://bugs.ruby-lang.org/issues/21783
</pre>
</div>
</content>
</entry>
<entry>
<title>Use `ruby_version_is`</title>
<updated>2025-12-10T00:22:09+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-12-10T00:22:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f9eb0d8da2cb570c6cf7754e4078ed0de266a52c'/>
<id>f9eb0d8da2cb570c6cf7754e4078ed0de266a52c</id>
<content type='text'>
As the markers for spec/mspec/tool/remove_old_guards.rb.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As the markers for spec/mspec/tool/remove_old_guards.rb.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use rb_error_frozen_object in rb_class_modify_check</title>
<updated>2025-12-09T22:35:50+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2025-11-23T03:58:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e436dba9fee4c75104212ad0fd16ab7f753985c4'/>
<id>e436dba9fee4c75104212ad0fd16ab7f753985c4</id>
<content type='text'>
This provides information on the class of the frozen object. It also
results in a much simpler implementation.

Fixes [Bug #21374]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This provides information on the class of the frozen object. It also
results in a much simpler implementation.

Fixes [Bug #21374]
</pre>
</div>
</content>
</entry>
<entry>
<title>Add error case tests for `File.path`</title>
<updated>2025-12-06T10:32:14+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-12-06T10:32:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f4f5f0a009f6335ad13b8651bf43a216442c49a7'/>
<id>f4f5f0a009f6335ad13b8651bf43a216442c49a7</id>
<content type='text'>
- for non-String argument
- for NUL-contained argument
- for ASCII-incompatible argument
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- for non-String argument
- for NUL-contained argument
- for ASCII-incompatible argument
</pre>
</div>
</content>
</entry>
<entry>
<title>Define Kernel#instance_variables_to_inspect</title>
<updated>2025-11-28T17:34:59+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2025-11-28T15:17:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=191bfcb9c505ba3f5771f7ac67d6131aeb6b6837'/>
<id>191bfcb9c505ba3f5771f7ac67d6131aeb6b6837</id>
<content type='text'>
[Bug #21718]

Otherwise objects that don't define it, but define a fairly liberal
`method_missing` method will run into errors that are hard to understand:

```ruby
class Foo
  def method_missing(name, ...)
    name
  end
end

p Foo.new.inspect
```

```
'Kernel#inspect': wrong argument type Symbol (expected Array) (TypeError)
	from ../test.rb:7:in '&lt;main&gt;'
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Bug #21718]

Otherwise objects that don't define it, but define a fairly liberal
`method_missing` method will run into errors that are hard to understand:

```ruby
class Foo
  def method_missing(name, ...)
    name
  end
end

p Foo.new.inspect
```

```
'Kernel#inspect': wrong argument type Symbol (expected Array) (TypeError)
	from ../test.rb:7:in '&lt;main&gt;'
```
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove wrong test</title>
<updated>2025-11-20T08:42:17+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-11-20T08:42:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d755052a921a3706cb591b3d7288a0b503b430be'/>
<id>d755052a921a3706cb591b3d7288a0b503b430be</id>
<content type='text'>
`realloc` is not guaranteed to return the same address when shrinking.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`realloc` is not guaranteed to return the same address when shrinking.
</pre>
</div>
</content>
</entry>
</feed>
