active_publisher 1.0.1 → 1.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 189cb97dd17aea5bb76996ee2e0d9e69819e2631
|
4
|
+
data.tar.gz: c78987edbadf58cd4ab2faca31d538fa3843018d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2e64b42274fa00b5c04c2d0cebecfd5d21580974c7abc3aa644fd47e168be0fa55955abbc621ede570ae87a107b98e719cfd045ed10bf01fc021751722f08b3
|
7
|
+
data.tar.gz: eb47ef5ea9227a571d64e57d0dfc8fdeb0bef287abeb5cbb504d462683ba5fb899d7089ee4d5556aa58e5296ecb5d5af65a0bc91269b86e6e1dee5a9b6756a69
|
@@ -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: ruby
|
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
|
name: bunny
|