exp_retry 0.0.10 → 0.0.11

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: 478f3730c0066f80c4299dfaab7e4da27fd681386e3ffc5bb97b3f9f67717e40
4
- data.tar.gz: 78ccc9dbedcb20e4128d3327ae344e5fa2c6eaaf914a5a37ac4e337fc2c907e2
3
+ metadata.gz: 9850572e1bc83790a190b3a1dceefe49aa5347446baff1dedaba4153e9db44a5
4
+ data.tar.gz: 49ec726f23195038cffcec915327332376143f7fd8a3174d52f654959ade8d0b
5
5
  SHA512:
6
- metadata.gz: 6ec84ab84ca800bed992be7efdd5e21a7054b3d87f6855fbdd1b11845a755ee72d8cd4a91eaf0a4ce53b9192093697f25e45e6ddf7bf3bdca403167ae27576ff
7
- data.tar.gz: d159d8dd4355a4447d50ef5f38f627022f3d25329f3c6d7e9cb71b636b76950d720e050473ac0be18dfede165a6596af58e02b944f38bf804f96949a7426cce8
6
+ metadata.gz: 32a086e6cf019fd5ff1bacffbac83158b7dded1c50ace23933fbcc1a65090adba06008fecdf798a44a6c5a70eee9778e3e519d3c15732234a870277c0989a4f3
7
+ data.tar.gz: 4ff08790d9a50336a95eea5fe206cf9fcd83fbe6dd81a624ab27a1baee085b680d1c2ff03a137e0c7ece69b65a0fdc22d1f89367739ca5c7b4e6cc80a82fd5e1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- exp_retry (0.0.10)
4
+ exp_retry (0.0.11)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/exp-retry.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'exp_retry'
3
- s.version = '0.0.10'
3
+ s.version = '0.0.11'
4
4
  s.date = '2019-06-15'
5
5
  s.summary = 'Exponential backoff retry'
6
6
  s.description = 'A simple exponential backoff retry wrapper.'
data/lib/exp_retry.rb CHANGED
@@ -32,8 +32,7 @@ class ExpRetry
32
32
 
33
33
  def delay(exception)
34
34
  output = "*** #{exception}. Retrying in #{2**@retried} seconds..."
35
- output = '-' if @verbose
36
- puts output
35
+ @verbose ? puts(output) : print('-')
37
36
  sleep 2**@retried
38
37
  end
39
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exp_retry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Fiander