From c325ece8c528b240a4b23fe59198a371a60563af Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Mon, 2 Oct 2023 21:04:12 +0100 Subject: [PATCH] Drop patch for Reline 0.2.7 The original issue in Reline has been fixed in https://github.com/ruby/reline/pull/358 and was released in Reline 0.2.8+. Consider `debug` currently requires Reline 0.3.8+, we won't need this patch anymore. --- lib/debug/console.rb | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/lib/debug/console.rb b/lib/debug/console.rb index 959b940e4..53545e5e9 100644 --- a/lib/debug/console.rb +++ b/lib/debug/console.rb @@ -5,30 +5,9 @@ class Console raise LoadError if CONFIG[:no_reline] require 'reline' - # reline 0.2.7 or later is required. - raise LoadError if Reline::VERSION < '0.2.7' - require_relative 'color' - include Color - - begin - prev = trap(:SIGWINCH, nil) - trap(:SIGWINCH, prev) - SIGWINCH_SUPPORTED = true - rescue ArgumentError - SIGWINCH_SUPPORTED = false - end - # 0.2.7 has SIGWINCH issue on non-main thread - class ::Reline::LineEditor - m = Module.new do - def reset(prompt = '', encoding:) - super - Signal.trap(:SIGWINCH, nil) - end - end - prepend m - end if SIGWINCH_SUPPORTED + include Color def parse_input buff, commands c, rest = get_command buff