2010-02-03 17:52:23 +03:00
|
|
|
# -*- rd -*-
|
2008-12-12 12:46:28 +03: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 11:11:44 +04:00
|
|
|
== Changes since the 1.9.2 release
|
2010-09-15 20: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 12:20:47 +04:00
|
|
|
=== C API updates
|
|
|
|
|
|
|
|
* rb_scan_args() is enhanced with support for option hash argument
|
|
|
|
extraction.
|
|
|
|
|
2010-12-06 13:01:40 +03:00
|
|
|
* ruby_vm_at_exit() added. This enables extension libs to hook a VM
|
2010-12-02 17:58:41 +03:00
|
|
|
termination.
|
|
|
|
|
2010-07-05 11:11:44 +04:00
|
|
|
=== Library updates (outstanding ones only)
|
|
|
|
|
|
|
|
* builtin classes
|
|
|
|
|
2010-12-28 01:27:10 +03:00
|
|
|
* ARGF
|
|
|
|
* new methods:
|
|
|
|
* ARGF.print
|
|
|
|
* ARGF.printf
|
|
|
|
* ARGF.putc
|
|
|
|
* ARGF.puts
|
|
|
|
* ARGF.read_nonblock
|
|
|
|
* ARGF.to_write_io
|
|
|
|
* ARGF.write
|
|
|
|
|
2010-12-22 02:59:39 +03:00
|
|
|
* Array
|
|
|
|
* extended method:
|
|
|
|
* Array#pack supports endian modifiers
|
2010-07-05 11:11:44 +04:00
|
|
|
|
2010-12-06 13:01:51 +03:00
|
|
|
* Encoding
|
|
|
|
* new encodings:
|
|
|
|
* CP950
|
|
|
|
* CP951
|
|
|
|
* UTF-16
|
|
|
|
* UTF-32
|
2011-03-09 05:59:04 +03:00
|
|
|
* change alias:
|
|
|
|
* SJIS is Windows-31J
|
2010-12-06 13:01:51 +03:00
|
|
|
|
2011-01-25 01:50:15 +03:00
|
|
|
* File
|
2010-12-22 02:59:39 +03:00
|
|
|
* new constant:
|
2010-08-27 10:26:41 +04:00
|
|
|
* File::NULL
|
2010-08-27 07:45:24 +04:00
|
|
|
name of NULL device.
|
|
|
|
|
2010-12-22 02:59:39 +03:00
|
|
|
* IO
|
|
|
|
* extended method:
|
|
|
|
* IO#putc supports multibyte characters
|
|
|
|
* new method:
|
|
|
|
* IO#advise
|
|
|
|
|
|
|
|
* Kernel
|
|
|
|
* Kernel#respond_to? now returns false for protected methods.
|
2010-12-22 19:49:39 +03:00
|
|
|
* move #__id__ to BasicObject.
|
2010-12-22 02:59:39 +03:00
|
|
|
|
2010-12-22 02:59:42 +03:00
|
|
|
* Module
|
|
|
|
* new methods:
|
|
|
|
* Module#private_constant
|
|
|
|
* Module#public_constant
|
|
|
|
|
2010-08-28 01:50:06 +04:00
|
|
|
* String
|
2011-01-25 01:50:15 +03:00
|
|
|
* extended method:
|
|
|
|
* String#unpack supports endian modifiers
|
2010-12-22 02:59:39 +03:00
|
|
|
* new method:
|
2010-08-28 01:50:06 +04:00
|
|
|
* String#prepend
|
2011-03-07 11:44:45 +03:00
|
|
|
* String#byteslice
|
2010-08-28 01:50:06 +04:00
|
|
|
|
2010-08-31 01:50:11 +04:00
|
|
|
* Time
|
2010-12-22 02:59:39 +03:00
|
|
|
* extended method:
|
2010-08-31 01:50:11 +04:00
|
|
|
* Time#strftime supports %:z and %::z.
|
|
|
|
|
2011-03-10 19:54:02 +03:00
|
|
|
* Process
|
|
|
|
* Process#maxgroups and Process#maxgroups= now raise NotImplementedError if
|
|
|
|
the platform don't support supplementary groups concept.
|
|
|
|
|
2010-08-11 16: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
|
|
|
|
|
2011-02-07 16:37:43 +03:00
|
|
|
* net/http
|
|
|
|
* SNI (Server Name Indication) supported for HTTPS.
|
|
|
|
|
2011-05-13 23:25:18 +04:00
|
|
|
* openssl
|
|
|
|
* PKey::RSA and PKey::DSA now use the generic X.509 encoding scheme
|
|
|
|
(e.g. used in a X.509 certificate's Subject Public Key Info) when
|
|
|
|
exporting public keys to DER or PEM. Backward compatibility is
|
|
|
|
ensured by (already existing) fallbacks during creation.
|
2011-05-23 02:22:16 +04:00
|
|
|
* OpenSSL::ASN1::Constructive#new and OpenSSL::ASN1::Primitive#new
|
|
|
|
(and the constructors of their sub-classes) will no longer force
|
|
|
|
tagging to be set to :EXPLICIT when tag and/or tag_class are passed
|
|
|
|
as parameters. tagging must be set explicitly.
|
|
|
|
* Support for infinite length encodings via infinite_length attribute.
|
2011-05-13 23:25:18 +04:00
|
|
|
|
2011-01-01 05:03:59 +03:00
|
|
|
* optparse
|
|
|
|
* support for bash/zsh completion.
|
|
|
|
|
2010-12-22 02:59:39 +03:00
|
|
|
* RDoc
|
2011-05-16 03:00:21 +04:00
|
|
|
* RDoc has been upgraded to RDoc 3.6.1. For full release notes see
|
2011-02-05 09:20:57 +03:00
|
|
|
http://docs.seattlerb.org/rdoc/History_txt.html
|
2010-10-11 01:54:22 +04:00
|
|
|
|
2010-10-30 16:10:56 +04:00
|
|
|
* rexml
|
|
|
|
* [incompatible] support Ruby native encoding mechanism
|
2010-12-06 13:01:40 +03:00
|
|
|
and iconv dependency is dropped. This means encoding
|
2010-10-30 16:10:56 +04:00
|
|
|
methods (Document#encoding, XMLDecl#encoding,
|
|
|
|
Output#encoding and Source#encoding) return an Encoding
|
|
|
|
object instead of an encoding name.
|
|
|
|
|
2011-01-19 03:08:49 +03:00
|
|
|
* Rubygems
|
|
|
|
* Rubygems has been upgraded to rubygems 1.5.0. For full release notes see
|
|
|
|
http://rubygems.rubyforge.org/rubygems-update/History_txt.html
|
|
|
|
|
2010-12-22 02:59:39 +03:00
|
|
|
* stringio
|
|
|
|
* extended method:
|
|
|
|
* StringIO#set_encoding can get 2nd argument and optional hash.
|
|
|
|
|
2011-02-22 06:36:38 +03:00
|
|
|
* test/unit
|
|
|
|
* New arguments:
|
|
|
|
* -j N, --jobs=N: Allow run N testcases at once.
|
|
|
|
* --jobs-status: Show status of jobs when parallel running.
|
|
|
|
* --no-retry: Don't retry testcases which failed when parallel running.
|
|
|
|
* --ruby=RUBY: path to ruby for job(worker) process. optional.
|
|
|
|
|
2010-12-22 02:59:39 +03:00
|
|
|
* 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-20 07:50:13 +03:00
|
|
|
|
2011-05-23 23:05:47 +04:00
|
|
|
* yaml
|
|
|
|
* The default YAML engine is now Psych. You may downgrade to syck by setting
|
|
|
|
YAML::ENGINE.yamler = 'syck'.
|
|
|
|
|
2010-12-27 19:48:14 +03:00
|
|
|
* zlib
|
|
|
|
* new methods:
|
|
|
|
* Zlib.deflate
|
|
|
|
* Zlib.inflate
|
|
|
|
|
2011-05-01 20:16:05 +04:00
|
|
|
* FileUtils
|
|
|
|
* extended method:
|
|
|
|
* FileUtils#chmod supports symbolic mode argument.
|
|
|
|
|
2010-10-28 15:14:05 +04:00
|
|
|
=== Language changes
|
|
|
|
|
2010-11-08 08:32:45 +03: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 15:14:05 +04:00
|
|
|
|
2010-12-28 01:27:07 +03:00
|
|
|
* Turning on/off indentation warnings with directives.
|
|
|
|
("# -*- warn-indent: true -*-" / "# -*- warn-indent: false -*-")
|
|
|
|
|
2010-07-05 11:11:44 +04:00
|
|
|
=== Compatibility issues (excluding feature bug fixes)
|
|
|
|
|
|
|
|
* Kernel#respond_to?
|
|
|
|
|
|
|
|
See above.
|