rescue-retry 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 1d9182769a84d432b29f0d2999cf3c62faacfe6d
4
- data.tar.gz: 623972364f0ce7e2496d17d1cc365c39cd152ad3
3
+ metadata.gz: 66e2662a84e12fbe07e1514a9c4704838d1b9c0b
4
+ data.tar.gz: 4ffade576e2406db2fcd9e557cb84ae26a7ddf20
5
5
  SHA512:
6
- metadata.gz: a4f403fa12755cbae714cae66912023a476d52e0604452d27dd1453ff0b77665d4b84ca31e02b2b40852fddc46774cb03a20e835be69bb6c6d70c7de04e15e96
7
- data.tar.gz: 4f8ee2e17f7d1aab9e4ac235412e8d63f67ff4ae9adcc0fa3ea8e7c5a2b8e3b6394cf5752b4cb501e37222f496b86324cff6959e00f9a068ccdfa8433d67f9fd
6
+ metadata.gz: b6b85cc8d591e4c22becc3dfc266e55963a174d266f4ab7106f159569e62c89a6f00956428aceda3c8628964abb24a1afcf0f39306d8718225a3d36f1011f82c
7
+ data.tar.gz: 67d92ffe08733f0b7fad889991658127334eb057cc268c6ce5d3d4e0d17d7b2023cbad8dc8c14f0297be85bd0ae9b7292b39515244157989f75d53fa005717c9
@@ -33,7 +33,7 @@ module Rescue
33
33
 
34
34
  def log_attempt(e)
35
35
  logger.warn "Failed attempt (#{attempt} of #{max_attempts}) #<#{e.class.name}.#{e.message}>"
36
- logger.error "maximum attempts (#{max_attempts}) reached"
36
+ logger.error "maximum attempts (#{max_attempts}) reached" if max_attempts?
37
37
  end
38
38
 
39
39
  def max_attempts?
@@ -1,5 +1,5 @@
1
1
  module Rescue
2
2
  module Retry
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rescue-retry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - robert2d