<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/test_pp.rb, 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>[ruby/pp] Fix pretty printing range begin/end with false or nil</title>
<updated>2024-11-19T14:52:01+00:00</updated>
<author>
<name>tompng</name>
<email>tomoyapenguin@gmail.com</email>
</author>
<published>2024-10-09T04:31:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7b51b3c75b503de744b5988619915033a3a9b7ff'/>
<id>7b51b3c75b503de744b5988619915033a3a9b7ff</id>
<content type='text'>
https://github.com/ruby/pp/commit/6d9c0f255a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pp/commit/6d9c0f255a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pp] Handle BasicObject</title>
<updated>2024-11-12T02:13:15+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2024-07-12T10:23:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=83702f7157a8c74dd4d7d6d79dea78d90a7b6570'/>
<id>83702f7157a8c74dd4d7d6d79dea78d90a7b6570</id>
<content type='text'>
Right now attempting to pretty print a BasicObject or any other
object lacking a few core Object methods will result in an error

```
Error: test_basic_object(PPTestModule::PPInspectTest): NoMethodError: undefined method `is_a?' for an instance of BasicObject
lib/pp.rb:192:in `pp'
lib/pp.rb:97:in `block in pp'
lib/pp.rb:158:in `guard_inspect_key'
lib/pp.rb:97:in `pp'
test/test_pp.rb:131:in `test_basic_object'
     128:
     129:   def test_basic_object
     130:     a = BasicObject.new
  =&gt; 131:     assert_match(/\A#&lt;BasicObject:0x[\da-f]+&gt;\n\z/, PP.pp(a, ''.dup))
     132:   end
     133: end
     134:
```

With some fairly small changes we can fallback to `Object#inspect`
which is better than an error.

https://github.com/ruby/pp/commit/4e9f6c2de0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Right now attempting to pretty print a BasicObject or any other
object lacking a few core Object methods will result in an error

```
Error: test_basic_object(PPTestModule::PPInspectTest): NoMethodError: undefined method `is_a?' for an instance of BasicObject
lib/pp.rb:192:in `pp'
lib/pp.rb:97:in `block in pp'
lib/pp.rb:158:in `guard_inspect_key'
lib/pp.rb:97:in `pp'
test/test_pp.rb:131:in `test_basic_object'
     128:
     129:   def test_basic_object
     130:     a = BasicObject.new
  =&gt; 131:     assert_match(/\A#&lt;BasicObject:0x[\da-f]+&gt;\n\z/, PP.pp(a, ''.dup))
     132:   end
     133: end
     134:
```

With some fairly small changes we can fallback to `Object#inspect`
which is better than an error.

https://github.com/ruby/pp/commit/4e9f6c2de0
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pp] Data#pretty_print handle privated or removed members</title>
<updated>2024-11-12T02:11:43+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2024-11-07T10:47:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=107a4da122126e6d0e0ad12898d7511e472709a3'/>
<id>107a4da122126e6d0e0ad12898d7511e472709a3</id>
<content type='text'>
[Bug #20808]

The previous implementation assumed all members are accessible,
but it's possible for users to change the visibility of members or
to entirely remove the accessor.

https://github.com/ruby/pp/commit/fb19501434
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Bug #20808]

The previous implementation assumed all members are accessible,
but it's possible for users to change the visibility of members or
to entirely remove the accessor.

https://github.com/ruby/pp/commit/fb19501434
</pre>
</div>
</content>
</entry>
<entry>
<title>Make test_hash_symbol_colon_key pass on LANG=en_US</title>
<updated>2024-10-10T03:23:18+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2024-10-10T02:48:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a985695b9e7f58552cfa6b8700c4dabc137e41e8'/>
<id>a985695b9e7f58552cfa6b8700c4dabc137e41e8</id>
<content type='text'>
It failed on a platform with LANG=en_US
```
  1) Failure:
PPTestModule::PPSingleLineTest#test_hash_symbol_colon_key [/home/chkbuild/chkbuild/tmp/build/20241010T010005Z/ruby/test/test_pp.rb:207]:
&lt;"{a: 1, a!: 1, a?: 1, \u3042: 1}"&gt; expected but was
&lt;"{a: 1, a!: 1, a?: 1, \"\\u3042\": 1}"&gt;.
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It failed on a platform with LANG=en_US
```
  1) Failure:
PPTestModule::PPSingleLineTest#test_hash_symbol_colon_key [/home/chkbuild/chkbuild/tmp/build/20241010T010005Z/ruby/test/test_pp.rb:207]:
&lt;"{a: 1, a!: 1, a?: 1, \u3042: 1}"&gt; expected but was
&lt;"{a: 1, a!: 1, a?: 1, \"\\u3042\": 1}"&gt;.
```
</pre>
</div>
</content>
</entry>
<entry>
<title>prettyprint hash with colon style</title>
<updated>2024-10-03T09:47:09+00:00</updated>
<author>
<name>tompng</name>
<email>tomoyapenguin@gmail.com</email>
</author>
<published>2024-06-07T13:17:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f7343b636f4d5939691adc05d9f8008e05d72038'/>
<id>f7343b636f4d5939691adc05d9f8008e05d72038</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pp] Extract pp_hash_pair</title>
<updated>2024-02-21T16:45:01+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-09-05T13:19:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6e704311bbb7c499f191d9b7d29dac0e37feabde'/>
<id>6e704311bbb7c499f191d9b7d29dac0e37feabde</id>
<content type='text'>
The method which prints single pair of a hash, to make extending
pretty printing Hash easier, apart from Hash construct itself.

https://github.com/ruby/pp/commit/3fcf2d1142
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The method which prints single pair of a hash, to make extending
pretty printing Hash easier, apart from Hash construct itself.

https://github.com/ruby/pp/commit/3fcf2d1142
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pp] Get rid of hardcoded class name</title>
<updated>2024-02-21T16:45:00+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-09-05T12:51:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=37b8fc7477b1cbeb4f3a21ad4b22971170709cfa'/>
<id>37b8fc7477b1cbeb4f3a21ad4b22971170709cfa</id>
<content type='text'>
So that the `pp` method can work in inherited classes with that
class.

https://github.com/ruby/pp/commit/f204df3aad
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So that the `pp` method can work in inherited classes with that
class.

https://github.com/ruby/pp/commit/f204df3aad
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pp] Fix compatibility with 3.3 or earlier</title>
<updated>2024-02-21T16:39:17+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-02-21T16:35:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d9ebb65b7958551dcc73b80815ea639e6187b62d'/>
<id>d9ebb65b7958551dcc73b80815ea639e6187b62d</id>
<content type='text'>
https://github.com/ruby/pp/commit/f5cee21a1e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pp/commit/f5cee21a1e
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pp] Print beginless ranges properly</title>
<updated>2024-01-15T14:04:14+00:00</updated>
<author>
<name>Samuel Giddins</name>
<email>segiddins@segiddins.me</email>
</author>
<published>2023-12-21T01:55:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e0312f90bbf5a6c0af5140ea94c67911515a147b'/>
<id>e0312f90bbf5a6c0af5140ea94c67911515a147b</id>
<content type='text'>
Instead of displaying the start of the range as nil

https://github.com/ruby/pp/commit/1df210d903
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of displaying the start of the range as nil

https://github.com/ruby/pp/commit/1df210d903
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pp] Add TruffleRuby in CI</title>
<updated>2024-01-11T13:44:03+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2023-11-30T16:19:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4e0c2f05efc9415b52b50ee65401c5b511d269e7'/>
<id>4e0c2f05efc9415b52b50ee65401c5b511d269e7</id>
<content type='text'>
* Only 2 cyclic tests are failing, with the ... in a slightly different place in the output.

https://github.com/ruby/pp/commit/6e5c7d741e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Only 2 cyclic tests are failing, with the ... in a slightly different place in the output.

https://github.com/ruby/pp/commit/6e5c7d741e
</pre>
</div>
</content>
</entry>
</feed>
