summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-24 09:57:53 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-24 09:57:53 +0000
commit4e183b11acebdbce9fe843059ddb8e18e491cce1 (patch)
treea6cd8b6ecfb5e2f52f04cbbe29e4fd9f3adbd59e /lib
parent99ab1fed49ba6b441fa5a6ae3d6818fae09b760e (diff)
* test/ruby/test_dir.rb (TestDir::setup): ?c now makes a string.
* lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::initialize): initialize @workdir to stop warning. * lib/drb/drb.rb (DRb::DRbServer::InvokeMethod::perform_without_block): replace funcall by send!. other files in the distribution as well. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/drb/drb.rb2
-rw-r--r--lib/net/imap.rb10
-rw-r--r--lib/net/smtp.rb2
-rw-r--r--lib/test/unit/autorunner.rb1
4 files changed, 8 insertions, 7 deletions
diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb
index d62fead5969..e7686801f77 100644
--- a/lib/drb/drb.rb
+++ b/lib/drb/drb.rb
@@ -1553,7 +1553,7 @@ module DRb
end
ary.collect(&@obj)[0]
else
- @obj.funcall(@msg_id, *@argv)
+ @obj.send!(@msg_id, *@argv)
end
end
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index c6be5030b9d..b8239a8abab 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -1231,7 +1231,7 @@ module Net
class RawData # :nodoc:
def send_data(imap)
- imap.funcall(:put_string, @data)
+ imap.send!(:put_string, @data)
end
private
@@ -1243,7 +1243,7 @@ module Net
class Atom # :nodoc:
def send_data(imap)
- imap.funcall(:put_string, @data)
+ imap.send!(:put_string, @data)
end
private
@@ -1255,7 +1255,7 @@ module Net
class QuotedString # :nodoc:
def send_data(imap)
- imap.funcall(:send_quoted_string, @data)
+ imap.send!(:send_quoted_string, @data)
end
private
@@ -1267,7 +1267,7 @@ module Net
class Literal # :nodoc:
def send_data(imap)
- imap.funcall(:send_literal, @data)
+ imap.send!(:send_literal, @data)
end
private
@@ -1279,7 +1279,7 @@ module Net
class MessageSet # :nodoc:
def send_data(imap)
- imap.funcall(:put_string, format_internal(@data))
+ imap.send!(:put_string, format_internal(@data))
end
private
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index 3c69846d151..58cce32a71a 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -719,7 +719,7 @@ module Net
def authenticate(user, secret, authtype = DEFAULT_AUTH_TYPE)
check_auth_method authtype
check_auth_args user, secret
- funcall auth_method(authtype), user, secret
+ send! auth_method(authtype), user, secret
end
def auth_plain(user, secret)
diff --git a/lib/test/unit/autorunner.rb b/lib/test/unit/autorunner.rb
index dadf080d123..861b50e00fb 100644
--- a/lib/test/unit/autorunner.rb
+++ b/lib/test/unit/autorunner.rb
@@ -81,6 +81,7 @@ module Test
@filters = []
@to_run = []
@output_level = UI::NORMAL
+ @workdir = false
yield(self) if(block_given?)
end