ruby-changes:14580
From: naruse <ko1@a...>
Date: Tue, 26 Jan 2010 20:20:46 +0900 (JST)
Subject: [ruby-changes:14580] Ruby:r26422 (ruby_1_8): * ext/zlib/zlib.c (rb_gzfile_s_wrap): add rdoc.
naruse 2010-01-26 20:20:32 +0900 (Tue, 26 Jan 2010) New Revision: 26422 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26422 Log: * ext/zlib/zlib.c (rb_gzfile_s_wrap): add rdoc. patched by Hugh Sasse [ruby-core:27692] * ext/zlib/doc/zlib.rd: removed. -This line, and those below, will be ignored-- M ext/zlib/zlib.c M ChangeLog Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/ext/zlib/zlib.c Index: ruby_1_8/ext/zlib/zlib.c =================================================================== --- ruby_1_8/ext/zlib/zlib.c (revision 26421) +++ ruby_1_8/ext/zlib/zlib.c (revision 26422) @@ -2336,7 +2336,12 @@ } /* - * See Zlib::GzipReader#wrap and Zlib::GzipWriter#wrap. + * Creates a GzipFile object associated with ((|io|)), and + * executes the block with the newly created GzipFile object, + * just like File.open. The GzipFile object will be closed + * automatically after executing the block. If you want to keep + * the associated IO object opening, you may call + * ((<Zlib::GzipFile#finish>)) method in the block. */ static VALUE rb_gzfile_s_wrap(argc, argv, klass) @@ -2702,7 +2707,7 @@ * * Opens a file specified by +filename+ for writing gzip compressed data, and * returns a GzipWriter object associated with that file. Further details of - * this method are found in Zlib::GzipWriter.new and Zlib::GzipWriter#wrap. + * this method are found in Zlib::GzipWriter.new and Zlib::GzipFile.wrap. */ static VALUE rb_gzwriter_s_open(argc, argv, klass) @@ -2901,7 +2906,7 @@ * * Opens a file specified by +filename+ as a gzipped file, and returns a * GzipReader object associated with that file. Further details of this method - * are in Zlib::GzipReader.new and ZLib::GzipReader.wrap. + * are in Zlib::GzipReader.new and ZLib::GzipFile.wrap. */ static VALUE rb_gzreader_s_open(argc, argv, klass) Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 26421) +++ ruby_1_8/ChangeLog (revision 26422) @@ -1,3 +1,10 @@ +Tue Jan 26 20:13:27 2010 NARUSE, Yui <naruse@r...> + + * ext/zlib/zlib.c (rb_gzfile_s_wrap): add rdoc. + patched by Hugh Sasse [ruby-core:27692] + + * ext/zlib/doc/zlib.rd: removed. + Tue Jan 26 02:25:46 2010 NARUSE, Yui <naruse@r...> * string.c (rb_str_split): add rdoc. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/