rjob 0.5.4 → 0.5.5

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: a449a71e4bc05ab0aa01d605cfd96ef3e1133377829750749c2c8cf0759a11d2
4
- data.tar.gz: 0fbe17674cc2dbb924c85b431a0160afc85eee4cc9598923c2bf6c61a5af9530
3
+ metadata.gz: 1de4a3b3e8be5af5e5f17b5c569c3851b9ed5c7ee94cd38fc7d7b61b1f6035ea
4
+ data.tar.gz: 5bc34fa2eee95a23a667c21c5373318e48e16eaa559f123b05d41be3525ac9a1
5
5
  SHA512:
6
- metadata.gz: b3079717e2b8cf013a383b4026794af68c2b52aece9633be7bc1aa3880161091b78dd4a9d717754a0e61de1cfe6492969ab2bd92781c948beb03cda7258c3a7e
7
- data.tar.gz: 3a7578b5135a1b7932e6c88b40111bf529068b950f71497ea423a1ae85d3ee502cca5e505bd1a2bafadaa34378e71a7fb970e0c54d963c53566f0a9625cd21f9
6
+ metadata.gz: de1b0664b64a4503cc525be2c37e5abc200f0b92505100917f1aacdffb16a5a68f7f708e90abf64a0fd07530afb72c44a16aee64e9fd192706529af768cf7391
7
+ data.tar.gz: b37d75d2595f979ce02f8279fbd38a4ccea283e4baaeee303402a969424c473567e907c581302a6f826f02a765570bfd4f200d043485a5825327f8bcb0bb1ca0
data/lib/rjob/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Rjob
3
- VERSION = "0.5.4".freeze
3
+ VERSION = "0.5.5".freeze
4
4
  end
@@ -255,6 +255,10 @@ class Rjob::WorkerProcess
255
255
  retry_options = job.worker_class.retry_options
256
256
 
257
257
  if retry_options[:retry]
258
+ if retry_options[:retry].is_a?(Hash)
259
+ retry_options = retry_options.merge(retry: true).merge(retry_options[:retry])
260
+ end
261
+
258
262
  exceptions = retry_options.fetch(:exceptions, [StandardError])
259
263
  should_handle = exceptions.any? { |e| e >= error[:error_class] }
260
264
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rjob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - André D. Piske