basicjrpc 0.1.51 → 0.1.52
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/hash.rb +1 -1
- 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: 65acc359e968a7d9a797a6d2e70ca4a2c7d460ff
|
4
|
+
data.tar.gz: 35c425dca4014172676f2e71897db4f29040fbc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48cbb957377269323f72d1fb961ea07ad3e9660d4ad20737608bbea279bf4ed87a204af351c40cae6227aa7ffc14f89cdbd48a0fb63953a8084eeb3e6f01bf0d
|
7
|
+
data.tar.gz: 1593561421c3756798069c23d6bc1f224002be60e37a80a929a1c6cf5a3fa2819f13dcd90318e259c6e0d4eb2d59f3105339eee2bacb8e803159b6ce908d54f1
|
data/lib/basicjrpc/client.rb
CHANGED
@@ -32,7 +32,7 @@ module BasicJRPC
|
|
32
32
|
|
33
33
|
puts "Writing Message #{payload['message_id']} #{payload['method_name']}"
|
34
34
|
#@nsq_producer.write(Oj.dump(payload))
|
35
|
-
@redis.rpush(@queue, Oj.dump(payload))
|
35
|
+
@redis.rpush(@queue, Oj.dump(payload, mode: :compat))
|
36
36
|
|
37
37
|
Timeout::timeout(5) {
|
38
38
|
### OR USE POP AND LLEN
|
@@ -56,7 +56,7 @@ module BasicJRPC
|
|
56
56
|
payload['response'] = true
|
57
57
|
payload['caller'] = caller.first(10)
|
58
58
|
#@nsq_producer.write(Oj.dump(payload))
|
59
|
-
@redis.rpush(@queue, Oj.dump(payload))
|
59
|
+
@redis.rpush(@queue, Oj.dump(payload, mode: :compat))
|
60
60
|
rescue Exception => e
|
61
61
|
#terminate
|
62
62
|
raise e
|
data/lib/basicjrpc/hash.rb
CHANGED
data/lib/basicjrpc/server.rb
CHANGED
@@ -23,7 +23,7 @@ module BasicJRPC
|
|
23
23
|
# Should always return a data object
|
24
24
|
response = @injected_class.send(payload.method_name, *payload.method_arguments)
|
25
25
|
|
26
|
-
@redis.rpush(payload.message_id, Oj.dump(response))
|
26
|
+
@redis.rpush(payload.message_id, Oj.dump(response, mode: :compat))
|
27
27
|
#message.finish
|
28
28
|
end
|
29
29
|
rescue Exception => e
|
data/lib/basicjrpc/version.rb
CHANGED