[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
This commit is contained in:
tomoya ishida 2024-10-09 00:15:39 +09:00 committed by git
parent a320833013
commit cb19dfca2c

View File

@ -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