basicjrpc 0.1.29 → 0.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1306c12d987ed5b1de2b95e63749559ae6c53a90
4
- data.tar.gz: 855a79c8ab8a89c527c66ccb80d4fed2753dedfa
3
+ metadata.gz: 8ecf40580eab4df0bba9c02d9b9bb22fdf0aa9f4
4
+ data.tar.gz: bd75b10862e2348dd52386e2164e874fd340ef1a
5
5
  SHA512:
6
- metadata.gz: 9e1e6530a3e5c56cbcc227b52e027fc22a9f8c93b2de0ba5dd8f5df425f38ccd8b34ac47f1d90f818e029f331d34ba0fc07feadcd5889eaf4262d9f36d8bec5d
7
- data.tar.gz: acdbf18b4fb45ce1d4211babeaa2be9a1bea362431b31129384e1a737f888f0c4ba2e3b0e8c9cb1b86230fc12379de9ca281de2c7e3f9759ea6261d4b6ffaf45
6
+ metadata.gz: 8c4b4f358ee15ef6d8dd622f8cb9baa1083f85bc49d98762d9275dd7c747cf1598987ac470a0e4a78dbe5bbacd7c7814a0ffa9cbab5978339020022548a66a82
7
+ data.tar.gz: 1c60d9d54ff4d5af99303e43eaae5445361fa2da41c1a6e4c114434b6fc8487f9c6af9980c11c1f9b4ef773fad22861e670e90284c4c175230fdfe91c32d57c6
@@ -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
- Oj.load(Redis.new(host: "redis").blpop(payload[:message_id])[1])
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
 
@@ -1,3 +1,3 @@
1
1
  module BasicJRPC
2
- VERSION = "0.1.29"
2
+ VERSION = "0.1.30"
3
3
  end
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.29
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-10 00:00:00.000000000 Z
11
+ date: 2016-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler