ruby-changes:10226
From: akr <ko1@a...>
Date: Sun, 25 Jan 2009 16:37:00 +0900 (JST)
Subject: [ruby-changes:10226] Ruby:r21770 (trunk): * ext/socket/socket.c (socket_s_ip_address_list): renamed from
akr 2009-01-25 16:36:45 +0900 (Sun, 25 Jan 2009) New Revision: 21770 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=21770 Log: * ext/socket/socket.c (socket_s_ip_address_list): renamed from socket_s_list_ip_address. [ruby-dev:37806] Modified files: trunk/ChangeLog trunk/ext/socket/socket.c trunk/test/socket/test_socket.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 21769) +++ ChangeLog (revision 21770) @@ -1,3 +1,8 @@ +Sun Jan 25 16:35:44 2009 Tanaka Akira <akr@f...> + + * ext/socket/socket.c (socket_s_ip_address_list): renamed from + socket_s_list_ip_address. [ruby-dev:37806] + Sun Jan 25 12:17:21 2009 Nobuyoshi Nakada <nobu@r...> * cygwin/GNUmakefile.in (RUBYDEF): needs read-only section too. Index: ext/socket/socket.c =================================================================== --- ext/socket/socket.c (revision 21769) +++ ext/socket/socket.c (revision 21770) @@ -1427,13 +1427,13 @@ /* * call-seq: - * Socket.list_ip_address => array + * Socket.ip_address_list => array * * Returns local IP addresses as an array. * * The array contains AddrInfo objects. * - * pp Socket.list_ip_address + * pp Socket.ip_address_list * #=> [#<AddrInfo: 127.0.0.1>, * #<AddrInfo: 192.168.0.128>, * #<AddrInfo: ::1>, @@ -1441,7 +1441,7 @@ * */ static VALUE -socket_s_list_ip_address(VALUE self) +socket_s_ip_address_list(VALUE self) { #if defined(HAVE_GETIFADDRS) struct ifaddrs *ifp = NULL; @@ -1681,5 +1681,5 @@ rb_define_singleton_method(rb_cSocket, "unpack_sockaddr_un", sock_s_unpack_sockaddr_un, 1); #endif - rb_define_singleton_method(rb_cSocket, "list_ip_address", socket_s_list_ip_address, 0); + rb_define_singleton_method(rb_cSocket, "ip_address_list", socket_s_ip_address_list, 0); } Index: test/socket/test_socket.rb =================================================================== --- test/socket/test_socket.rb (revision 21769) +++ test/socket/test_socket.rb (revision 21770) @@ -55,9 +55,9 @@ assert_raise(SocketError) { Socket.getnameinfo(["AF_UNIX", 80, "0.0.0.0"]) } end - def test_list_ip_address + def test_ip_address_list begin - list = Socket.list_ip_address + list = Socket.ip_address_list rescue NotImplementedError return end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/