ruby/lib/irb
Stan Lo ab0f90f1f5 [ruby/irb] Fix nested IRB sessions' history saving
(https://github.com/ruby/irb/pull/652)

1. Dynamically including `HistorySavingAbility` makes things unnecessarily
   complicated and should be avoided.
2. Because both `Reline` and `Readline` use a single `HISTORY` constant
   to store history data. When nesting IRB sessions, only the first IRB
   session should handle history loading and saving so we can avoid
   duplicating history.
3. History saving callback should NOT be stored in `IRB.conf` as it's
   recreated every time `IRB.setup` is called, which would happen when
   nesting IRB sessions.

0fef0ae160
2023-08-09 14:57:52 +00:00
..
cmd [ruby/irb] Deprecate multi-irb commands 2023-08-02 18:35:08 +00:00
ext [ruby/irb] Refactor eval history 2023-07-04 15:17:41 +00:00
lc [ruby/irb] Remove encoding_aliases.rb 2023-04-26 15:06:05 +00:00
.document [ruby/irb] Exclude useless files from RDoc 2020-02-01 17:03:59 +09:00
color.rb [ruby/irb] Drop Ruby 2.6 support 2023-04-05 21:40:40 +00:00
color_printer.rb [ruby/irb] Replace METHOD_IS_A with === 2023-03-13 18:11:58 +00:00
completion.rb [ruby/irb] Use symbol.inspect instead of ":"+symbol.id2name to avoid 2023-06-13 10:46:38 +00:00
context.rb [ruby/irb] Fix nested IRB sessions' history saving 2023-08-09 14:57:52 +00:00
easter-egg.rb Revert "Prefer #send over #__send__ when it is clear there is no possible conflict" 2020-11-05 20:54:34 +09:00
extend-command.rb [ruby/irb] Refactor eval history 2023-07-04 15:17:41 +00:00
frame.rb [ruby/irb] Formatting to header styles 2023-01-11 22:29:10 +00:00
help.rb [ruby/irb] Retire magic-file.rb 2023-04-28 17:20:20 +00:00
history.rb [ruby/irb] Fix nested IRB sessions' history saving 2023-08-09 14:57:52 +00:00
init.rb [ruby/irb] Remove unused Struct 2023-02-25 16:50:33 +00:00
input-method.rb [ruby/irb] Fix nested IRB sessions' history saving 2023-08-09 14:57:52 +00:00
inspector.rb [ruby/irb] Drop Ruby 2.6 support 2023-04-05 21:40:40 +00:00
irb.gemspec [ruby/irb] Declare rdoc as dependency 2023-07-18 13:53:31 +00:00
locale.rb [ruby/irb] Simplify Locale#load 2023-04-27 15:42:21 +00:00
nesting_parser.rb [ruby/irb] Rewrite RubyLex to fix some bugs and make it possible to 2023-06-15 15:39:58 +00:00
notifier.rb [ruby/irb] Formatting to header styles 2023-01-11 22:29:10 +00:00
output-method.rb [ruby/irb] Formatting to header styles 2023-01-11 22:29:10 +00:00
pager.rb [ruby/irb] Page ls's output (https://github.com/ruby/irb/pull/657) 2023-07-26 08:32:02 +00:00
ruby-lex.rb [ruby/irb] Indent multiline percent literals 2023-07-15 18:12:05 +00:00
ruby_logo.aa [ruby/irb] Discard newlines at end of file 2020-08-28 11:05:18 +09:00
source_finder.rb [ruby/irb] Decouple edit and show_source commands 2023-07-31 19:57:36 +00:00
version.rb [ruby/irb] Bump 1.7.4 (https://github.com/ruby/irb/pull/645) 2023-07-15 15:59:18 +00:00
workspace.rb [ruby/irb] Add a comment about Rails' patch on 2023-02-27 15:23:31 +00:00
ws-for-case-2.rb [ruby/irb] Formatting to header styles 2023-01-11 22:29:10 +00:00
xmp.rb [ruby/irb] Formatting to header styles 2023-01-11 22:29:10 +00:00