<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/pp.rb, branch v3_2_11</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] [Feature #19045] Add support Data#pretty_print</title>
<updated>2022-10-14T12:31:24+00:00</updated>
<author>
<name>manga_osyo</name>
<email>manga.osyo@gmail.com</email>
</author>
<published>2022-10-10T03:30:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7b7e5153e81288fe57ae64f2e1db228435156aeb'/>
<id>7b7e5153e81288fe57ae64f2e1db228435156aeb</id>
<content type='text'>
https://github.com/ruby/pp/commit/343a20d721
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pp/commit/343a20d721
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pp] [DOC] Update for PP.width_for [Feature #12913]</title>
<updated>2021-12-23T09:00:56+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2021-12-23T07:09:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c6cf19340a116f21d71ecc218a2e8c31fe2f1d85'/>
<id>c6cf19340a116f21d71ecc218a2e8c31fe2f1d85</id>
<content type='text'>
https://github.com/ruby/pp/commit/cad3cc762c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pp/commit/cad3cc762c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pp] Use etc instead of .so for broader compatibility</title>
<updated>2021-12-17T23:38:58+00:00</updated>
<author>
<name>Charles Oliver Nutter</name>
<email>headius@headius.com</email>
</author>
<published>2021-09-28T14:37:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=73da1c5ea3fcc5abb1f72f70f7a3e61683368177'/>
<id>73da1c5ea3fcc5abb1f72f70f7a3e61683368177</id>
<content type='text'>
The use of `etc.so` here requires that etc is always implemented
as a C extension on-disk. However at least one impl – JRuby –
currently implements it as an internal extension, loaded via a
Ruby script. This require should simply use the base name of the
library, `etc`, to allow Ruby-based implementations to load as
well.

https://github.com/ruby/pp/commit/2061f994e0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The use of `etc.so` here requires that etc is always implemented
as a C extension on-disk. However at least one impl – JRuby –
currently implements it as an internal extension, loaded via a
Ruby script. This require should simply use the base name of the
library, `etc`, to allow Ruby-based implementations to load as
well.

https://github.com/ruby/pp/commit/2061f994e0
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pp] Only do RubyVM patches if class exists</title>
<updated>2021-12-17T23:38:58+00:00</updated>
<author>
<name>Charles Oliver Nutter</name>
<email>headius@headius.com</email>
</author>
<published>2021-09-24T04:57:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5a6baaba3881c04534c9ad959e427ade3d5e410b'/>
<id>5a6baaba3881c04534c9ad959e427ade3d5e410b</id>
<content type='text'>
This class does not exist in any implementation except CRuby.

I would recommend moving this code somewhere else, like a separate
file loaded only on CRuby or into CRuby itself. For now this
change is sufficient to load the library on other implementations.

https://github.com/ruby/pp/commit/7d5a220f64
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This class does not exist in any implementation except CRuby.

I would recommend moving this code somewhere else, like a separate
file loaded only on CRuby or into CRuby itself. For now this
change is sufficient to load the library on other implementations.

https://github.com/ruby/pp/commit/7d5a220f64
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/pp.rb (width_for): Ignore all syscall errors</title>
<updated>2021-11-30T04:46:08+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-11-30T04:46:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3288f0d09e35a98d3569c79fad654e38eaeb7a9c'/>
<id>3288f0d09e35a98d3569c79fad654e38eaeb7a9c</id>
<content type='text'>
According to nobu, Errno::EBAD is raised on Windows.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
According to nobu, Errno::EBAD is raised on Windows.
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/pp.rb (width_for): ignore Errno::EINVAL</title>
<updated>2021-11-30T04:17:54+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-11-30T04:17:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=20065eabdb2235a605b61e03d72c19b2a20b52a5'/>
<id>20065eabdb2235a605b61e03d72c19b2a20b52a5</id>
<content type='text'>
The error is raised on Solaris
http://rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20211130T030003Z.fail.html.gz
```
  1) Failure:
TestRubyOptions#test_require [/export/home/users/chkbuild/cb-gcc/tmp/build/20211130T030003Z/ruby/test/ruby/test_rubyoptions.rb:265]:
pid 7386 exit 1
| /export/home/users/chkbuild/cb-gcc/tmp/build/20211130T030003Z/ruby/lib/pp.rb:67:in `winsize': Invalid argument - &lt;STDOUT&gt; (Errno::EINVAL)
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The error is raised on Solaris
http://rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20211130T030003Z.fail.html.gz
```
  1) Failure:
TestRubyOptions#test_require [/export/home/users/chkbuild/cb-gcc/tmp/build/20211130T030003Z/ruby/test/ruby/test_rubyoptions.rb:265]:
pid 7386 exit 1
| /export/home/users/chkbuild/cb-gcc/tmp/build/20211130T030003Z/ruby/lib/pp.rb:67:in `winsize': Invalid argument - &lt;STDOUT&gt; (Errno::EINVAL)
```
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/pp.rb (PP.pp): Use io/console's winsize by default</title>
<updated>2021-11-30T02:43:54+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-11-30T02:42:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=eac347fdb04023e1a365d84a8c163263cc7a5904'/>
<id>eac347fdb04023e1a365d84a8c163263cc7a5904</id>
<content type='text'>
[Feature #12913]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Feature #12913]
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pp] Support &lt; Ruby 3.0</title>
<updated>2021-04-21T11:44:55+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2020-12-28T04:37:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=17441a6b1bb258d0d67f75c5642db642e10f74ca'/>
<id>17441a6b1bb258d0d67f75c5642db642e10f74ca</id>
<content type='text'>
https://github.com/ruby/pp/commit/3ee131ae92
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pp/commit/3ee131ae92
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Add doc to sharing_detection= [ci skip]</title>
<updated>2020-12-23T02:13:50+00:00</updated>
<author>
<name>Kazuhiro NISHIYAMA</name>
<email>zn@mbf.nifty.com</email>
</author>
<published>2020-12-23T02:13:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=082114da0552484d2695f685d781418fa51c7ef8'/>
<id>082114da0552484d2695f685d781418fa51c7ef8</id>
<content type='text'>
Before:
```
$ ri sharing_detection=
= .sharing_detection=
(from ruby core)
=== Implementation from PP
------------------------------------------------------------------------
  sharing_detection=(b)
------------------------------------------------------------------------
Returns the sharing detection flag as a boolean value. It is false by
default.
```

After:
```
$ ri sharing_detection=
= .sharing_detection=

(from ruby core)
=== Implementation from PP
------------------------------------------------------------------------
  sharing_detection=(b)

------------------------------------------------------------------------

Sets the sharing detection flag to b.
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before:
```
$ ri sharing_detection=
= .sharing_detection=
(from ruby core)
=== Implementation from PP
------------------------------------------------------------------------
  sharing_detection=(b)
------------------------------------------------------------------------
Returns the sharing detection flag as a boolean value. It is false by
default.
```

After:
```
$ ri sharing_detection=
= .sharing_detection=

(from ruby core)
=== Implementation from PP
------------------------------------------------------------------------
  sharing_detection=(b)

------------------------------------------------------------------------

Sets the sharing detection flag to b.
```
</pre>
</div>
</content>
</entry>
<entry>
<title>pp is ractor-ready.</title>
<updated>2020-12-22T14:32:18+00:00</updated>
<author>
<name>Koichi Sasada</name>
<email>ko1@atdot.net</email>
</author>
<published>2020-12-22T08:07:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cae8bbfe6271a15cf212a83a9c3ac3fedcdc7718'/>
<id>cae8bbfe6271a15cf212a83a9c3ac3fedcdc7718</id>
<content type='text'>
`@sharing_detection` is only one obstruction to support pp on
non-main ractors, so make it ractor-local.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`@sharing_detection` is only one obstruction to support pp on
non-main ractors, so make it ractor-local.
</pre>
</div>
</content>
</entry>
</feed>
