block_repeater 0.2.0 → 0.3.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/block_repeater/repeater.rb +2 -2
- data/lib/block_repeater/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9eb254f9b3cc31e89dcb02d9df2b8bbe427b96b642cb14e293d05ff3b2da1200
|
|
4
|
+
data.tar.gz: a360aacd3781b60724ac47854eb897bfc1bbc749e246e76b6cf13f6f7ebb2f12
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8699bfd292493fb33fb07241c38b871448c2c9cf76f28062d391eecf7804fbbf6455b1dbf2ed36ca4b8c795358f8691834fd0a825a1fe8b67d3d42f33aadec7c
|
|
7
|
+
data.tar.gz: a9bac7eaf904093e1691e564ec230cab1c71bcdcb8d36a87958efacefd70f7e9bf5faa04e6e423ba513c32b6b1e45e39b84af7ecbbabdc8682f208f7af1211ec
|
data/Gemfile.lock
CHANGED
|
@@ -29,7 +29,7 @@ module BlockRepeater
|
|
|
29
29
|
# @param delay - The amount of time to wait between each attempt
|
|
30
30
|
# @param **_ - Capture any extra keyword arguments and discard them
|
|
31
31
|
# @return The result of calling the main block the final time
|
|
32
|
-
def repeat(times: 25, delay: 0.2
|
|
32
|
+
def repeat(times: 25, delay: 0.2)
|
|
33
33
|
result, @condition_met, exception = nil
|
|
34
34
|
times.times do
|
|
35
35
|
result = @repeat_block.call
|
|
@@ -60,7 +60,7 @@ module BlockRepeater
|
|
|
60
60
|
if @manual_repeat
|
|
61
61
|
self
|
|
62
62
|
else
|
|
63
|
-
repeat
|
|
63
|
+
repeat **@repeater_arguments
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
66
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: block_repeater
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- William Bray
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-11-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bump
|