benchmark_driver 0.10.4 → 0.10.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/benchmark_driver/runner.rb +12 -1
- data/lib/benchmark_driver/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29781c7fadc0982ffc02bbaea62e2d88cccfae6dc1a939807056f115a12ea7e2
|
4
|
+
data.tar.gz: fba12d3c2952f5d86dc2214eb75d64d537a8aa3d56c972f9b391bbde98e4b846
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1917a259dc4c11ca13206909fbe42826162294a52dafc885df0008b40091e3c39cbc714e8180234ae435df93515eba2184d9e6b5b8e4aaf915b533702540c8c0
|
7
|
+
data.tar.gz: 249b7ca090c5a0299a6f9788e77edf8f203c84799f9f00eb589e800e0c6a6a4c679308399c9909a32dc65ebe0ac991647d0679bcd9ef65d4dd10bf5319f8bd65
|
data/CHANGELOG.md
CHANGED
@@ -32,7 +32,9 @@ module BenchmarkDriver
|
|
32
32
|
jobs: jobs,
|
33
33
|
executables: config.executables,
|
34
34
|
)
|
35
|
-
|
35
|
+
with_clean_env do
|
36
|
+
runner.new(config: runner_config, output: output).run(jobs)
|
37
|
+
end
|
36
38
|
end
|
37
39
|
end
|
38
40
|
|
@@ -47,5 +49,14 @@ module BenchmarkDriver
|
|
47
49
|
end
|
48
50
|
BenchmarkDriver.const_get("Runner::#{match[:namespace]}", false)
|
49
51
|
end
|
52
|
+
|
53
|
+
def with_clean_env(&block)
|
54
|
+
require 'bundler'
|
55
|
+
Bundler.with_clean_env do
|
56
|
+
block.call
|
57
|
+
end
|
58
|
+
rescue LoadError
|
59
|
+
block.call
|
60
|
+
end
|
50
61
|
end
|
51
62
|
end
|