Stan Lo 5c4657f883 [ruby/irb] Polish the exit! command and its tests
(https://github.com/ruby/irb/pull/867)

* Remove IRB.irb_exit! method

It's not necessary to introduce a new method just for the exit! command
at this moment.

* Rename ExitForcedAction to ForceExit

* Move force exit tests to a dedicated file

* Fix nested history saving with exit! command

Because we switched to use `Kernel#exit` instead of `exit!`, the outer
session's ensure block in `Irb#run` will be run, which will save the
history. This means the separate check to save history when force exiting
is no longer necessary.

* execute_lines helper should also capture IRB setup's output

This prevents setup warnings from being printed to test output
while allowing those output to be tested.

* Update readme

https://github.com/ruby/irb/commit/899d10ade1
2024-02-11 05:17:40 +00:00
..
2024-01-04 22:34:59 +00:00
2023-12-16 11:48:49 +08:00
2023-12-23 16:50:29 +09:00
2024-01-22 00:19:51 +00:00
2024-01-10 09:18:18 +09:00
2024-01-27 19:59:42 +00:00
2023-12-25 21:12:49 +09:00
2023-12-25 21:12:49 +09:00
2023-12-23 16:50:33 +09:00