2013-02-25 04:44:08 +04:00
|
|
|
# -*- rdoc -*-
|
|
|
|
|
2013-02-25 04:41:07 +04:00
|
|
|
= NEWS for Ruby 2.1.0
|
2008-12-12 12:46:28 +03:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2013-02-25 04:41:07 +04:00
|
|
|
== Changes since the 2.0.0 release
|
2010-09-15 20:14:05 +04:00
|
|
|
|
2013-02-23 18:23:39 +04:00
|
|
|
=== Language changes
|
|
|
|
=== Core classes updates (outstanding ones only)
|
2013-03-10 22:23:00 +04:00
|
|
|
|
2013-03-14 06:54:30 +04:00
|
|
|
* GC
|
|
|
|
* added environment variable:
|
|
|
|
* RUBY_HEAP_SLOTS_GROWTH_FACTOR: growth rate of the heap.
|
|
|
|
|
2013-04-03 16:25:09 +04:00
|
|
|
* IO
|
|
|
|
* extended methods:
|
|
|
|
* IO#seek accepts symbols (:CUR, :END, :SET) for 2nd argument.
|
|
|
|
|
2013-05-14 12:42:58 +04:00
|
|
|
* Kernel
|
|
|
|
* New methods:
|
|
|
|
* Kernel#singleton_method
|
|
|
|
|
2013-06-14 09:35:11 +04:00
|
|
|
* Module
|
|
|
|
* New methods:
|
|
|
|
* Module#using, which activates refinements of the specified module only
|
|
|
|
in the current class or module definition.
|
|
|
|
|
2013-03-10 22:23:00 +04:00
|
|
|
* Mutex
|
|
|
|
* misc
|
|
|
|
* Mutex#owned? is no longer experimental.
|
|
|
|
|
2013-04-19 21:50:38 +04:00
|
|
|
* String
|
|
|
|
* New methods:
|
2013-05-18 15:16:56 +04:00
|
|
|
* String#scrub and String#scrub! verify and fix invalid byte sequence.
|
2013-04-19 21:50:38 +04:00
|
|
|
* extended methods:
|
|
|
|
* If invalid: :replace is specified for String#encode, replace
|
|
|
|
invalid byte sequence even if the destination encoding equals to
|
|
|
|
the source encoding.
|
|
|
|
|
2013-04-02 15:28:57 +04:00
|
|
|
* pack/unpack (Array/String)
|
2013-04-02 18:58:32 +04:00
|
|
|
* Q! and q! directives for long long type if platform has the type.
|
2013-04-02 15:28:57 +04:00
|
|
|
|
2013-07-01 07:57:16 +04:00
|
|
|
* toplevel
|
|
|
|
* extended methods:
|
|
|
|
* main.using activates refinements in the ancestors of the argument
|
|
|
|
module to support refinement inheritance by Module#include.
|
|
|
|
|
2013-02-23 18:23:39 +04:00
|
|
|
=== Core classes compatibility issues (excluding feature bug fixes)
|
2013-03-07 21:54:49 +04:00
|
|
|
|
2013-05-08 12:47:26 +04:00
|
|
|
* IO
|
|
|
|
* incompatible changes:
|
|
|
|
* open ignore internal encoding if external encoding is ASCII-8BIT.
|
|
|
|
|
2013-06-14 09:35:11 +04:00
|
|
|
* Kernel#untrusted?, untrust, and trust
|
|
|
|
* These methods are deprecated and their behavior is same as tainted?,
|
|
|
|
taint, and untaint, respectively. If $VERBOSE is true, they show warnings.
|
|
|
|
|
2013-03-07 21:54:49 +04:00
|
|
|
* Module#ancestors
|
2013-06-07 02:16:43 +04:00
|
|
|
* The ancestors of a singleton class now include singleton classes,
|
|
|
|
in particular itself.
|
2013-03-07 21:54:49 +04:00
|
|
|
|
2013-06-07 02:18:24 +04:00
|
|
|
* Numeric#quo
|
|
|
|
* Raises TypeError instead of ArgumentError if the receiver doesn't have
|
|
|
|
to_r method.
|
|
|
|
|
2013-02-23 18:23:39 +04:00
|
|
|
=== Stdlib updates (outstanding ones only)
|
2013-03-11 21:27:03 +04:00
|
|
|
|
2013-05-22 14:38:37 +04:00
|
|
|
* Digest
|
|
|
|
* extended methods:
|
|
|
|
* Digest::Class.file takes optional arguments for its constructor
|
|
|
|
|
2013-04-13 07:08:28 +04:00
|
|
|
* Matrix
|
|
|
|
* Added Vector#cross_product.
|
|
|
|
|
2013-03-11 21:27:03 +04:00
|
|
|
* Net::SMTP
|
2013-04-03 15:43:42 +04:00
|
|
|
* Added Net::SMTP#rset to implement the RSET command
|
2013-03-24 00:36:42 +04:00
|
|
|
|
2013-04-04 15:12:12 +04:00
|
|
|
* Pathname
|
|
|
|
* New methods:
|
|
|
|
* Pathname#write
|
|
|
|
* Pathname#binwrite
|
|
|
|
|
2013-04-25 11:02:31 +04:00
|
|
|
* OpenSSL::BN
|
|
|
|
* extended methods:
|
|
|
|
* OpenSSL::BN.new allows Fixnum/Bignum argument.
|
|
|
|
|
2013-04-09 14:53:41 +04:00
|
|
|
* open-uri
|
|
|
|
* Support multiple fields with same field name (like Set-Cookie).
|
|
|
|
|
2013-04-06 17:16:36 +04:00
|
|
|
* Resolv
|
|
|
|
* New methods:
|
|
|
|
* Resolv::DNS.fetch_resource
|
2013-04-06 18:32:34 +04:00
|
|
|
* One-shot multicast DNS support
|
2013-04-06 18:52:48 +04:00
|
|
|
* Support LOC resources
|
2013-04-06 17:16:36 +04:00
|
|
|
|
2013-03-24 00:10:11 +04:00
|
|
|
* Rinda::RingServer, Rinda::RingFinger
|
2013-03-24 00:36:42 +04:00
|
|
|
* Rinda now supports multicast sockets. See Rinda::RingServer and
|
|
|
|
Rinda::RingFinger for details.
|
2013-03-11 21:27:03 +04:00
|
|
|
|
2013-06-05 01:54:58 +04:00
|
|
|
* RubyGems
|
|
|
|
* Updated to 2.0.3. See
|
|
|
|
http://rubygems.rubyforge.org/rubygems-update/History_txt.html#label-2.0.3+%2F+2012-03-1
|
|
|
|
for release notes.
|
|
|
|
|
2013-05-11 14:20:38 +04:00
|
|
|
* Socket
|
|
|
|
* New methods:
|
|
|
|
* Socket.getifaddrs
|
|
|
|
|
2013-05-21 17:51:25 +04:00
|
|
|
* StringScanner
|
|
|
|
* extended methods:
|
|
|
|
* StringScanner#[] supports named captures.
|
|
|
|
|
2013-07-26 15:15:06 +04:00
|
|
|
* Syslog::Logger
|
|
|
|
* Added facility.
|
|
|
|
|
2013-04-20 17:50:47 +04:00
|
|
|
* Tempfile
|
|
|
|
* New methods:
|
|
|
|
* Tempfile.create
|
|
|
|
|
2013-05-30 11:59:21 +04:00
|
|
|
* CGI::Util
|
|
|
|
* All class methods modulized.
|
|
|
|
|
2013-06-16 06:02:33 +04:00
|
|
|
* XMLRPC::Client
|
|
|
|
* New methods:
|
|
|
|
* XMLRPC::Client#http. It returns Net::HTTP for the client. Normally,
|
|
|
|
it is not needed. It is useful when you want to change minor HTTP client
|
|
|
|
options. You can change major HTTP client options by XMLRPC::Client
|
|
|
|
methods. You should use XMLRPC::Client methods for changing major
|
|
|
|
HTTP client options instead of XMLRPC::Client#http.
|
|
|
|
|
2013-07-26 18:19:12 +04:00
|
|
|
* REXML::Parsers::StreamParser
|
|
|
|
* Supports "entity" event.
|
|
|
|
|
2013-07-07 06:55:10 +04:00
|
|
|
* REXML::Text
|
|
|
|
* REXML::Text#<< supports method chain like 'text << "XXX" << "YYY"'.
|
|
|
|
* REXML::Text#<< supports not "raw" mode.
|
|
|
|
|
2013-02-23 18:23:39 +04:00
|
|
|
=== Stdlib compatibility issues (excluding feature bug fixes)
|
2013-04-25 09:27:41 +04:00
|
|
|
|
2013-07-19 06:22:11 +04:00
|
|
|
* Set
|
|
|
|
* incompatible changes:
|
|
|
|
* Set#to_set now returns self instead of generating a copy.
|
|
|
|
|
2013-04-25 09:27:41 +04:00
|
|
|
* URI
|
|
|
|
* incompatible changes:
|
|
|
|
* URI.decode_www_form follows current WHATWG URL Standard.
|
|
|
|
It gets encoding argument to specify the character encoding.
|
|
|
|
It now allows loose percent encoded strings, but denies ;-separator.
|
|
|
|
* URI.encode_www_form follows current WHATWG URL Standard.
|
|
|
|
It gets encoding argument to convert before percent encode.
|
|
|
|
UTF-16 strings aren't converted to UTF-8 before percent encode by default.
|
|
|
|
|
2013-06-14 04:53:37 +04:00
|
|
|
=== Built-in global variables compatibility issues
|
|
|
|
|
|
|
|
* $SAFE
|
|
|
|
* $SAFE=4 is obsolete. If $SAFE is set to 4 or larger, an ArgumentError
|
|
|
|
is raised.
|
|
|
|
|
2013-02-23 18:23:39 +04:00
|
|
|
=== C API updates
|