benchmark_driver 0.15.4 → 0.15.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e1de81880906b67ef69b2e781756531ebc8431f275eac134fec0d28d36c8759
4
- data.tar.gz: 74336d96b5b4995cc5f6dedeaaffe46ff591f2a89ce8e9538608554a612b19f9
3
+ metadata.gz: beb0377c96cdfaa00e69ee6b4d3048d77f6940eb694c70bea84fef313343a819
4
+ data.tar.gz: 6fd6f70f8b99ddf8218c29dda98eae140439c45853d47c53477c5b50332ddf34
5
5
  SHA512:
6
- metadata.gz: 2f6b18dfbe8030c56c451937ec6c7cd56541f2260047cd20069b7ebe554991827252a61afb2725b5742e031d38a5601daeb9d8a27e450b18be5d3ea0e0dd8acf
7
- data.tar.gz: e8060964a5f2019c86baed5fdb42a50bb61e84efe79d545da8fd684d7f62fbae716a61dcdf42ff1b5c6a35118d96847dab3b1265eb73f2b7cfb1861670c7c566
6
+ metadata.gz: b0c141f321f026439086195bdf058fd499b48350f02d3aa2be8d895db01ff6a44ebc13a4c80d091e1c1d25a792498bfec2f6dbf186bb8cd20f3c4d8b1d0fda0d
7
+ data.tar.gz: b1cace3d4d48f7c832c72ce8d550ed17c8b7b3b5659cc8e0e51e2a995f9dbfcffe9bed00dd8961e17bbcfba77e42c307e5790531d88164c69e74199211562fe5
@@ -17,4 +17,4 @@ before_install:
17
17
  - gem install haml -v 4.0.7
18
18
  - gem install haml -v 5.0.4
19
19
  script:
20
- - RSPEC_RETRIES=3 VERBOSE=1 bundle exec rake
20
+ - VERBOSE=1 bundle exec rake
@@ -1,3 +1,10 @@
1
+ # v0.15.5
2
+
3
+ - Propagate `RUBYOPT` to a runner process when executables are not specified
4
+ - This effectively propagates `bundle exec` to child processes
5
+ - Fix unused variable warning in `benchmark_driver/ridkuse.rb`
6
+ - Fix keyword argument warnings for Struct in Ruby 2.7
7
+
1
8
  # v0.15.4
2
9
 
3
10
  - Avoid showing error messages by CLI's rbenv check introduced in v0.15.0
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rspec/core/rake_task'
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec) do |t|
5
5
  t.ruby_opts = %w[-w]
6
- t.rspec_opts = %w[--profile]
7
6
  end
7
+ ENV['RSPEC_RETRIES'] ||= '3'
8
8
 
9
9
  task default: :spec
@@ -1,5 +1,6 @@
1
1
  require 'benchmark_driver/struct'
2
2
  require 'rbconfig'
3
+ require 'shellwords'
3
4
 
4
5
  module BenchmarkDriver
5
6
  # All CLI options
@@ -56,6 +57,6 @@ module BenchmarkDriver
56
57
  end
57
58
  end
58
59
  Config.defaults[:executables] = [
59
- BenchmarkDriver::Config::Executable.new(name: RUBY_VERSION, command: [RbConfig.ruby]),
60
+ BenchmarkDriver::Config::Executable.new(name: RUBY_VERSION, command: [RbConfig.ruby, *ENV.fetch('RUBYOPT', '').shellsplit]),
60
61
  ]
61
62
  end
@@ -4,7 +4,7 @@ require 'shellwords'
4
4
  module BenchmarkDriver
5
5
  module RidkUse
6
6
  # Execute "ridk use list" command to get a list of Ruby versions.
7
- #
7
+ #
8
8
  # * "ridk use list" is a sub-command of ridk. It returns a list of installed ruby ​​versions.
9
9
  # * "ridk" is a helper command tool of RubyInstaller2 for Windows, that to manage the runtime environment of RubyInstaller-2.4 and up.
10
10
  #
@@ -15,7 +15,7 @@ module BenchmarkDriver
15
15
  ruby_list = []
16
16
  regex = /(\d+)\s-\s([^\s]+)\s\truby\s([^\s]+)\s/
17
17
  cmd = "ridk use list"
18
- stdout, status = Open3.capture2e(cmd)
18
+ stdout, _status = Open3.capture2e(cmd)
19
19
 
20
20
  stdout.each_line do |line|
21
21
  if matched = regex.match(line)
@@ -27,7 +27,7 @@ module BenchmarkDriver
27
27
  end
28
28
  Hash[*ruby_list]
29
29
  end
30
-
30
+
31
31
  # @param [String] version
32
32
  def self.ruby_path(version)
33
33
  ruby_list = BenchmarkDriver::RidkUse.ridk_use_list
@@ -41,7 +41,7 @@ class BenchmarkDriver::Runner::Ips
41
41
  end
42
42
 
43
43
  loop_count = (loop_count.to_f * @config.run_duration / duration).floor
44
- Job.new(job.to_h.merge(loop_count: loop_count))
44
+ Job.new(**job.to_h.merge(loop_count: loop_count))
45
45
  end
46
46
  end
47
47
  end
@@ -40,7 +40,7 @@ class BenchmarkDriver::Runner::Memory
40
40
 
41
41
  if jobs.any? { |job| job.loop_count.nil? }
42
42
  jobs = jobs.map do |job|
43
- job.loop_count ? job : Job.new(job.to_h.merge(loop_count: 1))
43
+ job.loop_count ? job : Job.new(**job.to_h.merge(loop_count: 1))
44
44
  end
45
45
  end
46
46
 
@@ -27,7 +27,7 @@ class BenchmarkDriver::Runner::Once
27
27
  # @param [Array<BenchmarkDriver::Default::Job>] jobs
28
28
  def run(jobs)
29
29
  jobs = jobs.map do |job|
30
- Job.new(job.to_h.merge(loop_count: 1)) # to show this on output
30
+ Job.new(**job.to_h.merge(loop_count: 1)) # to show this on output
31
31
  end
32
32
 
33
33
  @output.with_benchmark do
@@ -1,3 +1,3 @@
1
1
  module BenchmarkDriver
2
- VERSION = '0.15.4'
2
+ VERSION = '0.15.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benchmark_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.4
4
+ version: 0.15.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-07 00:00:00.000000000 Z
11
+ date: 2019-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler