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: a934911083f4ab8c040802a00a0b5e7c705291b9
4
- data.tar.gz: 2187f2189f1bd5d2dd849ff6d785fba1e9b117bc
3
+ metadata.gz: 29daf51dd83541cf6f5910ee716a393723a74a9b
4
+ data.tar.gz: e7c1ce016280bec2013be802b15fa1288fe301b8
5
5
  SHA512:
6
- metadata.gz: 274e746c7bcd7dcff645b611e127567e299d955ecdd4d1450dc2bbf5291415a8146a13c8d27beb595c2c79952088d57efd6ef17eaaae9b374bd074affdff9b41
7
- data.tar.gz: edf1eb6797dd0e82b8fa6891a187861ab3fac1c0aa8284606ef3907c91bfc48cf797ad793392066b01d49226329be686baa72a4d6934fd249b172db84f8646a1
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(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: 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-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
  requirement: !ruby/object:Gem::Requirement