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: dc821c2e70b59f02e5febdb06bf6806fc462a252
4
- data.tar.gz: 02a7fe3cca914b3e610eab2cc032a37ba5898b1a
3
+ metadata.gz: 189cb97dd17aea5bb76996ee2e0d9e69819e2631
4
+ data.tar.gz: c78987edbadf58cd4ab2faca31d538fa3843018d
5
5
  SHA512:
6
- metadata.gz: c647e7e74df4b27925cb1d5367226b6cc05fd397114e87a2a706db2c4c547eb1782581b88f7f69329c2822096cb14885c045a948b9e8442f9a4c5766a7d81839
7
- data.tar.gz: d46e89de6951783df889ef2f4b2a458ca1c5133b8642c7f4202f09aa9c418ede270268528b9849305134993a4b87a06feb88a6a3892fa4c748328fd93b6c6e3a
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(unknown_error, {:route => message.route, :payload => message.payload, :exchange_name => message.exchange_name, :options => message.options})
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
 
@@ -1,3 +1,3 @@
1
1
  module ActivePublisher
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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.1
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-09-24 00:00:00.000000000 Z
15
+ date: 2017-10-16 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bunny