From c47c095b9740e7c19d6fdca29ab661c1089221d4 Mon Sep 17 00:00:00 2001 From: knu Date: Sat, 22 Dec 2012 17:22:04 +0000 Subject: Deprecate #{lines,bytes,chars,codepoints} of IO-likes. * io.c (rb_io_lines, rb_io_bytes, rb_io_chars, rb_io_codepoints): Deprecate IO#{lines,bytes,chars,codepoints} and those of ARGF. [Feature #6670] * ext/stringio/stringio.c (strio_lines, strio_bytes, strio_chars) (strio_codepoints): Deprecate StringIO#{lines,bytes,chars,codepoints}. [Feature #6670] * ext/zlib/zlib.c (rb_gzreader_lines, rb_gzreader_bytes): Deprecate Zlib::GzipReader#{lines,bytes}. [Feature #6670] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 9608b8b116..d5b7a0ec6b 100644 --- a/NEWS +++ b/NEWS @@ -67,6 +67,10 @@ with all sufficient information, see the ChangeLog file. * extended method: * Hash#default_proc= can be passed nil to clear the default proc. + * IO + * deprecated methods: + * IO#lines, #bytes, #chars and #codepoints are deprecated. + * Kernel * added method: * added Kernel#Hash conversion method like Array() or Float(). @@ -335,6 +339,10 @@ with all sufficient information, see the ChangeLog file. * Shellwords#shelljoin() accepts non-string objects in the given array, each of which is stringified using to_s. +* stringio + * deprecated methods: + * StringIO#lines, #bytes, #chars and #codepoints are deprecated. + * syslog * Added Syslog::Logger which provides a Logger API atop Syslog. * Syslog::Priority, Syslog::Level, Syslog::Option and Syslog::Macros @@ -358,6 +366,8 @@ with all sufficient information, see the ChangeLog file. * Added support for the new deflate strategies Zlib::RLE and Zlib::FIXED. * Zlib streams are now processed without the GVL. This allows gzip, zlib and deflate streams to be processed in parallel. + * deprecated methods: + * Zlib::GzipReader#lines and #bytes are deprecated. === Language changes @@ -383,6 +393,24 @@ with all sufficient information, see the ChangeLog file. works because str.lines returns an array. Replace lines with each_line in such cases. + * IO#lines + * IO#chars + * IO#codepoints + * IO#bytes + * ARGF#lines + * ARGF#chars + * ARGF#codepoints + * ARGF#bytes + * StringIO#lines + * StringIO#chars + * StringIO#codepoints + * StringIO#bytes + * Zlib::GzipReader#lines + * Zlib::GzipReader#bytes + + These methods are deprecated in favor of each_line, each_byte, + each_char and each_codepoint. + * Signal.trap See above. -- cgit v1.2.3