1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (newline_node): do not use NODE_NEWLINE node anymore,

use NEWLINE flag instead.

* ext/socket/socket.c (sock_gethostbyname): returns host if
  ai_canonname is NULL. (ruby-bugs PR#1243)

* parse.y (block_append): update nd_end for "real" head node.
  [ruby-list:39058]

* marshal.c (w_class): should not dump singleton class.
  [ruby-dev:22631]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2004-01-21 16:47:23 +00:00
parent d0149b9e21
commit 002517aba8
11 changed files with 74 additions and 103 deletions

View file

@ -706,7 +706,7 @@ module Net # :nodoc:
end
if block_given?
line = waitfor(/login[: ]*\z/n){|c| yield c }
line = waitfor(/[Ll]ogin[: ]*\z/n){|c| yield c }
if password
line += cmd({"String" => username,
"Match" => /Password[: ]*\z/n}){|c| yield c }
@ -715,7 +715,7 @@ module Net # :nodoc:
line += cmd(username){|c| yield c }
end
else
line = waitfor(/login[: ]*\z/n)
line = waitfor(/[Ll]ogin[: ]*\z/n)
if password
line += cmd({"String" => username,
"Match" => /Password[: ]*\z/n})