Skip to content

Commit

Permalink
* lib/net/smtp.rb: respond_to? needs 2nd argument. [ruby-talk:77796]
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
aamine committed Aug 2, 2003
1 parent 6277a66 commit ce3fb6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/net/smtp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def check_auth_args( user, secret, authtype )
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 )
Expand Down

0 comments on commit ce3fb6c

Please sign in to comment.