jackhammer 0.2.1 → 0.2.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
  SHA256:
3
- metadata.gz: 46a31cd93fed4db774639c0d474a2fe4a41420949da151f5119d53e7a85c5b41
4
- data.tar.gz: e00e713c8afec2cef5ac065ab1e4b124e029ccc0b5cad70536348afff7aa5447
3
+ metadata.gz: 8ec005b8f248bfbb4cf93561e10f3d38a0f604a1d87e32ad2e0710fbebac5036
4
+ data.tar.gz: e70265345c4420a092e66ed72014a5b8cd59a9762edd548db47f6bd18ce84088
5
5
  SHA512:
6
- metadata.gz: 54a8ba65202747405d7498d4646142dda5ba7c68f1d194ddf71cfe4051792e5471197ac9048df72f163a60586500253af152bbe6be60a6bb51c82557b70b3569
7
- data.tar.gz: abd41ade454db3507000f5a0dfe8b32e907934769225971e0f250c4b5f48a1d4e69864d98a58406d65c8b3e92b76716838ae5d1b8aea34192090206e29268708
6
+ metadata.gz: 76915ab01ef1ae991db88c358810e164f8026493eb6f30855764a5814b1602f9bef5671f636b96b828cea86ff84a971d29b6f833e95bf13b42b476a9f4cbbd52
7
+ data.tar.gz: 4f24dc8fb7da4362d3caf25129f617cb70c2af77e7e47ced3f8b6b21b31e70d2cd718f140dd0af9d1b2595fc8b1a3bfb826c549a3426320386e80a2eed806ea4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jackhammer (0.2.1)
4
+ jackhammer (0.2.2)
5
5
  bunny (~> 2.14)
6
6
 
7
7
  GEM
@@ -8,7 +8,7 @@ module Jackhammer
8
8
  def_delegators :instance, :debug, :info, :warn, :error, :critical
9
9
 
10
10
  def instance
11
- @instance ||= Jackhammer.configuration.logger
11
+ Jackhammer.configuration.logger
12
12
  end
13
13
  end
14
14
  end
@@ -11,8 +11,6 @@ module Jackhammer
11
11
  end
12
12
 
13
13
  def call(message)
14
- Log.info { 'message received for ' + handler_class.to_s }
15
- Log.debug { message.to_s }
16
14
  handler = Object.const_get(handler_class)
17
15
  if handler.respond_to?(:perform_async)
18
16
  handler.perform_async message
@@ -9,7 +9,8 @@ module Jackhammer
9
9
 
10
10
  def subscribe
11
11
  @queue.subscribe do |delivery_info, properties, content|
12
- Log.debug [delivery_info.inspect, properties.inspect, content].join(' || ')
12
+ Log.info { [delivery_info.inspect, properties.inspect].join(' || ') }
13
+ Log.debug { content }
13
14
  @handler_object.call content
14
15
  rescue StandardError => e
15
16
  Log.error e
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Jackhammer
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jackhammer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Serok