1
0
Fork 0
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:
nobu 2004-04-16 03:38:53 +00:00
parent 729aa8e1f4
commit 03f06115a6
3 changed files with 15 additions and 4 deletions

View file

@ -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>
* ext/extmk.rb: skip linking when libraries to be preloaded not

View file

@ -452,7 +452,7 @@ module DRb
# when the unmarshalling failed. It is used to determine the
# name of the unmarshalled object.
def initialize(err, buf)
case err
case err.to_s
when /uninitialized constant (\S+)/
@name = $1
when /undefined class\/module (\S+)/
@ -593,7 +593,7 @@ module DRb
msg = load(stream)
argc = load(stream)
raise ArgumentError, 'too many arguments' if @argc_limit < argc
argv = Array.new(argc, nil)
argv = Values.new(argc, nil)
argc.times do |n|
argv[n] = load(stream)
end
@ -1392,7 +1392,7 @@ module DRb
@result = perform_without_block
end
@succ = true
if @msg_id == :to_ary && @result.class == Array
if @msg_id == :to_ary && @result.class == Values
@result = DRbArray.new(@result)
end
return @succ, @result

View file

@ -4,7 +4,7 @@ module DRb
class DRbServer
module InvokeMethod18Mixin
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])
end
block_value = @block.call(*x)