lib/benchmark_driver/config.rb in benchmark_driver-0.15.4 vs lib/benchmark_driver/config.rb in benchmark_driver-0.15.5

- old
+ new

@@ -1,7 +1,8 @@ require 'benchmark_driver/struct' require 'rbconfig' +require 'shellwords' module BenchmarkDriver # All CLI options Config = ::BenchmarkDriver::Struct.new( :runner_type, # @param [String] @@ -54,8 +55,8 @@ def version @cache[:version] ||= IO.popen([*command, '-e', 'print RUBY_VERSION'], &:read) end end Config.defaults[:executables] = [ - BenchmarkDriver::Config::Executable.new(name: RUBY_VERSION, command: [RbConfig.ruby]), + BenchmarkDriver::Config::Executable.new(name: RUBY_VERSION, command: [RbConfig.ruby, *ENV.fetch('RUBYOPT', '').shellsplit]), ] end