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 +4 -4
- data/Gemfile.lock +1 -1
- data/freddy.gemspec +1 -1
- data/lib/freddy/consumer.rb +4 -4
- 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: 150435d81a37c816cd2c9c3bf4c3a4e76cf9c2b7
|
4
|
+
data.tar.gz: e9c6998369bd82df946374a44ab90f34d043faa1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2a3c862df5e8bcbe0f9d711ca513fdf0737d48fc429c958a5e346157ded4d466bcc3a8bba62912a02623585bcc55bd4729935f8bda7a3460524713d8dd92a5b
|
7
|
+
data.tar.gz: c45bd40f528f1fc55839adbaa371d8bf85b159f94c225f8558414c444ce5e5199f7dae8f96a4c1947ea32a886c45b0a2ad8f3b671430010eb6be825b771f3190
|
data/Gemfile.lock
CHANGED
data/freddy.gemspec
CHANGED
@@ -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.
|
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}
|
data/lib/freddy/consumer.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2015-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|