зеркало из https://github.com/github/ruby.git
[ruby/readline] Suppress constant redefinition warning
When already set by `use_lib_reline` in test/readline/helper.rb of readline-ext. https://github.com/ruby/readline/commit/0e3ca3b217
This commit is contained in:
Родитель
4a09b7de06
Коммит
e19b656409
|
@ -2,5 +2,6 @@ begin
|
|||
require 'readline.so'
|
||||
rescue LoadError
|
||||
require 'reline' unless defined? Reline
|
||||
Object.send(:remove_const, :Readline) if Object.const_defined?(:Readline)
|
||||
Readline = Reline
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче