From ce3fb6ceea1f3e0ee2d7fea4bae3369bf43b860e Mon Sep 17 00:00:00 2001 From: aamine Date: Sat, 2 Aug 2003 10:12:22 +0000 Subject: [PATCH] * lib/net/smtp.rb: respond_to? needs 2nd argument. [ruby-talk:77796] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/net/smtp.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 314346eeab..6efe3ba146 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Aug 2 19:18:40 2003 Minero Aoki + + * lib/net/smtp.rb: respond_to? needs 2nd argument. + Thanks Jim Bob. [ruby-talk:77796] + Sat Aug 2 15:11:54 2003 WATANABE Hirofumi * ext/extmk.rb (--no-undefined): annoying option removed. diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index ba4f43c377..8c271ad45e 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 )