summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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