def_retry 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/def_retry/retrier.rb +1 -1
- data/lib/def_retry/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f24f1f078d42c8760e1ad7271bf19dcb18b175d7
|
4
|
+
data.tar.gz: a906bbe5d8d2801d2a7d367dc4d0655d9847a56e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1724311024ddbdb768b46b241b749fa75485e611a4a49dc0acc52c01beff94a8d9544a1c6bb1fb3e6d2a0ba3257152a2e24d160990e9c6def463d64734ed4e1a
|
7
|
+
data.tar.gz: f4cd416dafca7aba366198742c8b1c3961074316e9aaeecac94f29e21be0f79913b304a24cec581cda305f3e9d16e94c0f6a2fec3dbc876889b88a265d2a26fc
|
data/lib/def_retry/retrier.rb
CHANGED
@@ -49,7 +49,7 @@ module DefRetry
|
|
49
49
|
private
|
50
50
|
|
51
51
|
def run_sleep_strategy
|
52
|
-
seconds = [(@sleep.respond_to?(:call) ? @sleep.call(@try_count) : @sleep)
|
52
|
+
seconds = [(@sleep.respond_to?(:call) ? @sleep.call(@try_count) : @sleep).to_i, 1].max
|
53
53
|
sleep seconds
|
54
54
|
end
|
55
55
|
end
|
data/lib/def_retry/version.rb
CHANGED