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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c6f0e76a810de23c6e591a98a31eb7ce3e32154
4
- data.tar.gz: 57bcf2680d257941c2a2ee1f9d40d54bf9cd2459
3
+ metadata.gz: 20f161c71b101ed202be06bd7adbb5f437785192
4
+ data.tar.gz: 6d61eb0bf670f912a459c624d39532c4dd865c44
5
5
  SHA512:
6
- metadata.gz: e6cb91b83e0cca706cf901208c6efcab3ac82f10ef72fb907132d8c37c0c43516b0cf6ac6d26246c7fbac232c08d6f7d2b7c3c96a75191d08a3d68717e2573c0
7
- data.tar.gz: c7b97233ae42fd6008831bddd1716eaf31e48f10a61dc97ce7952958e3c9b991962ad80d2448e814b13abadfdab09ff8728836a14623657820f250277067078e
6
+ metadata.gz: 7cb88f5c44a73f9f842a676f37c6a807255a7a26e2f9d396f04d62ce34f22dc8c4fbd61bf628b8831d0819b3ee2f9c2e317537ff67b3dc15c123dd67e602a6a6
7
+ data.tar.gz: d37f9d6d546e2ad54517242811a28ddf441328f613079e425638397c6a74ac1032560eab17952187fe4fcef7fbbfe9603094691708ea0ddfd8e0e398755fdfc0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pwwka (0.13.0)
4
+ pwwka (0.13.1)
5
5
  activemodel
6
6
  activesupport
7
7
  bunny
@@ -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
- unless keep_going
18
- logf "%{error_handler_class} has halted to error-handling chain", error_handler_class: error_handler.class
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 previously", error_handler_class: error_handler.class
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
@@ -1,3 +1,3 @@
1
1
  module Pwwka
2
- VERSION = '0.13.0'
2
+ VERSION = '0.13.1'
3
3
  end
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.0
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-21 00:00:00.000000000 Z
18
+ date: 2017-09-23 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bunny