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 +4 -4
- data/lib/basicjrpc/server.rb +7 -1
- 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: 02d1207ba897a4f9a443ad86dd3fb905a812d375
|
4
|
+
data.tar.gz: 754c79f87e67a8c5f2f005ebf33c680f817e649f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83a9f16c67c36267e0f99890b682b77473ee6f536cba0ff24e185ba2c2972d4cf96fb28bfb2a1b7336bf0a26f58ae6c4e94f81ba122038bbc8eaa2f323f994fe
|
7
|
+
data.tar.gz: 87a23ddfc5b820dbeda80065c7f48f440d38920e08acd8362906e986febb25852039678a6e4f10f0c21cfbc3f0ebba6b4ea5851f6a20f1e7bc27da131e397b00
|
data/lib/basicjrpc/server.rb
CHANGED
@@ -11,7 +11,13 @@ module BasicJRPC
|
|
11
11
|
def listen
|
12
12
|
puts "Listening..."
|
13
13
|
while true
|
14
|
-
|
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
|
|
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.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-
|
11
|
+
date: 2016-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|