evt-retry 1.0.0.2 → 1.0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/retry/retry.rb +5 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7316cfe64027a436dfc2969456b8da952aa773363207620a1639c3adfe56b960
4
- data.tar.gz: 1074acc961ead4cad26512f6745601322b6c3d99660e9197e72e93425fa0633d
3
+ metadata.gz: a0bf81be4f5051ce164a121ffc0830aecac9b904b64577d47cb22aec99e5b4f8
4
+ data.tar.gz: ea5ab6fbab82ae872213725a4439077e63d3b3d759e4c0190d8d3b1561cd482d
5
5
  SHA512:
6
- metadata.gz: acb34ece5bfb414b6ad93a45de55139fe39de2a2d8be78feca5db03a1b82b1905b384038230ebef932549ef474c1e9edc1299a16ae2b92e5284f89a2bd2c4918
7
- data.tar.gz: 7939990d5e3d50d09c20b0f799ed6f876c9b7b54bcb72d9ea58ab124419eae5a21b48cc661679a90e0c67a3a1425662209cb2644e814baa666024a22e7dd2a77
6
+ metadata.gz: 4e6a40c6bf9fb292da8c6cb6a01cfb82f28d028f4b2ff15d4c66baac465faa1dc6dc103381fc97d37cfc1679c7d4bbc69a7f08b8314d1356446f97ab51af616d
7
+ data.tar.gz: a194cf331d4ea766034ed66cd085a862a0c93df14543817d611c71d2591ec7cc03ead3dca03e080abd2d2876744952d499e60341b4df7554bb7e40698f56888c
@@ -55,13 +55,16 @@ class Retry
55
55
  break
56
56
  end
57
57
 
58
- interval = intervals.next rescue nil
58
+ interval = nil
59
+ Try.(StopIteration) do
60
+ interval = intervals.next
61
+ end
59
62
 
60
63
  logger.debug { "Attempt failed (Cycle: #{cycle}, Error: #{error.class.name})" }
61
64
  telemetry.record :failed, Retry::Telemetry::Data::Failed.new(cycle, error.class, interval)
62
65
 
63
66
  if interval.nil?
64
- logger.debug { "No more attempts. Intervals depleted." }
67
+ logger.debug { 'No more attempts. Intervals depleted.' }
65
68
  break
66
69
  end
67
70
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-retry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.2
4
+ version: 1.0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-22 00:00:00.000000000 Z
11
+ date: 2019-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-try