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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9e42030e246ad47c6019fed9616ef750985e96f
4
- data.tar.gz: 1974302cbd5acdb29e26b6fa1f766c3af7e2891a
3
+ metadata.gz: 65acc359e968a7d9a797a6d2e70ca4a2c7d460ff
4
+ data.tar.gz: 35c425dca4014172676f2e71897db4f29040fbc0
5
5
  SHA512:
6
- metadata.gz: 24090add2c3fd2df5f396ca9c85b1b19112f16dcd0747f486a5c7a97f734b7dde3510cb34b8888e63c8c78dc8439bc0888477fda190da33bf486a0a448e0f76e
7
- data.tar.gz: c7c23b438cdddceb1df1e559e6df0744c3ca8e37c145bef460aa961dae6b055978572d8715707c0306e93ed799c268e847cba2d610734f3943ab9d779374ffdc
6
+ metadata.gz: 48cbb957377269323f72d1fb961ea07ad3e9660d4ad20737608bbea279bf4ed87a204af351c40cae6227aa7ffc14f89cdbd48a0fb63953a8084eeb3e6f01bf0d
7
+ data.tar.gz: 1593561421c3756798069c23d6bc1f224002be60e37a80a929a1c6cf5a3fa2819f13dcd90318e259c6e0d4eb2d59f3105339eee2bacb8e803159b6ce908d54f1
@@ -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
@@ -1,5 +1,5 @@
1
1
  class Hash
2
2
  def method_missing(sym,*)
3
- fetch(sym){fetch(sym){super}}
3
+ fetch(sym.to_s){fetch(sym.to_s){super}}
4
4
  end
5
5
  end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module BasicJRPC
2
- VERSION = "0.1.51"
2
+ VERSION = "0.1.52"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: basicjrpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.51
4
+ version: 0.1.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Simpson