From cb19dfca2c9b315d29c5303203d8d0d1bbbd8511 Mon Sep 17 00:00:00 2001 From: tomoya ishida Date: Wed, 9 Oct 2024 00:15:39 +0900 Subject: [ruby/irb] Change debug test workaround to use ENV RUBY_DEBUG_TEST_UI (https://github.com/ruby/irb/pull/1014) https://github.com/ruby/irb/commit/9933584754 --- lib/irb/input-method.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/irb') diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 210d3da789..38f05d7716 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -67,7 +67,9 @@ module IRB # # See IO#gets for more information. def gets - puts if @stdout.tty? # workaround for debug compatibility test + # Workaround for debug compatibility test https://github.com/ruby/debug/pull/1100 + puts if ENV['RUBY_DEBUG_TEST_UI'] + print @prompt line = @stdin.gets @line[@line_no += 1] = line -- cgit v1.2.3