<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/irb/inspector.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/irb] Group class methods under `class &lt;&lt; self`</title>
<updated>2024-07-16T15:58:15+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan001212@gmail.com</email>
</author>
<published>2024-07-16T15:58:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4a4e1bf357f5b5f568ead4da0537eb4506e20e5f'/>
<id>4a4e1bf357f5b5f568ead4da0537eb4506e20e5f</id>
<content type='text'>
(https://github.com/ruby/irb/pull/981)

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

https://github.com/ruby/irb/commit/cdaa356df2
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Remove remaining `frozen_string_literal: false` in lib/</title>
<updated>2024-02-23T12:32:50+00:00</updated>
<author>
<name>tomoya ishida</name>
<email>tomoyapenguin@gmail.com</email>
</author>
<published>2024-02-23T12:32:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=598b03648f3277d65ab12a8cfb63222474788037'/>
<id>598b03648f3277d65ab12a8cfb63222474788037</id>
<content type='text'>
(https://github.com/ruby/irb/pull/883)

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

https://github.com/ruby/irb/commit/4bfdb23ae6
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Add rubocop with a few basic styling rules</title>
<updated>2024-02-01T17:46:02+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan001212@gmail.com</email>
</author>
<published>2024-02-01T17:45:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=ef427123ad51269fd5b45eeba327bd626e420974'/>
<id>ef427123ad51269fd5b45eeba327bd626e420974</id>
<content type='text'>
(https://github.com/ruby/irb/pull/849)

* Use rubocop to enforce a few styling rules

* Add a CI job for linting

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

* Use rubocop to enforce a few styling rules

* Add a CI job for linting

https://github.com/ruby/irb/commit/4f60cd88bb
</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>
</feed>
