basicjrpc 0.1.24 → 0.1.25

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: a95b351932868a6f066059d315432ccc8e8dc64f
4
- data.tar.gz: 23d373573cd84ec1718cea9fe2013f8188b2812f
3
+ metadata.gz: dc4deab7054ee8cf68379a75cebfd8664f15df55
4
+ data.tar.gz: c034a0268fceec519f0628c0e0bd79b96fd7661a
5
5
  SHA512:
6
- metadata.gz: 9c5724e904254afa3901d86c6fbe8ff5b245d3598ff1226013f0ac07acef17199b6ec834aa1b752a8468027d891bc131b10fd1475d06b1ac4057ef9408c7f0b7
7
- data.tar.gz: 8c02dc9e0d846677c2b99a35861203d824673acfb7dc1cb78bc35d23eebabbe5c013db3d8e26ce134e22f202fb5840c23d886ca9e4376931c2ccb190570086a8
6
+ metadata.gz: 2c77285fc786203f8ebd7ae7fb43f2c98fae6629776cc7cb172c8d3194cdfdfe22454e51412ffb15af524ae494606c744ed43a6580b745535fd9606c9c8c6407
7
+ data.tar.gz: 4c8d48af144440d444a49eebcb0e79dc3a2206dfadb381fc2765ace56947a62fb59e355a97c39e00a376fba9c9b95dff6bb3dca3a1ceef6977e453b794bef71f
@@ -19,7 +19,7 @@ module BasicJRPC
19
19
 
20
20
  @nsq_producer.write(Oj.dump(payload))
21
21
 
22
- return Oj.load(Nsq::Consumer.new(nsqlookupd: 'dockerlb:4161',topic: payload[:message_id], channel: 'client').pop)
22
+ return Oj.load(Nsq::Consumer.new(nsqlookupd: 'dockerlb:4161',topic: payload[:message_id], channel: 'client').pop.body)
23
23
  end
24
24
  end
25
25
 
@@ -10,7 +10,7 @@ module BasicJRPC
10
10
  def listen
11
11
  puts "Listening..."
12
12
  while true
13
- payload = Oj.load(@nsq_consumer.pop)
13
+ payload = Oj.load(@nsq_consumer.pop.body)
14
14
  puts "Processing message #{payload.method_name} #{payload.method_arguments}"
15
15
 
16
16
  # Should always return a data object
@@ -1,3 +1,3 @@
1
1
  module BasicJRPC
2
- VERSION = "0.1.24"
2
+ VERSION = "0.1.25"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basicjrpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Simpson