lib/benchmark/driver.rb in benchmark_driver-0.7.0 vs lib/benchmark/driver.rb in benchmark_driver-0.7.1

- old
+ new

@@ -17,10 +17,17 @@ validate_config(config) if config.runner_options.type.nil? config.runner_options.type = runner_type_for(config) end + if config.runner_options.bundler + config.runner_options.executables.each do |executable| + Benchmark::Driver::BundleInstaller.bundle_install_for(executable) + executable.command << '-rbundler/setup' + end + end + runner_class = Runner.find(config.runner_options.type) output_class = Output.find(config.output_options.type) missing_fields = output_class::REQUIRED_FIELDS - runner_class::SUPPORTED_FIELDS unless missing_fields.empty? @@ -86,8 +93,9 @@ end end require 'benchmark/output' require 'benchmark/runner' +require 'benchmark/driver/bundle_installer' require 'benchmark/driver/error' require 'benchmark/driver/ruby_dsl_parser' require 'benchmark/driver/version'