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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 451112f3dbe8393c736026ac99ad74523ae88f8d2c0396872d50200890a3dc5c
4
- data.tar.gz: 9bbb2356cf2d6da48a30182213d7743848b3152fec18260b2afbf65d8861c1a6
3
+ metadata.gz: 29781c7fadc0982ffc02bbaea62e2d88cccfae6dc1a939807056f115a12ea7e2
4
+ data.tar.gz: fba12d3c2952f5d86dc2214eb75d64d537a8aa3d56c972f9b391bbde98e4b846
5
5
  SHA512:
6
- metadata.gz: 666ab1723f695724dd566787abac6634f93efdbaa2bf47f3a9e979c02816af638a92e35ed0c03df54cf1aecee679296e0f3949897532db8bd1c0b0a1b6b03d2c
7
- data.tar.gz: e4e6706b30487f84e33fae49ff66c13595f2a323da24b7842af7d8f3891bee8e6a954e41eb645a961eba7b20d3e43d13c55168a43f6b3829dbf4c7e82f5c740d
6
+ metadata.gz: 1917a259dc4c11ca13206909fbe42826162294a52dafc885df0008b40091e3c39cbc714e8180234ae435df93515eba2184d9e6b5b8e4aaf915b533702540c8c0
7
+ data.tar.gz: 249b7ca090c5a0299a6f9788e77edf8f203c84799f9f00eb589e800e0c6a6a4c679308399c9909a32dc65ebe0ac991647d0679bcd9ef65d4dd10bf5319f8bd65
@@ -1,3 +1,7 @@
1
+ # v0.10.5
2
+
3
+ - Run runners with Bundler's clean env
4
+
1
5
  # v0.10.4
2
6
 
3
7
  - Fix frozen string error when parsing multiple jobs
@@ -32,7 +32,9 @@ module BenchmarkDriver
32
32
  jobs: jobs,
33
33
  executables: config.executables,
34
34
  )
35
- runner.new(config: runner_config, output: output).run(jobs)
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
@@ -1,3 +1,3 @@
1
1
  module BenchmarkDriver
2
- VERSION = '0.10.4'
2
+ VERSION = '0.10.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benchmark_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.4
4
+ version: 0.10.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun