diff --git a/ChangeLog b/ChangeLog index bc26090b3b..1cd4cf28c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Jan 22 14:57:25 2007 Yukihiro Matsumoto + + * ext/socket/socket.c: fix errors in socket sample code. + [ruby-core:09992] + Sat Jan 20 21:05:18 2007 Masaki Suketa * ext/win32ole/win32ole.c (fole_s_set_code_page): WIN32OLE.codepage= diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 419f08c6de..a0cf8353a1 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -2893,7 +2893,7 @@ sock_accept(VALUE sock) * IO.select([socket]) * retry * end - * puts "The client said, '#{socket.readline.chomp}'" + * puts "The client said, '#{client_socket.readline.chomp}'" * client_socket.puts "Hello from script one!" * socket.close * @@ -2947,8 +2947,8 @@ sock_accept_nonblock(VALUE sock) * socket.bind( sockaddr ) * socket.listen( 5 ) * client_fd, client_sockaddr = socket.sysaccept - * puts "The client said, '#{socket.readline.chomp}'" * client_socket = Socket.for_fd( client_fd ) + * puts "The client said, '#{client_socket.readline.chomp}'" * client_socket.puts "Hello from script one!" * socket.close * diff --git a/version.h b/version.h index f9bb245d59..ed22736d1a 100644 --- a/version.h +++ b/version.h @@ -1,7 +1,7 @@ #define RUBY_VERSION "1.9.0" -#define RUBY_RELEASE_DATE "2007-01-20" +#define RUBY_RELEASE_DATE "2007-01-22" #define RUBY_VERSION_CODE 190 -#define RUBY_RELEASE_CODE 20070120 +#define RUBY_RELEASE_CODE 20070122 #define RUBY_PATCHLEVEL 0 #define RUBY_VERSION_MAJOR 1 @@ -9,7 +9,7 @@ #define RUBY_VERSION_TEENY 0 #define RUBY_RELEASE_YEAR 2007 #define RUBY_RELEASE_MONTH 1 -#define RUBY_RELEASE_DAY 20 +#define RUBY_RELEASE_DAY 22 RUBY_EXTERN const char ruby_version[]; RUBY_EXTERN const char ruby_release_date[];