<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/spec/ruby/core/kernel, 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>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>Update to ruby/spec@6e62695</title>
<updated>2025-11-19T22:37:37+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2025-11-19T22:37:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ba2b97a9440d92e78d519fbcbdecc25b72a42705'/>
<id>ba2b97a9440d92e78d519fbcbdecc25b72a42705</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix provided features spec with --repeat 2</title>
<updated>2025-11-19T20:47:14+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2025-11-19T20:46:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=28908a95c4d303e3cf12f03b0b475a48778435a7'/>
<id>28908a95c4d303e3cf12f03b0b475a48778435a7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update to ruby/spec@2e11d2a</title>
<updated>2025-11-19T11:36:40+00:00</updated>
<author>
<name>Charles Oliver Nutter</name>
<email>headius@headius.com</email>
</author>
<published>2025-11-19T01:38:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=85cd08e4f9f422357207ace0a53b9ec8020df976'/>
<id>85cd08e4f9f422357207ace0a53b9ec8020df976</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[Feature #19630] Limit the versions with the old behavior</title>
<updated>2025-10-30T13:32:18+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-10-30T10:54:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=481f994449f35ce4050757561e89a776903ee425'/>
<id>481f994449f35ce4050757561e89a776903ee425</id>
<content type='text'>
It is already declared as:
&gt; This behavior is slated to be removed in Ruby 4.0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is already declared as:
&gt; This behavior is slated to be removed in Ruby 4.0
</pre>
</div>
</content>
</entry>
<entry>
<title>Update to ruby/spec@3d7e563</title>
<updated>2025-10-08T15:59:52+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2025-10-08T15:59:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=50593d51997eab4aa5a148c5e131d10ea535f955'/>
<id>50593d51997eab4aa5a148c5e131d10ea535f955</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Provide pathname.so with embedded Pathname</title>
<updated>2025-07-15T04:36:03+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-07-15T02:29:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=69d4c673471caea6a7149da216be3e2e8259f704'/>
<id>69d4c673471caea6a7149da216be3e2e8259f704</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update to ruby/spec@ed254ba</title>
<updated>2025-07-09T13:11:17+00:00</updated>
<author>
<name>Andrew Konchin</name>
<email>andry.konchin@gmail.com</email>
</author>
<published>2025-07-09T11:44:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=087387794a468be4e69960c7831e15cd363a508a'/>
<id>087387794a468be4e69960c7831e15cd363a508a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Exclude internal frames from backtrace</title>
<updated>2025-06-18T05:51:56+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2025-05-02T08:12:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=10767283dd0277a1d780790ce6bde67cf2c832a2'/>
<id>10767283dd0277a1d780790ce6bde67cf2c832a2</id>
<content type='text'>
This changeset suppresses backtrace locations like
`&lt;internal:array&gt;:211` as much as possible.

Before the patch:
```
$ ruby -e '[1].fetch_values(42)'
&lt;internal:array&gt;:211:in 'Array#fetch': index 42 outside of array bounds: -1...1 (IndexError)
        from &lt;internal:array&gt;:211:in 'block in Array#fetch_values'
        from &lt;internal:array&gt;:211:in 'Array#map!'
        from &lt;internal:array&gt;:211:in 'Array#fetch_values'
        from -e:1:in '&lt;main&gt;'
```

After the patch:
```
$ ./miniruby -e '[1].fetch_values(42)'
-e:1:in 'Array#fetch_values': index 42 outside of array bounds: -1...1 (IndexError)
        from -e:1:in '&lt;main&gt;'
```

Specifically:

* The special backtrace handling of BUILTIN_ATTR_C_TRACE is now always
  applied to frames with `&lt;internal:...&gt;`.
* When multiple consecutive internal frames appear, all but the bottom
  (caller-side) frame are removed.

[Misc #20968]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This changeset suppresses backtrace locations like
`&lt;internal:array&gt;:211` as much as possible.

Before the patch:
```
$ ruby -e '[1].fetch_values(42)'
&lt;internal:array&gt;:211:in 'Array#fetch': index 42 outside of array bounds: -1...1 (IndexError)
        from &lt;internal:array&gt;:211:in 'block in Array#fetch_values'
        from &lt;internal:array&gt;:211:in 'Array#map!'
        from &lt;internal:array&gt;:211:in 'Array#fetch_values'
        from -e:1:in '&lt;main&gt;'
```

After the patch:
```
$ ./miniruby -e '[1].fetch_values(42)'
-e:1:in 'Array#fetch_values': index 42 outside of array bounds: -1...1 (IndexError)
        from -e:1:in '&lt;main&gt;'
```

Specifically:

* The special backtrace handling of BUILTIN_ATTR_C_TRACE is now always
  applied to frames with `&lt;internal:...&gt;`.
* When multiple consecutive internal frames appear, all but the bottom
  (caller-side) frame are removed.

[Misc #20968]
</pre>
</div>
</content>
</entry>
<entry>
<title>[Feature #21219] Selective inspect of instance variables</title>
<updated>2025-06-09T07:25:37+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2025-04-08T08:35:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f4135feafc558111c7388b823a64652e09999161'/>
<id>f4135feafc558111c7388b823a64652e09999161</id>
<content type='text'>
Make Kernel#inspect ask which instance variables should be dumped by
the result of `#instance_variables_to_inspect`.

Co-Authored-By: Jean Boussier &lt;byroot@ruby-lang.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make Kernel#inspect ask which instance variables should be dumped by
the result of `#instance_variables_to_inspect`.

Co-Authored-By: Jean Boussier &lt;byroot@ruby-lang.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
