cobench 0.0.41 → 0.0.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/cobench +2 -1
  3. data/lib/cobench/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7f07c51df659224ffeaa6c55023f000f8af7cfe12fb8f7a24fbd3cf69dc3438
4
- data.tar.gz: eea449cfe913d636469f3f7db54573cbd21ea8a9319ee09e1b83c30c5e52f853
3
+ metadata.gz: e3f6075e885b8ae6592e440f2b0c5bcbc702ddae8a4738a959585d155c71af50
4
+ data.tar.gz: 4835fba74c1b7153c23d39f69f8c3751a13e2ee717905193bc8985d9c7487a91
5
5
  SHA512:
6
- metadata.gz: 9b0ebc5915261c0fe6f4fb53eb7f710cc14feb7339d42bcebc3857c5a10ab59c6bd1fb510f2a3b6726d175302483b26e416d38fa426f2f62d0b461ef85a04ff0
7
- data.tar.gz: ae97ec2ae2f982e70a5c59a80579361921a1ca15f391eedfef9bc824ac56443cacf2a84c6a0196667946ed893d1892936f9e163c91d29d27eeeb94ff63293fd4
6
+ metadata.gz: feb3e7c23bf53bb06016c980e4a15fbe36981457cd67586efa2dc464c14a4a196ce7fa136053347adda6c360591690fc5b1f36110b43537522ff0e511cbb7ce1
7
+ data.tar.gz: 5329e4bcff3b33bd5f3596b08e3663d2b765fcce5f950f383f60bf42d0b435202b72f44ecfaa7ea19ca0633bd3e1c293aeb4ede602ff412677bcd905e473e2f4
data/bin/cobench CHANGED
@@ -82,7 +82,8 @@ end
82
82
 
83
83
  def zero?(ms)
84
84
  return true if ms.nil?
85
- return true unless ms.key?(:actual)
85
+ return true if ms[:total] == 0
86
+ return true if ms.key?(:actual) && ms[:actual] == 0
86
87
  false
87
88
  end
88
89
 
@@ -23,5 +23,5 @@
23
23
  # Copyright:: Copyright (c) 2022 Yegor Bugayenko
24
24
  # License:: MIT
25
25
  module Cobench
26
- VERSION = '0.0.41'.freeze
26
+ VERSION = '0.0.42'.freeze
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cobench
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.41
4
+ version: 0.0.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-27 00:00:00.000000000 Z
11
+ date: 2022-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: backtrace