freddy 0.4.0 → 0.4.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: 787721a42efa35a8721680b14d607b17f6b77e84
4
- data.tar.gz: e12ccb2fa37c6fcd85bdb32abee295f862884c1f
3
+ metadata.gz: 150435d81a37c816cd2c9c3bf4c3a4e76cf9c2b7
4
+ data.tar.gz: e9c6998369bd82df946374a44ab90f34d043faa1
5
5
  SHA512:
6
- metadata.gz: 23aca1f868ea2871d1b2056d52a9f8264168c7ce7d8d2890ec8d2d51edcbe580aad35f908bd320aa8c6f4f41f05386613e28da71cd5bda4b3cb7586dea43d338
7
- data.tar.gz: 18bc2c87a793eb9521112882a6f5353fb9fd467c9079bb5e44ac82696a19f138566bf4f880fef006bf48a0374460ece4c42c0af63a85673cc5fee1fc94ec67f8
6
+ metadata.gz: c2a3c862df5e8bcbe0f9d711ca513fdf0737d48fc429c958a5e346157ded4d466bcc3a8bba62912a02623585bcc55bd4729935f8bda7a3460524713d8dd92a5b
7
+ data.tar.gz: c45bd40f528f1fc55839adbaa371d8bf85b159f94c225f8558414c444ce5e5199f7dae8f96a4c1947ea32a886c45b0a2ad8f3b671430010eb6be825b771f3190
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- freddy (0.4.0)
4
+ freddy (0.4.1)
5
5
  bunny (= 1.6.3)
6
6
  hamster (~> 1.0.1.pre.rc3)
7
7
  symbolizer
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "freddy"
7
- spec.version = '0.4.0'
7
+ spec.version = '0.4.1'
8
8
  spec.authors = ["Urmas Talimaa"]
9
9
  spec.email = ["urmas.talimaa@gmail.com"]
10
10
  spec.description = %q{Messaging API}
@@ -46,7 +46,7 @@ class Freddy
46
46
  consumer = queue.subscribe options do |delivery_info, properties, payload|
47
47
  pool.process do
48
48
  parsed_payload = parse_payload(payload)
49
- log_receive_event(queue.name, parsed_payload)
49
+ log_receive_event(queue.name, parsed_payload, properties[:correlation_id])
50
50
  block.call parsed_payload, Delivery.new(delivery_info, properties)
51
51
  end
52
52
  end
@@ -66,11 +66,11 @@ class Freddy
66
66
  @channel.queue(destination)
67
67
  end
68
68
 
69
- def log_receive_event(queue_name, payload)
69
+ def log_receive_event(queue_name, payload, correlation_id)
70
70
  if defined?(Logasm) && @logger.is_a?(Logasm)
71
- @logger.debug "Received message", queue: queue_name, payload: payload
71
+ @logger.debug "Received message", queue: queue_name, payload: payload, correlation_id: correlation_id
72
72
  else
73
- @logger.debug "Received message on #{queue_name} with payload #{payload}"
73
+ @logger.debug "Received message on #{queue_name} with payload #{payload} with correlation_id #{correlation_id}"
74
74
  end
75
75
  end
76
76
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Urmas Talimaa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-13 00:00:00.000000000 Z
11
+ date: 2015-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler