timers 4.3.4 → 4.3.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: 6aaa0d481ea83db607add1809f3f5d96b085bddf5bda6fa17165c18316c4c527
4
- data.tar.gz: 8995d8268bd1c49b047e0fe0d1bf252d8c943962d05eee4026601b952cacc339
3
+ metadata.gz: e7c61c9db77955d85c69ca83499add3629c71628af3a825d78978b2383182b4a
4
+ data.tar.gz: 27f570753d83d4b4a98ee6ede089908d571347df8ba411edb56fe4ae965e703c
5
5
  SHA512:
6
- metadata.gz: 3d5a69bc7f7e32e02365476d9a25e97dbe72c572497874356603554ecc28f5ee88821af1a2bfd4239a232f0d7a9ef0048c45a1909eefa7faae3619c51c3ec87a
7
- data.tar.gz: 6521553ef5271c9191aa0dc4f23a65c3eb776293273784e46597bda0a92ae0d97aa915e4f9c25869b8923f516fe23ed2bf389abf34e1cb76ac6f5484d6d927da
6
+ metadata.gz: a7bac196cc0e3e1a784f7ba961c4a09539c875f80ac366da0b0d091d9f6ad1a505fb0a86a0c9d61d44a3495342029d003749b3ac072904b37f667d8e6e90b356
7
+ data.tar.gz: 4fa05113f72aef3abe63804a097e7fd9322c5b84a2a9ad14d590906e3ca59754857378a085388c52f9eb7ef1beb934b6b75789c3c087eee0b900f3446ace7207
checksums.yaml.gz.sig CHANGED
Binary file
@@ -70,16 +70,16 @@ module Timers
70
70
  return self
71
71
  end
72
72
 
73
- # Empties out the heap, discarding all elements
73
+ # Empties out the heap, discarding all elements
74
74
  def clear!
75
- @contents = []
76
- end
75
+ @contents = []
76
+ end
77
77
 
78
78
  # Validate the heap invariant. Every element except the root must not be smaller than
79
- # its parent element. Note that it MAY be equal.
79
+ # its parent element. Note that it MAY be equal.
80
80
  def valid?
81
- # notice we skip index 0 on purpose, because it has no parent
82
- (1..(@contents.size - 1)).all? { |e| @contents[e] >= @contents[(e - 1) / 2] }
81
+ # notice we skip index 0 on purpose, because it has no parent
82
+ (1..(@contents.size - 1)).all? { |e| @contents[e] >= @contents[(e - 1) / 2] }
83
83
  end
84
84
 
85
85
  private
@@ -6,5 +6,5 @@
6
6
  # Copyright, 2015, by Donovan Keme.
7
7
 
8
8
  module Timers
9
- VERSION = "4.3.4"
9
+ VERSION = "4.3.5"
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timers
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.4
4
+ version: 4.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
@@ -67,7 +67,7 @@ cert_chain:
67
67
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
68
68
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
69
69
  -----END CERTIFICATE-----
70
- date: 2022-09-02 00:00:00.000000000 Z
70
+ date: 2022-10-12 00:00:00.000000000 Z
71
71
  dependencies:
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: bundler
metadata.gz.sig CHANGED
Binary file