<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/irb/inspector.rb, branch v3_3_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[Bug #20511] Update reline-0.5.7 (#10848)</title>
<updated>2024-05-28T22:54:39+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-05-28T22:54:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=077558ee2b8dd3ed414b78384f21118f833eb259'/>
<id>077558ee2b8dd3ed414b78384f21118f833eb259</id>
<content type='text'>
* Update reline-0.5.7

* Update irb-1.13.1</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Update reline-0.5.7

* Update irb-1.13.1</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Drop Ruby 2.6 support</title>
<updated>2023-04-05T21:40:40+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan001212@gmail.com</email>
</author>
<published>2023-04-05T21:40:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2f8e5c80e65a14b3a9298b6cae7ee7fc53890540'/>
<id>2f8e5c80e65a14b3a9298b6cae7ee7fc53890540</id>
<content type='text'>
(https://github.com/ruby/irb/pull/555)

* Remove all Ruby 2.6 support

* Drop Ruby 2.6 specific testing conditions

* Only run Ruby 2.7+ on CI

* Bump Ruby requirement to 2.7+

https://github.com/ruby/irb/commit/3f714b616c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/irb/pull/555)

* Remove all Ruby 2.6 support

* Drop Ruby 2.6 specific testing conditions

* Only run Ruby 2.7+ on CI

* Bump Ruby requirement to 2.7+

https://github.com/ruby/irb/commit/3f714b616c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Provide more useful message when</title>
<updated>2023-02-27T11:07:19+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan001212@gmail.com</email>
</author>
<published>2023-02-27T11:07:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0aa50a03b1ea8d37069ae57c469f43860abbcf05'/>
<id>0aa50a03b1ea8d37069ae57c469f43860abbcf05</id>
<content type='text'>
`IRB::Inspector#inspect_value` errors
(https://github.com/ruby/irb/pull/511)

**Before**

```
irb(main):001:0&gt; c = Cat.new "foo"
(Object doesn't support #inspect)
=&gt;
```

**After**

```
irb(main):001:0&gt; c = Cat.new "foo"
An error occurred when inspecting the object: #&lt;NoMethodError: undefined method `is_a?' for foo:Cat

      if obj.is_a?(String)
            ^^^^^^&gt;
Result of Kernel#inspect: #&lt;Cat:0x0000000109090d80 @name="foo"&gt;
=&gt;
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`IRB::Inspector#inspect_value` errors
(https://github.com/ruby/irb/pull/511)

**Before**

```
irb(main):001:0&gt; c = Cat.new "foo"
(Object doesn't support #inspect)
=&gt;
```

**After**

```
irb(main):001:0&gt; c = Cat.new "foo"
An error occurred when inspecting the object: #&lt;NoMethodError: undefined method `is_a?' for foo:Cat

      if obj.is_a?(String)
            ^^^^^^&gt;
Result of Kernel#inspect: #&lt;Cat:0x0000000109090d80 @name="foo"&gt;
=&gt;
```
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Formatting to header styles</title>
<updated>2023-01-11T22:29:10+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-01-11T04:54:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7e283c585e88a08c6eaa4d28ffb646270b598e6d'/>
<id>7e283c585e88a08c6eaa4d28ffb646270b598e6d</id>
<content type='text'>
https://github.com/ruby/irb/commit/cef125850d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/irb/commit/cef125850d
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Removed Release Version and Revisions for old VCS software</title>
<updated>2023-01-11T22:29:09+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-01-11T04:42:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c7bb8d67b73c89a9939a88c9c2105e2a31a08beb'/>
<id>c7bb8d67b73c89a9939a88c9c2105e2a31a08beb</id>
<content type='text'>
https://github.com/ruby/irb/commit/07fae94862
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/irb/commit/07fae94862
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Centralize coloring control (https://github.com/ruby/irb/pull/374)</title>
<updated>2022-06-28T13:30:42+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan001212@gmail.com</email>
</author>
<published>2022-06-28T13:30:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=44c1316293f80abaa0e76b3818322544b9372a97'/>
<id>44c1316293f80abaa0e76b3818322544b9372a97</id>
<content type='text'>
* Use colorable: argument as the only coloring control

* Centalize color controling logic at Color.colorable?

There are 2 requirements for coloring output:

1. It's supported on the platform
2. The user wants it: `IRB.conf[:USE_COLORIZE] == true`

Right now we check 1 and 2 separately whenever we colorize things.
But it's error-prone because while 1 is the default of `colorable`
parameter, 2 always need to manually checked. When 2 is overlooked, it
causes issues like https://github.com/ruby/irb/pull/362

And there's 0 case where we may want to colorize even when the user
disables it. So I think we should merge 2 into `Color.colorable?` so it
can be automatically picked up.

* Add tests for all inspect modes

* Simplify inspectors' coloring logic

* Replace use_colorize? with Color.colorable?

* Remove Context#use_colorize cause it's redundant

https://github.com/ruby/irb/commit/1c53023ac4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Use colorable: argument as the only coloring control

* Centalize color controling logic at Color.colorable?

There are 2 requirements for coloring output:

1. It's supported on the platform
2. The user wants it: `IRB.conf[:USE_COLORIZE] == true`

Right now we check 1 and 2 separately whenever we colorize things.
But it's error-prone because while 1 is the default of `colorable`
parameter, 2 always need to manually checked. When 2 is overlooked, it
causes issues like https://github.com/ruby/irb/pull/362

And there's 0 case where we may want to colorize even when the user
disables it. So I think we should merge 2 into `Color.colorable?` so it
can be automatically picked up.

* Add tests for all inspect modes

* Simplify inspectors' coloring logic

* Replace use_colorize? with Color.colorable?

* Remove Context#use_colorize cause it's redundant

https://github.com/ruby/irb/commit/1c53023ac4
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Use require_relative to require lib files</title>
<updated>2022-01-17T05:23:40+00:00</updated>
<author>
<name>st0012</name>
<email>stan001212@gmail.com</email>
</author>
<published>2022-01-16T22:20:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=81b604fb005b2dfa9601e0dabcdacfca6d8f3fba'/>
<id>81b604fb005b2dfa9601e0dabcdacfca6d8f3fba</id>
<content type='text'>
1. `require` can mislead Ruby to load system irb's files and cause
   constant redefined warnings as other code loads the same module/class
   from lib folder.
2. Most files already use `require_relative`.

https://github.com/ruby/irb/commit/848d339f2e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1. `require` can mislead Ruby to load system irb's files and cause
   constant redefined warnings as other code loads the same module/class
   from lib folder.
2. Most files already use `require_relative`.

https://github.com/ruby/irb/commit/848d339f2e
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Make IRB::ColorPrinter.pp compatible with PP.pp</title>
<updated>2021-01-08T06:43:40+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2021-01-08T06:41:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=98bd7e87a08b86c7aa95502428015c3f7b4aae75'/>
<id>98bd7e87a08b86c7aa95502428015c3f7b4aae75</id>
<content type='text'>
The incompatible interface is not helpful, again if you want to use it
as a standalone library, falling it back to PP.

Original PP.pp also ends with `out &lt;&lt; "\n"`.

https://github.com/ruby/irb/commit/4c74c7d84c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The incompatible interface is not helpful, again if you want to use it
as a standalone library, falling it back to PP.

Original PP.pp also ends with `out &lt;&lt; "\n"`.

https://github.com/ruby/irb/commit/4c74c7d84c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] refactoring an error handling in `IRB::Inspector`</title>
<updated>2021-01-08T04:25:18+00:00</updated>
<author>
<name>Nobuhiro IMAI</name>
<email>nov@yo.rim.or.jp</email>
</author>
<published>2021-01-07T10:21:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ed3264d37abc54e3aade229751a9165ffd37ca2e'/>
<id>ed3264d37abc54e3aade229751a9165ffd37ca2e</id>
<content type='text'>
* moved rescue clause to `#inspect_value` to catch all failures in inspectors
* test with all (currently five kind of) inspect modes
  - tweaked the input due to only `Marshal` can inspect(dump) a `BasicObject`

https://github.com/ruby/irb/commit/9d112fab8e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* moved rescue clause to `#inspect_value` to catch all failures in inspectors
* test with all (currently five kind of) inspect modes
  - tweaked the input due to only `Marshal` can inspect(dump) a `BasicObject`

https://github.com/ruby/irb/commit/9d112fab8e
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Enhance colored inspect output</title>
<updated>2020-12-29T07:01:00+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2020-12-29T06:16:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c715fb46c2d8eab48323a6008c5dbca550ebe2e0'/>
<id>c715fb46c2d8eab48323a6008c5dbca550ebe2e0</id>
<content type='text'>
https://github.com/ruby/irb/commit/dffcdb5269
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/irb/commit/dffcdb5269
</pre>
</div>
</content>
</entry>
</feed>
