benchmark-sweet 0.2.0 → 0.2.1

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: '058103ce3e7d6b2022ecee07bd379f3bb19020d711cb1c5676509957d30b07a1'
4
- data.tar.gz: 0b66514a2d1ac2918a8980027452b72158363717a01cf293aa3ba69b55737956
3
+ metadata.gz: 0664b6e861a5c1627554264b942f758c6be5c5168f61fb86592a093b67818021
4
+ data.tar.gz: ed985db22ce7b3a7e6df81d1e3b1cb2e6216b869ef1c1e36f1f9ca55a1d9b187
5
5
  SHA512:
6
- metadata.gz: d44471dd676ea056f594fc8b50881eaa3dce9d7fa166f620b7bd52d0f7c3e653ed666f854e0ac4f128f64bc97bc587149c5b4e1e4bb98656cdfdbb1cbeb47fa0
7
- data.tar.gz: 1e79bac462dc7c3a796666d01509fc7dadda089c14002e217557a4282751fff15795da14f5f0b5c1680971c7678910b449062fcf29f36109859ffd10986d7d1b
6
+ metadata.gz: c910b55cbf76d5b145ccef4c48b833c3baae48f3e36d6ee91ca902f2927124ebca4b58f6237a6fc44fc2e035bc80da60709006ff0a48eace348d810c96d36dd8
7
+ data.tar.gz: 797ec9ed5b8ee09fa28f3325df1e4386cc0a4df3b739c06ed7cdc822bf149bf6d63953ca6b037c901524e7593f780483cdf04a0048535cfbeab1d047c9197d97
@@ -12,6 +12,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
12
12
 
13
13
  ### Fixed
14
14
 
15
+ ## [0.2.1] - 2020-06-24
16
+
17
+ ### Fixed
18
+ - support increase of infinity
19
+
15
20
  ## [0.2.0] - 2020-05-11
16
21
 
17
22
  ### Added
@@ -32,5 +37,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
32
37
  ### Added
33
38
  - good stuff
34
39
 
35
- [Unreleased]: https://github.com/kbrock/benchmark-sweet/compare/v0.2.0...HEAD
40
+ [Unreleased]: https://github.com/kbrock/benchmark-sweet/compare/v0.2.1...HEAD
41
+ [0.2.1]: https://github.com/kbrock/benchmark-sweet/compare/v0.2.0...v0.2.1
36
42
  [0.2.0]: https://github.com/kbrock/benchmark-sweet/compare/v0.0.1...v0.2.0
@@ -42,7 +42,11 @@ module Benchmark
42
42
  end
43
43
 
44
44
  def worst?
45
- @worst ? stats.overlaps?(@worst) : (total.to_i - 1 == offset.to_i) && slowdown.to_i > 1
45
+ if @worst
46
+ stats.overlaps?(@worst)
47
+ else
48
+ slowdown == Float::INFINITY || (total.to_i - 1 == offset.to_i && slowdown.to_i > 1)
49
+ end
46
50
  end
47
51
 
48
52
  def slowdown
@@ -1,5 +1,5 @@
1
1
  module Benchmark
2
2
  module Sweet
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benchmark-sweet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keenan Brock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-22 00:00:00.000000000 Z
11
+ date: 2020-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler