mimi-messaging 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mimi/messaging/mock/request.rb +2 -1
- data/lib/mimi/messaging/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c11151ac3c74f3cd8aa341b56eeba896c9103c4
|
4
|
+
data.tar.gz: 78042cc637623ef3d8a8384d9fe104074a023a73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a41b70de10aa053dfbde75bb195b3b2cf4d2f7d93c33d3cfb1d533291c57b0d175cc7e41d7cbbd53b57f74bf31581902448158d56eb8b86832f61d3a8d3acc1
|
7
|
+
data.tar.gz: 9e9de944def13c8eb9988328a41ddd2b64651f05989c885d78d33561f3358db122c889457deb079d89db6ef0351a9bf56a164de836472d7d75bfd2d6332c6df7
|
@@ -6,8 +6,9 @@ module Mimi
|
|
6
6
|
def send_response(data = {})
|
7
7
|
return if !get? || replied?
|
8
8
|
raise ArgumentError, 'Invalid response format, Hash is expected' unless data.is_a?(Hash)
|
9
|
+
reply_to_queue_name = metadata[:reply_to]
|
9
10
|
raw_message = Mimi::Messaging::Message.encode(data)
|
10
|
-
@response = Mimi::Messaging::Message.decode(raw_message)
|
11
|
+
@response = Mimi::Messaging::Message.new(Mimi::Messaging::Message.decode(raw_message))
|
11
12
|
request_processor.connection.post(
|
12
13
|
reply_to_queue_name, raw_message, correlation_id: metadata[:correlation_id]
|
13
14
|
)
|