pwwka 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pwwka/error_handlers/chain.rb +7 -3
- data/lib/pwwka/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20f161c71b101ed202be06bd7adbb5f437785192
|
4
|
+
data.tar.gz: 6d61eb0bf670f912a459c624d39532c4dd865c44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cb88f5c44a73f9f842a676f37c6a807255a7a26e2f9d396f04d62ce34f22dc8c4fbd61bf628b8831d0819b3ee2f9c2e317537ff67b3dc15c123dd67e602a6a6
|
7
|
+
data.tar.gz: d37f9d6d546e2ad54517242811a28ddf441328f613079e425638397c6a74ac1032560eab17952187fe4fcef7fbbfe9603094691708ea0ddfd8e0e398755fdfc0
|
data/Gemfile.lock
CHANGED
@@ -8,17 +8,21 @@ module Pwwka
|
|
8
8
|
@error_handlers = default_handler_chain
|
9
9
|
end
|
10
10
|
def handle_error(message_handler_klass,receiver,queue_name,payload,delivery_info,exception)
|
11
|
+
logf "${message_handler_klass} has received ${exception}", message_handler_klass: message_handler_klass, exception: exception.message
|
11
12
|
if message_handler_klass.respond_to?(:error_handler)
|
12
13
|
@error_handlers.unshift(message_handler_klass.send(:error_handler))
|
13
14
|
end
|
14
15
|
@error_handlers.reduce(true) { |keep_going,error_handler|
|
16
|
+
logf "%{error_handler_class} is being evaluated as part of pwwka's error-handling chain", error_handler_class: error_handler
|
15
17
|
if keep_going
|
16
18
|
keep_going = error_handler.new.handle_error(receiver,queue_name,payload,delivery_info,exception)
|
17
|
-
|
18
|
-
logf "%{error_handler_class} has
|
19
|
+
if keep_going
|
20
|
+
logf "%{error_handler_class} has asked to continue pwwka's error-handling chain", error_handler_class: error_handler
|
21
|
+
else
|
22
|
+
logf "%{error_handler_class} has halted pwwka's error-handling chain", error_handler_class: error_handler
|
19
23
|
end
|
20
24
|
else
|
21
|
-
logf "Skipping %{error_handler_class} as we were asked to abort
|
25
|
+
logf "Skipping %{error_handler_class} as we were asked to abort pwwka's error-handling chain", error_handler_class: error_handler
|
22
26
|
end
|
23
27
|
keep_going
|
24
28
|
}
|
data/lib/pwwka/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pwwka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stitch Fix Engineering
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2017-09-
|
18
|
+
date: 2017-09-23 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: bunny
|