basicjrpc 0.1.55 → 0.1.60

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: d4c9b60ca4e80e1eed0a83036234f79965268706
4
- data.tar.gz: 20f046ee7f51f07ea7b7cfc9b70addf7115aa45c
3
+ metadata.gz: 02d1207ba897a4f9a443ad86dd3fb905a812d375
4
+ data.tar.gz: 754c79f87e67a8c5f2f005ebf33c680f817e649f
5
5
  SHA512:
6
- metadata.gz: cfdb34b9e7e689f42d1629248c6cbb03814b239912673cfebb423897bd89c29b313837f823f42020030b842218cc4d708e5e0a72bc591502bed229ba6f275335
7
- data.tar.gz: 823a33e80e11249266370883a6770f470c1be641d659705f31ccd2f03794937139c72d4febab43b1c1f59772cbb9fdbb8cdcf9006a9d7251ba09b0c06a9b199a
6
+ metadata.gz: 83a9f16c67c36267e0f99890b682b77473ee6f536cba0ff24e185ba2c2972d4cf96fb28bfb2a1b7336bf0a26f58ae6c4e94f81ba122038bbc8eaa2f323f994fe
7
+ data.tar.gz: 87a23ddfc5b820dbeda80065c7f48f440d38920e08acd8362906e986febb25852039678a6e4f10f0c21cfbc3f0ebba6b4ea5851f6a20f1e7bc27da131e397b00
@@ -11,7 +11,13 @@ module BasicJRPC
11
11
  def listen
12
12
  puts "Listening..."
13
13
  while true
14
- redis_response = @redis.brpop(@queue, { :timeout => 10 })
14
+ begin
15
+ redis_response = @redis.brpop(@queue)
16
+ rescue
17
+ @redis = Redis.new(host: host)
18
+ puts "REDIS FAILED! RETRYING"
19
+ retry
20
+ end
15
21
  next if redis_response.nil?
16
22
  message = redis_response[1]
17
23
 
@@ -1,3 +1,3 @@
1
1
  module BasicJRPC
2
- VERSION = "0.1.55"
2
+ VERSION = "0.1.60"
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.55
4
+ version: 0.1.60
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-12-12 00:00:00.000000000 Z
11
+ date: 2016-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler