2010-02-03 09:52:23 -05:00
|
|
|
# -*- rd -*-
|
2008-12-12 04:46:28 -05:00
|
|
|
= NEWS
|
|
|
|
|
|
|
|
This document is a list of user visible feature changes made between
|
|
|
|
releases except for bug fixes.
|
|
|
|
|
|
|
|
Note that each entry is kept so brief that no reason behind or
|
|
|
|
reference information is supplied with. For a full list of changes
|
|
|
|
with all sufficient information, see the ChangeLog file.
|
|
|
|
|
2010-07-05 03:11:44 -04:00
|
|
|
== Changes since the 1.9.2 release
|
2010-09-15 12:14:05 -04:00
|
|
|
=== License
|
|
|
|
|
|
|
|
* Ruby's License is changed from a dual license with GPLv2
|
|
|
|
to a dual license with 2-clause BSDL.
|
|
|
|
|
2010-09-10 04:20:47 -04:00
|
|
|
=== C API updates
|
|
|
|
|
|
|
|
* rb_scan_args() is enhanced with support for option hash argument
|
|
|
|
extraction.
|
|
|
|
|
2010-12-06 05:01:40 -05:00
|
|
|
* ruby_vm_at_exit() added. This enables extension libs to hook a VM
|
2010-12-02 09:58:41 -05:00
|
|
|
termination.
|
|
|
|
|
2010-07-05 03:11:44 -04:00
|
|
|
=== Library updates (outstanding ones only)
|
|
|
|
|
|
|
|
* builtin classes
|
|
|
|
|
2010-12-21 18:59:39 -05:00
|
|
|
* Array
|
|
|
|
* extended method:
|
|
|
|
* Array#pack supports endian modifiers
|
2010-07-05 03:11:44 -04:00
|
|
|
|
2010-12-06 05:01:51 -05:00
|
|
|
* Encoding
|
|
|
|
* new encodings:
|
|
|
|
* CP950
|
|
|
|
* CP951
|
|
|
|
* UTF-16
|
|
|
|
* UTF-32
|
|
|
|
|
2010-08-26 23:45:24 -04:00
|
|
|
* Float
|
2010-12-21 18:59:39 -05:00
|
|
|
* new constant:
|
2010-08-27 02:26:41 -04:00
|
|
|
* File::NULL
|
2010-08-26 23:45:24 -04:00
|
|
|
name of NULL device.
|
2010-12-21 18:59:39 -05:00
|
|
|
* extended method:
|
2010-10-14 09:12:56 -04:00
|
|
|
* String#unpack supports endian modifiers
|
2010-08-26 23:45:24 -04:00
|
|
|
|
2010-12-21 18:59:39 -05:00
|
|
|
* IO
|
|
|
|
* extended method:
|
|
|
|
* IO#putc supports multibyte characters
|
|
|
|
* new method:
|
|
|
|
* IO#advise
|
|
|
|
|
|
|
|
* Kernel
|
|
|
|
* Kernel#respond_to? now returns false for protected methods.
|
|
|
|
* move #__id__ and #object_id to BasicObject.
|
|
|
|
|
2010-08-27 17:50:06 -04:00
|
|
|
* String
|
2010-12-21 18:59:39 -05:00
|
|
|
* new method:
|
2010-08-27 17:50:06 -04:00
|
|
|
* String#prepend
|
|
|
|
|
2010-08-30 17:50:11 -04:00
|
|
|
* Time
|
2010-12-21 18:59:39 -05:00
|
|
|
* extended method:
|
2010-08-30 17:50:11 -04:00
|
|
|
* Time#strftime supports %:z and %::z.
|
|
|
|
|
2010-08-11 08:00:42 -04:00
|
|
|
* io/console
|
|
|
|
* new methods:
|
|
|
|
* IO#noecho {|io| }
|
|
|
|
* IO#echo=
|
|
|
|
* IO#echo?
|
|
|
|
* IO#raw {|io| }
|
|
|
|
* IO#raw!
|
|
|
|
* IO#getch
|
|
|
|
* IO#winsize
|
|
|
|
* IO.console
|
|
|
|
|
2010-12-21 18:59:39 -05:00
|
|
|
* RDoc
|
|
|
|
* RDoc has been upgraded to RDoc 3.0.1. For full release notes see
|
|
|
|
http://rdoc.rubyforge.org/History_txt.html
|
2010-10-10 17:54:22 -04:00
|
|
|
|
2010-10-30 08:10:56 -04:00
|
|
|
* rexml
|
|
|
|
* [incompatible] support Ruby native encoding mechanism
|
2010-12-06 05:01:40 -05:00
|
|
|
and iconv dependency is dropped. This means encoding
|
2010-10-30 08:10:56 -04:00
|
|
|
methods (Document#encoding, XMLDecl#encoding,
|
|
|
|
Output#encoding and Source#encoding) return an Encoding
|
|
|
|
object instead of an encoding name.
|
|
|
|
|
2010-12-21 18:59:39 -05:00
|
|
|
* stringio
|
|
|
|
* extended method:
|
|
|
|
* StringIO#set_encoding can get 2nd argument and optional hash.
|
|
|
|
|
|
|
|
* uri
|
|
|
|
* new methods:
|
|
|
|
* URI::Generic#hostname
|
|
|
|
* URI::Generic#hostname=
|
|
|
|
|
|
|
|
* webrick
|
|
|
|
* new method:
|
|
|
|
* WEBrick::HTTPRequest#continue for generating '100 continue' response.
|
|
|
|
* new logging directive:
|
|
|
|
* %{remote}p for remote (client) port number.
|
2010-12-19 23:50:13 -05:00
|
|
|
|
2010-10-28 07:14:05 -04:00
|
|
|
=== Language changes
|
|
|
|
|
2010-11-08 00:32:45 -05:00
|
|
|
* Regexps now support Unicode 6.0. (new characters and scripts)
|
|
|
|
|
|
|
|
* [experimental] Regexps now support Age property.
|
|
|
|
Unlike Perl, current implementation takes interpretation of the
|
|
|
|
interpretation of UTS #18.
|
|
|
|
http://www.unicode.org/reports/tr18/
|
2010-10-28 07:14:05 -04:00
|
|
|
|
2010-07-05 03:11:44 -04:00
|
|
|
=== Compatibility issues (excluding feature bug fixes)
|
|
|
|
|
|
|
|
* Kernel#respond_to?
|
|
|
|
|
|
|
|
See above.
|
2010-10-30 08:10:56 -04:00
|
|
|
|
2010-11-02 08:47:18 -04:00
|
|
|
* REXML::Document#encoding, REXML::XMLDecl#encoding,
|
2010-10-30 08:10:56 -04:00
|
|
|
REXML::Output#encoding and REXML::Source#encoding
|
|
|
|
|
|
|
|
Return an Encoding object not encoding name as a String.
|