summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-02 10:12:22 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-02 10:12:22 +0000
commit7d720d8d65387672d236cbd8be03c39f0786f383 (patch)
treeddebe143a65c2f1d83c42110fcfe2c25bda970d3
parentb214ad862bab5b6fa7c68422b282b1b4cf00bc6a (diff)
downloadruby-7d720d8d65387672d236cbd8be03c39f0786f383.tar.gz
ruby-7d720d8d65387672d236cbd8be03c39f0786f383.tar.xz
ruby-7d720d8d65387672d236cbd8be03c39f0786f383.zip
* lib/net/smtp.rb: respond_to? needs 2nd argument. [ruby-talk:77796]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/net/smtp.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 314346eea..6efe3ba14 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Aug 2 19:18:40 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/smtp.rb: respond_to? needs 2nd argument.
+ Thanks Jim Bob. [ruby-talk:77796]
+
Sat Aug 2 15:11:54 2003 WATANABE Hirofumi <eban@ruby-lang.org>
* ext/extmk.rb (--no-undefined): annoying option removed.
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index ba4f43c37..8c271ad45 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -520,7 +520,7 @@ module Net
unless user and secret
auth_method = "auth_#{authtype || 'cram_md5'}"
raise ArgumentError, "wrong auth type #{authtype}"\
- unless respond_to?(auth_method)
+ unless respond_to?(auth_method, true)
end
def authenticate( user, secret, authtype )