mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/drb/drb.rb (DRb::DRbUnknown::initialize): Exception#to_str is
deprecated. * lib/drb/drb.rb (DRb::DRbServer::InvokeMethod::perform): multiple value class changed. * lib/drb/invokemethod.rb (DRb::DRbServer::InvokeMethod18Mixin::block_yield): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
729aa8e1f4
commit
03f06115a6
3 changed files with 15 additions and 4 deletions
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
||||||
|
Fri Apr 16 12:38:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/drb/drb.rb (DRb::DRbUnknown::initialize): Exception#to_str is
|
||||||
|
deprecated.
|
||||||
|
|
||||||
|
* lib/drb/drb.rb (DRb::DRbServer::InvokeMethod::perform): multiple
|
||||||
|
value class changed.
|
||||||
|
|
||||||
|
* lib/drb/invokemethod.rb (DRb::DRbServer::InvokeMethod18Mixin::block_yield):
|
||||||
|
ditto.
|
||||||
|
|
||||||
Fri Apr 16 08:27:08 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Apr 16 08:27:08 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/extmk.rb: skip linking when libraries to be preloaded not
|
* ext/extmk.rb: skip linking when libraries to be preloaded not
|
||||||
|
|
|
@ -452,7 +452,7 @@ module DRb
|
||||||
# when the unmarshalling failed. It is used to determine the
|
# when the unmarshalling failed. It is used to determine the
|
||||||
# name of the unmarshalled object.
|
# name of the unmarshalled object.
|
||||||
def initialize(err, buf)
|
def initialize(err, buf)
|
||||||
case err
|
case err.to_s
|
||||||
when /uninitialized constant (\S+)/
|
when /uninitialized constant (\S+)/
|
||||||
@name = $1
|
@name = $1
|
||||||
when /undefined class\/module (\S+)/
|
when /undefined class\/module (\S+)/
|
||||||
|
@ -593,7 +593,7 @@ module DRb
|
||||||
msg = load(stream)
|
msg = load(stream)
|
||||||
argc = load(stream)
|
argc = load(stream)
|
||||||
raise ArgumentError, 'too many arguments' if @argc_limit < argc
|
raise ArgumentError, 'too many arguments' if @argc_limit < argc
|
||||||
argv = Array.new(argc, nil)
|
argv = Values.new(argc, nil)
|
||||||
argc.times do |n|
|
argc.times do |n|
|
||||||
argv[n] = load(stream)
|
argv[n] = load(stream)
|
||||||
end
|
end
|
||||||
|
@ -1392,7 +1392,7 @@ module DRb
|
||||||
@result = perform_without_block
|
@result = perform_without_block
|
||||||
end
|
end
|
||||||
@succ = true
|
@succ = true
|
||||||
if @msg_id == :to_ary && @result.class == Array
|
if @msg_id == :to_ary && @result.class == Values
|
||||||
@result = DRbArray.new(@result)
|
@result = DRbArray.new(@result)
|
||||||
end
|
end
|
||||||
return @succ, @result
|
return @succ, @result
|
||||||
|
|
|
@ -4,7 +4,7 @@ module DRb
|
||||||
class DRbServer
|
class DRbServer
|
||||||
module InvokeMethod18Mixin
|
module InvokeMethod18Mixin
|
||||||
def block_yield(x)
|
def block_yield(x)
|
||||||
if x.size == 1 && x[0].class == Array
|
if x.size == 1 && x[0].class == Values
|
||||||
x[0] = DRbArray.new(x[0])
|
x[0] = DRbArray.new(x[0])
|
||||||
end
|
end
|
||||||
block_value = @block.call(*x)
|
block_value = @block.call(*x)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue