basicjrpc 0.1.60 → 0.1.61
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 +2 -2
- data/lib/basicjrpc/server.rb +1 -1
- data/lib/basicjrpc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d101119084938cc15c01a6c2c237ffd8d4fa6e8
|
4
|
+
data.tar.gz: 001d101b16bc5fc649ce2d7fb78ab60bb694c22c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07779746d67e73c94bb8d547d6246cc07b31b714a814ff22ba7c5815f6b0f25ba424fd8ea120efab9f42bdb7f40b891745356028c5a8782eab69047e6f6784db
|
7
|
+
data.tar.gz: f11a32356795345118e9c8e41ac45ee3bfe1237dfd030e35534cc3a618078ea85e9f302ff50b5eecff8f2787fb72f83024a2ac3d7abe08ada89d06f323ea4d90
|
data/lib/basicjrpc/client.rb
CHANGED
@@ -30,7 +30,7 @@ module BasicJRPC
|
|
30
30
|
|
31
31
|
my_message = false
|
32
32
|
|
33
|
-
@redis.rpush(@queue, Oj.dump(payload
|
33
|
+
@redis.rpush(@queue, Oj.dump(payload))
|
34
34
|
|
35
35
|
Timeout::timeout(5) {
|
36
36
|
Oj.load(@redis.blpop(payload['message_id'])[1], :symbol_keys => true)
|
@@ -52,7 +52,7 @@ module BasicJRPC
|
|
52
52
|
payload['message_id'] = SecureRandom.uuid
|
53
53
|
payload['response'] = true
|
54
54
|
payload['caller'] = caller.first(10)
|
55
|
-
@redis.rpush(@queue, Oj.dump(payload
|
55
|
+
@redis.rpush(@queue, Oj.dump(payload))
|
56
56
|
rescue Exception => e
|
57
57
|
#terminate
|
58
58
|
raise e
|
data/lib/basicjrpc/server.rb
CHANGED
@@ -25,7 +25,7 @@ module BasicJRPC
|
|
25
25
|
|
26
26
|
response = @injected_class.send(payload.method_name, *payload.method_arguments)
|
27
27
|
|
28
|
-
@redis.rpush(payload.message_id, Oj.dump(response
|
28
|
+
@redis.rpush(payload.message_id, Oj.dump(response))
|
29
29
|
end
|
30
30
|
rescue Exception => e
|
31
31
|
raise e
|
data/lib/basicjrpc/version.rb
CHANGED