basicjrpc 0.1.64 → 0.1.65

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: 162bf355c77fd1af7eca03d9cb1acfaf9b6232b0
4
- data.tar.gz: 277f6750b339cff9d0b481de314fae0351b6568a
3
+ metadata.gz: 65763ad718585a412a7ea9f3e5828bc7cef94ed7
4
+ data.tar.gz: f63bf5f8b5950ed599d18c9e29e5859b3a766916
5
5
  SHA512:
6
- metadata.gz: a1dfe91187d7b3acdfda124551313a19426d59ee791309cc8b988fc4a74e4ec5cba4f55622f0facb64b6b8e266e51274ab15d329b0342e68cbbfbd45ccffc542
7
- data.tar.gz: 652f781df609bf506a33f159b6c983c35c40a5482b2a20d62a5f923783261cff133c34c975120c2e5e1be18ec2c67f39ab0df30e529dd413c16b318ced845c65
6
+ metadata.gz: 8345f91aee749ee07ef023d446ce55c440bdcace635b8bf142545d11a8e651f17420695a860e00506bf335b401b7c3d77f5e4bf4b1e1de473d0abea9a259f401
7
+ data.tar.gz: c4b6f7b783b9c725c354f34e48f8c59968b479d5c53028027df1bb0445a3673e859f1931a6f1a1761bf0a6c32c85bff6bb6f284bcff5d9143c7ddc744c61098e
@@ -10,7 +10,7 @@ module BasicJRPC
10
10
 
11
11
  # Responding Client
12
12
  class Client
13
- def initialize(queue, timeout = 5, host="redis")
13
+ def initialize(queue, timeout=10, host="redis")
14
14
  @queue = queue
15
15
  @payload = {}
16
16
  @timeout = timeout
@@ -32,7 +32,7 @@ module BasicJRPC
32
32
 
33
33
  @redis.rpush(@queue, Oj.dump(payload))
34
34
 
35
- Timeout::timeout(5) {
35
+ Timeout::timeout(@timeout) {
36
36
  Oj.load(@redis.blpop(payload['message_id'])[1], :symbol_keys => true)
37
37
  }
38
38
  rescue Exception => e
@@ -1,3 +1,3 @@
1
1
  module BasicJRPC
2
- VERSION = "0.1.64"
2
+ VERSION = "0.1.65"
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.64
4
+ version: 0.1.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Simpson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-17 00:00:00.000000000 Z
11
+ date: 2017-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler