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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4caf4a7e6908dcb328deefefc09457ac83e45d01
4
- data.tar.gz: 1549a96a6f3deeff86e8df609fe87292b4d67fb0
3
+ metadata.gz: 7c11151ac3c74f3cd8aa341b56eeba896c9103c4
4
+ data.tar.gz: 78042cc637623ef3d8a8384d9fe104074a023a73
5
5
  SHA512:
6
- metadata.gz: d4871e67c8cbe628698e0b3fd337be92c0b86d97ca08b5ace97e56ab3fb269c7e07b1ad9f307bc7df0618494e89e05ece78445a5cca5d4a5d96baf0768a7ab8d
7
- data.tar.gz: fbd677968172b23bd2f735def0dbace80b9fffa5ddb65a9994fdc72137474db5c6e1b723c9cbe6d89b1c306a52119b76e9a8d09d1322a059f14999ad14cd7e75
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
  )
@@ -1,5 +1,5 @@
1
1
  module Mimi
2
2
  module Messaging
3
- VERSION = '0.1.10'.freeze
3
+ VERSION = '0.1.11'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mimi-messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Kukushkin