ruby-changes:59970
From: aycabta <ko1@a...>
Date: Sun, 9 Feb 2020 20:22:43 +0900 (JST)
Subject: [ruby-changes:59970] fd6746c7a6 (master): [ruby/readline-ext] Use require check instead of DONT_RUN_RELINE_TEST env
https://git.ruby-lang.org/ruby.git/commit/?id=fd6746c7a6 From fd6746c7a651d4a504073726d56be610e1081b78 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Sun, 9 Feb 2020 17:18:41 +0900 Subject: [ruby/readline-ext] Use require check instead of DONT_RUN_RELINE_TEST env https://github.com/ruby/readline-ext/commit/1df99d1481 diff --git a/test/readline/helper.rb b/test/readline/helper.rb index d5f0257..1b80327 100644 --- a/test/readline/helper.rb +++ b/test/readline/helper.rb @@ -9,8 +9,10 @@ def use_ext_readline # Use ext/readline as Readline https://github.com/ruby/ruby/blob/trunk/test/readline/helper.rb#L9 Object.const_set(:Readline, ReadlineSo) end -unless ENV['DONT_RUN_RELINE_TEST'] +begin require "reline" +rescue LoadError +else def use_lib_reline # Use lib/reline as Readline Reline.send(:remove_const, 'IOGate') if Reline.const_defined?('IOGate') Reline.const_set('IOGate', Reline::GeneralIO) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/