<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/irb/test_cmd.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/irb] Group show_doc tests and update the expectation</title>
<updated>2022-12-12T21:05:03+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan.lo@shopify.com</email>
</author>
<published>2022-12-12T21:04:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f88f2bd92f4a1760c0f323614c45369d6a281317'/>
<id>f88f2bd92f4a1760c0f323614c45369d6a281317</id>
<content type='text'>
(https://github.com/ruby/irb/pull/479)

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

https://github.com/ruby/irb/commit/bede04c14a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] `show_doc` command should take non-string argument too</title>
<updated>2022-12-12T17:35:48+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan.lo@shopify.com</email>
</author>
<published>2022-12-12T17:35:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=223d4448c827b9daeb6a61312777e67405e66379'/>
<id>223d4448c827b9daeb6a61312777e67405e66379</id>
<content type='text'>
(https://github.com/ruby/irb/pull/478)

Given that `show_doc` already supports syntax like `String#gsub`, it
should be able to take it in non-string form too, like `edit` and
`show_source` do. This ensures users can have a consistent syntax on
argument between different commands.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/irb/pull/478)

Given that `show_doc` already supports syntax like `String#gsub`, it
should be able to take it in non-string form too, like `edit` and
`show_source` do. This ensures users can have a consistent syntax on
argument between different commands.</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Add show_doc as an alias to the help command</title>
<updated>2022-12-08T21:46:55+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan.lo@shopify.com</email>
</author>
<published>2022-12-08T21:46:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c9076d546aae9dbcb7da404aada7ce8d23e2273b'/>
<id>c9076d546aae9dbcb7da404aada7ce8d23e2273b</id>
<content type='text'>
(https://github.com/ruby/irb/pull/475)

In the long-term, we want to align with `Pry`, `byebug` and `debug` to
use the `help` command to list all commands, which is what `show_cmds`
currently does. And `show_doc` will be the command to look up Ruby APIs.

By aliasing `show_doc` to the current `help` now, users will have time
to get use to it.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/irb/pull/475)

In the long-term, we want to align with `Pry`, `byebug` and `debug` to
use the `help` command to list all commands, which is what `show_cmds`
currently does. And `show_doc` will be the command to look up Ruby APIs.

By aliasing `show_doc` to the current `help` now, users will have time
to get use to it.</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Gracefully handle missing command argument</title>
<updated>2022-12-08T21:05:37+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan.lo@shopify.com</email>
</author>
<published>2022-12-08T21:05:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=12b7c129bf8ed3a113e2cc73f817868507504268'/>
<id>12b7c129bf8ed3a113e2cc73f817868507504268</id>
<content type='text'>
(https://github.com/ruby/irb/pull/473)

* Handle file loading commands' argument error gracefully

Currently, if users don't provide an argument to `source`,
`irb_load`, and `irb_require`, IRB raises `ArgumentError` with full
stacktrace. This is confusing because it looks similar to when IRB has
internal issues. The message also isn't helpful on helping users avoid
the error.

So in this commit, I add a new `CommandArgumentError` for commands to
raise explicitly when users' input doesn't satisfy a command's argument
requirement.

* Gracefully handle `fg` command's argument requirement</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/irb/pull/473)

* Handle file loading commands' argument error gracefully

Currently, if users don't provide an argument to `source`,
`irb_load`, and `irb_require`, IRB raises `ArgumentError` with full
stacktrace. This is confusing because it looks similar to when IRB has
internal issues. The message also isn't helpful on helping users avoid
the error.

So in this commit, I add a new `CommandArgumentError` for commands to
raise explicitly when users' input doesn't satisfy a command's argument
requirement.

* Gracefully handle `fg` command's argument requirement</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Add "show_cmds" command to list all commands'</title>
<updated>2022-12-08T19:10:23+00:00</updated>
<author>
<name>Stan Lo</name>
<email>stan.lo@shopify.com</email>
</author>
<published>2022-12-08T19:10:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3956bb859c2442d34ea171db8f92f3e5895c43d9'/>
<id>3956bb859c2442d34ea171db8f92f3e5895c43d9</id>
<content type='text'>
descriptions
(https://github.com/ruby/irb/pull/463)

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

https://github.com/ruby/irb/commit/7e857655ac
</pre>
</div>
</content>
</entry>
<entry>
<title>Prevent a "warning: ambiguity between regexp and two divisions"</title>
<updated>2022-11-21T07:13:15+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2022-11-21T07:13:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=730b841f8d6ba76d793a608cc20f46684a7d2cb1'/>
<id>730b841f8d6ba76d793a608cc20f46684a7d2cb1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Push an accidentally uncommitted diff</title>
<updated>2022-11-20T05:38:43+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-11-20T05:38:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=66ac288ae2d90ab314f388b4a30b6f2cf87578e7'/>
<id>66ac288ae2d90ab314f388b4a30b6f2cf87578e7</id>
<content type='text'>
https://github.com/ruby/irb/commit/7e9f27afd7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/irb/commit/7e9f27afd7
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Try using a different file name</title>
<updated>2022-11-20T05:31:56+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-11-20T05:31:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fa2e0cc018e09b81d8bf3b48b4e74070b3eb9228'/>
<id>fa2e0cc018e09b81d8bf3b48b4e74070b3eb9228</id>
<content type='text'>
hoping to address:
https://github.com/ruby/ruby/actions/runs/3506561941/jobs/5873689640

https://github.com/ruby/irb/commit/de9a6b9d00
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
hoping to address:
https://github.com/ruby/ruby/actions/runs/3506561941/jobs/5873689640

https://github.com/ruby/irb/commit/de9a6b9d00
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Require rubygems for ruby/ruby</title>
<updated>2022-11-20T05:19:50+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-11-20T05:19:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f47251671d7c619f00ff6e66ab7990f573224d5e'/>
<id>f47251671d7c619f00ff6e66ab7990f573224d5e</id>
<content type='text'>
You can't take rubygems for granted in a default gem.
https://github.com/ruby/ruby/actions/runs/3506561943/jobs/5873689466

https://github.com/ruby/irb/commit/58bb3954d0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
You can't take rubygems for granted in a default gem.
https://github.com/ruby/ruby/actions/runs/3506561943/jobs/5873689466

https://github.com/ruby/irb/commit/58bb3954d0
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/irb] Fix CI failure on ruby/ruby</title>
<updated>2022-11-20T05:06:07+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2022-11-20T05:05:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e0f0367ab5d3504e741bd6b89d6eea7c93a94327'/>
<id>e0f0367ab5d3504e741bd6b89d6eea7c93a94327</id>
<content type='text'>
https://github.com/ruby/irb/commit/ea8c716922
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/irb/commit/ea8c716922
</pre>
</div>
</content>
</entry>
</feed>
