[ruby/irb] Change the way the IRB is invoked as an external process

https://github.com/ruby/irb/commit/f4bcdf4375
This commit is contained in:
aycabta 2020-08-18 12:38:07 +09:00
Родитель 172d44e809
Коммит 01b6c520f5
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -117,8 +117,7 @@ module TestIRB
with_temp_stdio do |stdin, stdout|
replace_stdio(stdin.path, stdout.path) do
bundle_exec = ENV.key?('BUNDLE_GEMFILE') ? ['-rbundler/setup'] : []
cmds = %W[ruby] + bundle_exec + %W[-W0 -rirb -e 'IRB.start(__FILE__)']
cmds = %W[ruby -Ilib:test -W0 -rirb -e 'IRB.start(__FILE__)']
yield(stdin, stdout)
stdin.close
system(cmds.join(' '))