tlopo-retry 0.2.0 → 0.2.1

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: d1961dc0719a0297e1278860e12db653b0fe5aa716c2bd15d84980527936f336
4
- data.tar.gz: 702278c529f45dc6603adc85595d26c6e78ba0063410b29fcf29cb19d06f4e98
3
+ metadata.gz: c5d201e6c8d67ea6bc801ba62be423bf888a93e8b88606879d49c5e6df919d06
4
+ data.tar.gz: ed2edc439b49c1cf77a528fdab021df1d61f4d5416d912d26e40f6e8fd2b086c
5
5
  SHA512:
6
- metadata.gz: 95dc121f19785b8b447f173181761c028506e755f7b823c38b8f40e9e0e1b37b33dd49ba5a778dc5b06f9ac3f47928191ef6a37d1c93fd75c2df5e5971c4d28c
7
- data.tar.gz: e2c482b9f7fc3d6f636dcb2e1e79e5d193d833419597ff2b92b71ea6298535ba09fc507a58ea7803f136e2452df6ff4819c9aa84701d0298c7adf74c192dad11
6
+ metadata.gz: bb2887d2c94a1393dd7c1a03a26cfb113a5ae8ba723b9b1281d02141da234e440c657e2e6abd57931c7284b61ef3ba4e20b82df5fd44e50c3cdac26550d8f8f7
7
+ data.tar.gz: cecea3b2504c18e65fafb35eebb5ba7b6dacb54ea9aed82e90e0844737f690765ded6fb9a3c6a93b1ddb49d5486f0da9ac324d56a19fe83f56cb29b4d3da32c4
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Tlopo
4
4
  class Retry
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
data/lib/tlopo/retry.rb CHANGED
@@ -37,9 +37,9 @@ module Tlopo
37
37
  begin
38
38
  return instance_eval(&block)
39
39
  rescue *@error_types => e
40
- count += 1
41
40
  time = @exponential_backoff ? @interval**count : @interval
42
41
  sleep time
42
+ count += 1
43
43
  e
44
44
  end
45
45
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tlopo-retry
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
  - tlopo