ruby/lib/irb
Jeremy Evans 14e1739ff3 [ruby/irb] Make save-history extension safe for concurrent use
This makes the save-history extension check for modifications to
the history file before saving it.  If the history file was modified
after the history was loaded and before it was saved, append only
the new history lines to the history file.

This can result in more lines in the history file than SAVE_HISTORY
allows.  However, that will be fixed the next time irb is run and
the history is saved.

Fixes [Bug #13654]

https://github.com/ruby/irb/commit/041ef53845
2021-03-06 00:18:32 +09:00
..
cmd [ruby/irb] The command "irb_info" should show RUBY_PLATFORM 2021-02-11 20:36:43 +09:00
ext [ruby/irb] Make save-history extension safe for concurrent use 2021-03-06 00:18:32 +09:00
lc [ruby/irb] Update help message for next context-mode of 4 2021-02-27 06:51:12 +09:00
.document [ruby/irb] Exclude useless files from RDoc 2020-02-01 17:03:59 +09:00
color.rb [ruby/irb] handle `__ENCODING__` as a keyword as well 2021-01-18 02:12:43 +09:00
color_printer.rb [ruby/irb] Rescue Errno::EINVAL on IRB pp 2021-01-19 08:57:50 -08:00
completion.rb [ruby/irb] do not escape a predicate method for doc namespace 2021-01-08 13:25:18 +09:00
context.rb [ruby/irb] Drop OMIT_ON_ASSIGNMENT and add :truncate option for ECHO_ON_ASSIGNMENT 2020-09-19 05:13:08 +09: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 irb: Define extension command on the given object 2020-12-20 19:35:59 +09:00
frame.rb Remove e2mmap dependency 2019-11-25 05:38:09 +09:00
help.rb [ruby/irb] Discard newlines at end of file 2020-08-28 11:05:18 +09:00
init.rb [ruby/irb] Enable to reassign a new block with "measure" command 2021-02-06 21:09:31 +09:00
input-method.rb [ruby/irb] add `IRB::FileInputMethod.open` to ensure closing associated File 2021-01-27 15:01:57 +09:00
inspector.rb [ruby/irb] Make IRB::ColorPrinter.pp compatible with PP.pp 2021-01-07 22:43:40 -08:00
irb.gemspec [ruby/irb] Add info.rb to gemspec 2021-02-04 21:12:54 +09:00
locale.rb Use Reline.encoding_system_needs if exists 2020-01-14 15:40:38 +09:00
magic-file.rb Don't pollute toplevel by an IRB internal method 2017-06-15 10:43:17 +00:00
notifier.rb Remove e2mmap dependency 2019-11-25 05:38:09 +09:00
output-method.rb Remove e2mmap dependency 2019-11-25 05:38:09 +09:00
ruby-lex.rb [ruby/irb] Do not continue line if last expression is an endless range 2021-03-05 22:03:05 +09:00
ruby_logo.aa [ruby/irb] Discard newlines at end of file 2020-08-28 11:05:18 +09:00
src_encoding.rb Don't pollute toplevel by an IRB internal method 2017-06-15 10:43:17 +00:00
version.rb [ruby/irb] Version 1.3.4 2021-02-25 22:11:48 +09:00
workspace.rb [ruby/irb] Suppress colorize on Windows tests 2021-02-11 20:31:29 +09:00
ws-for-case-2.rb Add frozen_string_literal: false for all files 2015-12-16 05:07:31 +00:00
xmp.rb [ruby/irb] Prefer require_relative to load the files in this library 2020-08-18 14:38:01 +09:00