mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/net/smtp.rb (Net::SMTP#check_auth_args): should not change
number of methods for the sake of compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ab142b7274
commit
0fa6bb37c6
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon May 11 04:39:45 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/net/smtp.rb (Net::SMTP#check_auth_args): should not change
|
||||
number of methods for the sake of compatibility.
|
||||
|
||||
Sun May 10 11:36:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/dl/cfunc.c (rb_dlcfunc_instance_p): new function to check if
|
||||
|
|
|
@ -769,7 +769,7 @@ module Net
|
|||
"auth_#{type.to_s.downcase}".intern
|
||||
end
|
||||
|
||||
def check_auth_args(user, secret)
|
||||
def check_auth_args(user, secret, authtype = DEFAULT_AUTH_TYPE)
|
||||
unless user
|
||||
raise ArgumentError, 'SMTP-AUTH requested but missing user name'
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue