lib/benchmark_driver/runner.rb in benchmark_driver-0.14.8 vs lib/benchmark_driver/runner.rb in benchmark_driver-0.14.9

- old
+ new

@@ -52,9 +52,14 @@ return executables.map { |exec| BenchmarkDriver::Context.new(name: exec.name, executable: exec) } end + with_executables, without_executables = contexts.partition { |context| context.name && context.executable } + with_executables + build_contexts_with_executables(without_executables, executables) + end + + def build_contexts_with_executables(contexts, executables) # Create direct product of contexts contexts.product(executables).map do |context, executable| name = context.name if name.nil? # Use the first gem name and version by default