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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a465b570141e500464e651652a7f651fef12b4ac3c1b492fa24a83d9f46e180a
4
- data.tar.gz: 37b73880d63b5cc4e7cd807913e7ac43c274ffb592eac3ef0e6e8aaf5592e38f
3
+ metadata.gz: dbef5362ded411302c246ad1e692b0653d949cae852d6f70399352530400c117
4
+ data.tar.gz: 9a40103cba6d502dcdcc053e7fbdf32b74d3f6bcdd161c10a663ce24b30dc0ba
5
5
  SHA512:
6
- metadata.gz: faa689810d7757cd0959a767d4ff1367a622d20062aa5dd97a5444d4dbd18818c1fa45752d9fc27f6dce599cb58ea12c9356583e9398aa68bff8e77d8cdbc927
7
- data.tar.gz: 818185d78b2eb0157012cf6c41be04ef1658309bdd6cf7ee0d963c1122fa38a7b48961fe10986f0525178fc83e2382d74ad35dfa1ddcd3545a1194541df6a446
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
- @result = nil
1631
- @succ = false
1632
- setup_message
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.regist(name, DRbObject.new(self, @server.uri))
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.unregist(@name)
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 regist(name, ro)
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 unregist(name)
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
@@ -1,3 +1,3 @@
1
1
  module DRb
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
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.0
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: 2021-10-14 00:00:00.000000000 Z
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.2.22
72
+ rubygems_version: 3.4.0.dev
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Distributed object system for Ruby