lib/benchmark_driver/runner.rb in benchmark_driver-0.14.17 vs lib/benchmark_driver/runner.rb in benchmark_driver-0.14.18

- old
+ new

@@ -90,9 +90,14 @@ end BenchmarkDriver.const_get("Runner::#{match[:namespace]}", false) end def with_clean_env(&block) + unless defined?(Gem) + # default-gem Bundler can be loaded and broken with --disable-gems + return block.call + end + require 'bundler' if Bundler.respond_to?(:with_unbundled_env) Bundler.with_unbundled_env do block.call end