active_publisher 1.0.1-java → 1.0.2-java
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29daf51dd83541cf6f5910ee716a393723a74a9b
|
4
|
+
data.tar.gz: e7c1ce016280bec2013be802b15fa1288fe301b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3c29103626d31e301a476c553142aa3833cb3a84883c722b11b087986f5b5e07a0884eb36316d0d603c0d5586e93e7ce950812697eaef1cfaab7cc24e88abdc
|
7
|
+
data.tar.gz: 1aa0d3cfacfaba517fb8e296adf2d1f5dcb87f0b0eafa6d8a123a8529170d413c2ca7b08b1ed1ec056a503edda65739c9b9ae16622f223939337223eadd932f5
|
@@ -68,12 +68,13 @@ module ActivePublisher
|
|
68
68
|
# Requeue and try again.
|
69
69
|
queue.concat(current_messages)
|
70
70
|
rescue => unknown_error
|
71
|
+
::ActivePublisher.configuration.error_handler.call(unknown_error, {:number_of_messages => current_messages.size})
|
71
72
|
current_messages.each do |message|
|
72
73
|
# Degrade to single message publish ... or at least attempt to
|
73
74
|
begin
|
74
75
|
::ActivePublisher.publish(message.route, message.payload, message.exchange_name, message.options)
|
75
|
-
rescue
|
76
|
-
::ActivePublisher.configuration.error_handler.call(
|
76
|
+
rescue => individual_error
|
77
|
+
::ActivePublisher.configuration.error_handler.call(individual_error, {:route => message.route, :payload => message.payload, :exchange_name => message.exchange_name, :options => message.options})
|
77
78
|
end
|
78
79
|
end
|
79
80
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_publisher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Brian Stien
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: exe
|
14
14
|
cert_chain: []
|
15
|
-
date: 2017-
|
15
|
+
date: 2017-10-16 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|