drb 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/drb/drb.rb +8 -3
- data/lib/drb/extserv.rb +2 -2
- data/lib/drb/extservm.rb +4 -2
- data/lib/drb/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbef5362ded411302c246ad1e692b0653d949cae852d6f70399352530400c117
|
4
|
+
data.tar.gz: 9a40103cba6d502dcdcc053e7fbdf32b74d3f6bcdd161c10a663ce24b30dc0ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13b306094ed3815c264828904f22df319630e044587717561e9bb91f09f729b2b329de551d613c9327f8691777a9733cdd845d4c85308034b4a103c39e3def1d
|
7
|
+
data.tar.gz: 74104ebea97bd19a3a74b6729cdca80305eb061e268c89f66ae3cd29a1959c6299775b75d0bb0a9d780fcb2cf65a2e51d876be19a058ad674ad68494569fa42a
|
data/lib/drb/drb.rb
CHANGED
@@ -1627,9 +1627,12 @@ module DRb
|
|
1627
1627
|
end
|
1628
1628
|
|
1629
1629
|
def perform
|
1630
|
-
|
1631
|
-
|
1632
|
-
|
1630
|
+
begin
|
1631
|
+
setup_message
|
1632
|
+
ensure
|
1633
|
+
@result = nil
|
1634
|
+
@succ = false
|
1635
|
+
end
|
1633
1636
|
|
1634
1637
|
if @block
|
1635
1638
|
@result = perform_with_block
|
@@ -1718,6 +1721,7 @@ module DRb
|
|
1718
1721
|
client_uri = client.uri
|
1719
1722
|
@exported_uri << client_uri unless @exported_uri.include?(client_uri)
|
1720
1723
|
end
|
1724
|
+
_last_invoke_method = nil
|
1721
1725
|
loop do
|
1722
1726
|
begin
|
1723
1727
|
succ = false
|
@@ -1730,6 +1734,7 @@ module DRb
|
|
1730
1734
|
rescue Exception => e
|
1731
1735
|
error_print(e) if verbose
|
1732
1736
|
ensure
|
1737
|
+
_last_invoke_method = invoke_method
|
1733
1738
|
client.close unless succ
|
1734
1739
|
if Thread.current['DRb']['stop_service']
|
1735
1740
|
shutdown
|
data/lib/drb/extserv.rb
CHANGED
@@ -18,7 +18,7 @@ module DRb
|
|
18
18
|
@name = name
|
19
19
|
ro = DRbObject.new(nil, there)
|
20
20
|
synchronize do
|
21
|
-
@invoker = ro.
|
21
|
+
@invoker = ro.register(name, DRbObject.new(self, @server.uri))
|
22
22
|
end
|
23
23
|
end
|
24
24
|
attr_reader :server
|
@@ -29,7 +29,7 @@ module DRb
|
|
29
29
|
|
30
30
|
def stop_service
|
31
31
|
synchronize do
|
32
|
-
@invoker.
|
32
|
+
@invoker.unregister(@name)
|
33
33
|
server = @server
|
34
34
|
@server = nil
|
35
35
|
server.stop_service
|
data/lib/drb/extservm.rb
CHANGED
@@ -44,19 +44,21 @@ module DRb
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
def
|
47
|
+
def register(name, ro)
|
48
48
|
synchronize do
|
49
49
|
@servers[name] = ro
|
50
50
|
@cond.signal
|
51
51
|
end
|
52
52
|
self
|
53
53
|
end
|
54
|
+
alias regist register
|
54
55
|
|
55
|
-
def
|
56
|
+
def unregister(name)
|
56
57
|
synchronize do
|
57
58
|
@servers.delete(name)
|
58
59
|
end
|
59
60
|
end
|
61
|
+
alias unregist unregister
|
60
62
|
|
61
63
|
private
|
62
64
|
def invoke_thread
|
data/lib/drb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masatoshi SEKI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby2_keywords
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
requirements: []
|
72
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.4.0.dev
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: Distributed object system for Ruby
|