ruby-changes:2288
From: ko1@a...
Date: 26 Oct 2007 06:35:38 +0900
Subject: [ruby-changes:2288] jeg2 - Ruby:r13779 (trunk): * lib/net/telnet.rb (Net::Telnet#login): Making the password prompt
jeg2 2007-10-26 06:35:19 +0900 (Fri, 26 Oct 2007) New Revision: 13779 Modified files: trunk/ChangeLog trunk/lib/net/telnet.rb Log: * lib/net/telnet.rb (Net::Telnet#login): Making the password prompt pattern case insensitive. [ruby-Bugs-10746] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13779&r2=13778 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/net/telnet.rb?r1=13779&r2=13778 Index: ChangeLog =================================================================== --- ChangeLog (revision 13778) +++ ChangeLog (revision 13779) @@ -1,3 +1,8 @@ +Wed Oct 25 06:34:11 2007 James Edward Gray II <jeg2@r...> + + * lib/net/telnet.rb (Net::Telnet#login): Making the password prompt + pattern case insensitive. [ruby-Bugs-10746] + Fri Oct 26 04:21:36 2007 Yukihiro Matsumoto <matz@r...> * lib/net/pop.rb (Net::POP3::do_start): type fixed. a patch from Index: lib/net/telnet.rb =================================================================== --- lib/net/telnet.rb (revision 13778) +++ lib/net/telnet.rb (revision 13779) @@ -708,7 +708,7 @@ # data is also yielded to the block as it is received. def login(options, password = nil) # :yield: recvdata login_prompt = /[Ll]ogin[: ]*\z/n - password_prompt = /Password[: ]*\z/n + password_prompt = /[Pp]assword[: ]*\z/n if options.kind_of?(Hash) username = options["Name"] password = options["Password"] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml