<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/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] Bump up 0.6.2</title>
<updated>2024-12-03T04:52:19+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-12-03T04:51:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e34163d7fe8d416f9952d775eb743b58f376f0e3'/>
<id>e34163d7fe8d416f9952d775eb743b58f376f0e3</id>
<content type='text'>
https://github.com/ruby/pp/commit/979f9d972d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pp/commit/979f9d972d
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pp] Simplify range nil check</title>
<updated>2024-11-19T14:52:01+00:00</updated>
<author>
<name>tomoya ishida</name>
<email>tomoyapenguin@gmail.com</email>
</author>
<published>2024-11-13T14:18:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cd7c6c66b4a3ea0604b84528fe5f11bacb98d56b'/>
<id>cd7c6c66b4a3ea0604b84528fe5f11bacb98d56b</id>
<content type='text'>
https://github.com/ruby/pp/commit/3e4b7c03b0

Co-authored-by: Nobuyoshi Nakada &lt;nobu.nakada@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pp/commit/3e4b7c03b0

Co-authored-by: Nobuyoshi Nakada &lt;nobu.nakada@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<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] [DOC] Mark up the method name</title>
<updated>2024-11-19T14:43:33+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-11-19T14:43:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0de7e6ccb02dad6b067c29e4b6fdce0c3938bad5'/>
<id>0de7e6ccb02dad6b067c29e4b6fdce0c3938bad5</id>
<content type='text'>
https://github.com/ruby/pp/commit/e787cd9139
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pp/commit/e787cd9139
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pp] [DOC] Add documents</title>
<updated>2024-11-19T12:34:47+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2024-11-19T12:23:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=492b379b52a8c35c53038cde35c506cde2776834'/>
<id>492b379b52a8c35c53038cde35c506cde2776834</id>
<content type='text'>
https://github.com/ruby/pp/commit/dbf177d0fc
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pp/commit/dbf177d0fc
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pp] Bump up v0.6.1</title>
<updated>2024-11-14T02:22:14+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-11-14T02:22:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=43285f543b4ab12431a21e6b253c6520c1a69663'/>
<id>43285f543b4ab12431a21e6b253c6520c1a69663</id>
<content type='text'>
https://github.com/ruby/pp/commit/812933668d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pp/commit/812933668d
</pre>
</div>
</content>
</entry>
<entry>
<title>Removed unused variable</title>
<updated>2024-11-12T02:31:40+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-11-12T02:31:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9a55375df723e3b8ab4d710b0dbf7729fd4e0ca5'/>
<id>9a55375df723e3b8ab4d710b0dbf7729fd4e0ca5</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] Bump up v0.6.0</title>
<updated>2024-11-12T02:18:17+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-11-12T02:18:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=400f78939cbe0b7ab8790062598fd8ac6d4584c3'/>
<id>400f78939cbe0b7ab8790062598fd8ac6d4584c3</id>
<content type='text'>
https://github.com/ruby/pp/commit/af2229e8e6
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pp/commit/af2229e8e6
</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>
</feed>
