activejob-retry 0.3.0 → 0.3.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
  SHA1:
3
- metadata.gz: e81c61b7e8ca2f2d5370d1e18535cc1c30a93caa
4
- data.tar.gz: 617790d33f2c4ceafaae57a3d9021a642086fdc7
3
+ metadata.gz: 649c90639e2a54249a33338f867d60e5c9cf0bb6
4
+ data.tar.gz: de4dd8cf45fb3d5eae88b50ff3d490883ec0e170
5
5
  SHA512:
6
- metadata.gz: 6b84443eca49518480e1750059f51ce6cca79c78b7d709dbb1e1d27a8ca8155a409d60122351671cbb6c4a823242ea120a024525b208ccdcf109aa4a56e7ecf6
7
- data.tar.gz: 2f81fb5b728b58c31456679e9a91a95cb9b056c630455c4eb0cf7e5e5502689dca28c74c760be899564c7105364f99b301713a18d536bcbbfd14b1d520c09db9
6
+ metadata.gz: 63d82e1e637b156b5a0cb9717622d6630761ce1f7a27d5c375a2d34c380b9373cc35f2fae020deee29d924ca0db8c48bf96b00074f1716b4df07836195ccca78
7
+ data.tar.gz: ec5f0eb4c07f3595bc6164d34028dcaa13fe8b2f27884764efb11c4b8fb689fea5ce3a1b229ef0258615212fb9c7469d8bf4dd51b9de8b6a6c644899678d4576
@@ -1,3 +1,7 @@
1
+ ## 0.3.1 - January 6, 2015
2
+
3
+ - Internal code tidy up
4
+
1
5
  ## 0.3.0 - January 6, 2015
2
6
 
3
7
  - `rescue_from` gets called only when all retries have failed, rather than before attempting to retry (patch by [@isaacseymour](https://github.com/isaacseymour)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activejob-retry (0.3.0)
4
+ activejob-retry (0.3.1)
5
5
  activejob (>= 4.2)
6
6
  activesupport (>= 4.2)
7
7
 
@@ -84,16 +84,10 @@ module ActiveJob
84
84
  ##########################
85
85
 
86
86
  # Override `rescue_with_handler` to make sure our catch is before callbacks,
87
- # so only run when the job is finally failing.
87
+ # so `rescue_from`s will only be run after any retry attempts have been exhausted.
88
88
  def rescue_with_handler(exception)
89
- retry_or_reraise(exception) || super(exception)
90
- end
91
-
92
- private
93
-
94
- def retry_or_reraise(exception)
95
89
  unless self.class.backoff_strategy.should_retry?(retry_attempt, exception)
96
- return false
90
+ return super
97
91
  end
98
92
 
99
93
  this_delay = self.class.backoff_strategy.retry_delay(retry_attempt, exception)
@@ -1,5 +1,5 @@
1
1
  module ActiveJob
2
2
  module Retry
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activejob-retry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Seymour