basicjrpc 0.1.29 → 0.1.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/basicjrpc/client.rb +6 -2
- data/lib/basicjrpc/version.rb +1 -1
- 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: 8ecf40580eab4df0bba9c02d9b9bb22fdf0aa9f4
|
4
|
+
data.tar.gz: bd75b10862e2348dd52386e2164e874fd340ef1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c4b4f358ee15ef6d8dd622f8cb9baa1083f85bc49d98762d9275dd7c747cf1598987ac470a0e4a78dbe5bbacd7c7814a0ffa9cbab5978339020022548a66a82
|
7
|
+
data.tar.gz: 1c60d9d54ff4d5af99303e43eaae5445361fa2da41c1a6e4c114434b6fc8487f9c6af9980c11c1f9b4ef773fad22861e670e90284c4c175230fdfe91c32d57c6
|
data/lib/basicjrpc/client.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'timeout'
|
2
|
+
|
1
3
|
module BasicJRPC
|
2
4
|
|
3
5
|
# Responding Client
|
@@ -23,8 +25,10 @@ module BasicJRPC
|
|
23
25
|
my_message = false
|
24
26
|
|
25
27
|
nsq_producer.write(Oj.dump(payload))
|
26
|
-
nsq_producer.terminate
|
27
|
-
|
28
|
+
nsq_producer.terminate
|
29
|
+
Timeout::timeout(5) {
|
30
|
+
Oj.load(Redis.new(host: "redis").blpop(payload[:message_id])[1])
|
31
|
+
}
|
28
32
|
end
|
29
33
|
end
|
30
34
|
|
data/lib/basicjrpc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: basicjrpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Simpson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|