From aecb7f6efc8422d98453128c80754121022b0766 Mon Sep 17 00:00:00 2001 From: st0012 Date: Wed, 5 Oct 2022 12:44:13 +0100 Subject: [PATCH] [ruby/irb] Deprecate USE_RELINE and USE_REIDLINE Based on this commit: https://github.com/ruby/irb/commit/93f87ec65344b44123b0150a5fc07de1fd4c80c4 It appears that the maintainer @aycabta wanted to deprecate any `USE_*LINE` configs in favor of `USE_MULTILINE`. So we should deprecate `USE_RELINE` as well. https://github.com/ruby/irb/commit/478f19f3ae --- lib/irb/context.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/irb/context.rb b/lib/irb/context.rb index 72c74f081d..c5d98772b8 100644 --- a/lib/irb/context.rb +++ b/lib/irb/context.rb @@ -49,10 +49,13 @@ module IRB if IRB.conf.has_key?(:USE_MULTILINE) @use_multiline = IRB.conf[:USE_MULTILINE] elsif IRB.conf.has_key?(:USE_RELINE) # backward compatibility + warn <<~MSG.strip + USE_RELINE is deprecated, please use USE_MULTILINE instead. + MSG @use_multiline = IRB.conf[:USE_RELINE] elsif IRB.conf.has_key?(:USE_REIDLINE) warn <<~MSG.strip - USE_REIDLINE is deprecated, please use USE_RELINE instead. + USE_REIDLINE is deprecated, please use USE_MULTILINE instead. MSG @use_multiline = IRB.conf[:USE_REIDLINE] else