clustered_rpc 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/clustered_rpc.rb +3 -1
- data/lib/clustered_rpc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 904505b16c185f8541a99935ce6f1e5238069f3f3d69bc95c440d7c7a6669357
|
4
|
+
data.tar.gz: 6557b5bf8f8a58120ab25f70301bf53ef8f7959d57f478b1b0589327a0d1302f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0155fd98b49b9351d9cf4a3086fc9145e1095bc41ff8a2638a800a61ca73a19caefbf43c9a0b9ef458a1e847928077b7b01f5b9da27bf591395f697930fcab8b
|
7
|
+
data.tar.gz: 9facf71c00b00091591e2261e1ccb46e302ee0fa8f3e1d3f9b362305a48c53986a33ba6a797baf07881548261b358d81a95ac050992e49d2e027170aee7f47f7
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
clustered_rpc (0.3.
|
4
|
+
clustered_rpc (0.3.1)
|
5
5
|
activesupport
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (6.1.3.
|
10
|
+
activesupport (6.1.3.2)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 1.6, < 2)
|
13
13
|
minitest (>= 5.1)
|
data/lib/clustered_rpc.rb
CHANGED
@@ -5,6 +5,7 @@ require "json"
|
|
5
5
|
require "active_support/concern"
|
6
6
|
require "clustered_rpc/proxy"
|
7
7
|
require "clustered_rpc/transport/base"
|
8
|
+
require "clustered_rpc/transport/local_process"
|
8
9
|
|
9
10
|
module ClusteredRpc
|
10
11
|
class Error < StandardError; end
|
@@ -33,7 +34,8 @@ module ClusteredRpc
|
|
33
34
|
|
34
35
|
# request_id should have been returned from the call to #cluster_send
|
35
36
|
def self.get_result(request_id, wait_seconds = 1.0)
|
36
|
-
|
37
|
+
# Don't wait at all when using LocalProcess
|
38
|
+
sleep(wait_seconds) if wait_seconds && transport_class != ClusteredRpc::Transport::LocalProcess
|
37
39
|
results = @@transport.get_result(request_id)
|
38
40
|
results.keys.each{|k| results[k] = JSON.parse(results[k])}
|
39
41
|
results # ??? Rails anyone? .with_indifferent_access
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clustered_rpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- megalithtracers@gmail.com
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|