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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f45f11c95a23f17c8b9f0613a91c9569bf815013b332e9aba54947acc3fbdbc
4
- data.tar.gz: 7a40bad936c8ff77831b4fd3973dae32dd1027d760799a85d47d3a0a540871a5
3
+ metadata.gz: 904505b16c185f8541a99935ce6f1e5238069f3f3d69bc95c440d7c7a6669357
4
+ data.tar.gz: 6557b5bf8f8a58120ab25f70301bf53ef8f7959d57f478b1b0589327a0d1302f
5
5
  SHA512:
6
- metadata.gz: 49b594ef30ada06bad7cd2f5c10b626208a64c0957b630905ebf766c37c6cd7e3f51e1f1d56a761299975137de9091cb2dd02739254c36e1ed27946ba722ca10
7
- data.tar.gz: 1bf2c30fd8201d11054850f51b3f5adf84c921a2001046e8bdd792f68d025992ce1c4ac0d4456a9df5a77103552cd8fa5603e93b14f9b109dde662fd61d2f490
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.0)
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.1)
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
- sleep(wait_seconds) if wait_seconds
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
@@ -1,3 +1,3 @@
1
1
  module ClusteredRpc
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-05-04 00:00:00.000000000 Z
11
+ date: 2021-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport