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.
|
|
|
|
|
|
|
|
== Changes since the 1.9.1 release
|
|
|
|
=== Library updates (outstanding ones only)
|
|
|
|
|
|
|
|
* builtin classes
|
|
|
|
|
2009-02-03 02:36:55 -05:00
|
|
|
* Array
|
2009-02-04 05:47:25 -05:00
|
|
|
* new method:
|
2010-04-01 10:53:44 -04:00
|
|
|
* Array#keep_if
|
2010-01-20 21:15:48 -05:00
|
|
|
* Array#rotate!
|
|
|
|
* Array#rotate
|
2010-04-01 10:53:44 -04:00
|
|
|
* Array#select!
|
|
|
|
* Array#sort_by!
|
2009-02-04 05:47:25 -05:00
|
|
|
|
2010-03-25 05:11:47 -04:00
|
|
|
* extended methods:
|
|
|
|
* Array#{uniq,uniq!} can take a block.
|
|
|
|
|
2009-02-04 05:47:25 -05:00
|
|
|
* Dir
|
|
|
|
* new method:
|
|
|
|
* Dir.home
|
2009-02-03 02:36:55 -05:00
|
|
|
|
2010-01-13 01:26:11 -05:00
|
|
|
* Encoding
|
|
|
|
* new encodings:
|
|
|
|
* Big5
|
|
|
|
* Big5-UAO
|
2010-03-12 07:35:39 -05:00
|
|
|
* ISO-2022-JP-KDDI
|
|
|
|
* SJIS-DoCoMo
|
|
|
|
* SJIS-KDDI
|
|
|
|
* SJIS-SoftBank
|
|
|
|
* UTF8-DoCoMo
|
|
|
|
* UTF8-KDDI
|
|
|
|
* UTF8-SoftBank
|
2010-01-13 01:26:11 -05:00
|
|
|
|
|
|
|
* new method:
|
|
|
|
* ascii_compatible?
|
|
|
|
|
2009-09-11 08:52:20 -04:00
|
|
|
* Enumerable
|
2009-09-23 07:30:09 -04:00
|
|
|
* New methods:
|
2009-09-11 08:52:20 -04:00
|
|
|
* Enumerable#join
|
2009-09-23 07:24:51 -04:00
|
|
|
* Enumerable#chunk
|
2010-04-01 10:53:44 -04:00
|
|
|
* Enumerable#collect_concat
|
2010-03-03 21:29:07 -05:00
|
|
|
* Enumerable#each_entry
|
2010-04-01 10:53:44 -04:00
|
|
|
* Enumerable#flat_map
|
2009-09-23 07:24:51 -04:00
|
|
|
* Enumerable#slice_before
|
2009-09-11 08:52:20 -04:00
|
|
|
|
2009-02-09 00:51:31 -05:00
|
|
|
* Enumerator
|
2009-08-19 12:36:00 -04:00
|
|
|
* new methods:
|
|
|
|
* Enumerator#peek
|
|
|
|
* Enumerator#next_values
|
|
|
|
* Enumerator#peek_values
|
|
|
|
* Enumerator#feed
|
|
|
|
* StopIteration#result
|
|
|
|
|
2009-02-09 00:51:31 -05:00
|
|
|
* extended methods:
|
|
|
|
* #with_index accepts an optional argument that specifies the
|
|
|
|
index number to start with, defaulted to 0.
|
|
|
|
|
|
|
|
* incompatible changes:
|
|
|
|
* #rewind now calls the "rewind" method of the enclosed object
|
|
|
|
if defined.
|
2009-08-19 12:36:00 -04:00
|
|
|
* #next doesn't clear the position at end.
|
2009-02-09 00:51:31 -05:00
|
|
|
|
2009-09-11 08:52:20 -04:00
|
|
|
* ENV
|
|
|
|
* Uses locale's encoding
|
2010-01-10 22:58:39 -05:00
|
|
|
* ENV.[]= raises Errno::{EINVAL,ENOMEM} etc. on failure.
|
2009-09-11 08:52:20 -04:00
|
|
|
|
2010-01-05 00:51:47 -05:00
|
|
|
* Float
|
|
|
|
* new constants:
|
|
|
|
* Float::INFINITY
|
|
|
|
* Float::NAN
|
|
|
|
|
2010-01-11 19:32:22 -05:00
|
|
|
* File
|
|
|
|
* new methods:
|
|
|
|
* File.realpath
|
|
|
|
* File.realdirpath
|
|
|
|
|
2010-03-03 23:51:43 -05:00
|
|
|
* GC::Profiler
|
|
|
|
* new method:
|
|
|
|
* GC::Profiler.total_time
|
|
|
|
|
2008-12-22 07:27:26 -05:00
|
|
|
* IO
|
2009-06-23 13:01:58 -04:00
|
|
|
* new method:
|
2010-03-25 04:23:17 -04:00
|
|
|
* IO#autoclose=
|
|
|
|
* IO#autoclose?
|
2009-06-23 13:01:58 -04:00
|
|
|
* IO#fdatasync
|
2010-03-25 04:23:17 -04:00
|
|
|
* IO#codepoints
|
|
|
|
* IO#each_codepoint
|
2009-06-23 13:01:58 -04:00
|
|
|
|
2009-02-04 07:59:09 -05:00
|
|
|
* extended methods:
|
|
|
|
* IO.pipe can take a block.
|
2008-12-22 07:27:26 -05:00
|
|
|
|
2009-03-19 11:31:24 -04:00
|
|
|
* new modules:
|
|
|
|
* IO::WaitReadable
|
|
|
|
* IO::WaitWritable
|
2009-03-21 02:56:33 -04:00
|
|
|
They are used to extend non-blocking exceptions.
|
2009-03-19 11:31:24 -04:00
|
|
|
|
2010-03-24 23:39:00 -04:00
|
|
|
* Kernel
|
|
|
|
* new method:
|
2010-04-01 10:53:44 -04:00
|
|
|
* Kernel#respond_to_missing?
|
2010-03-24 23:39:00 -04:00
|
|
|
* Kernel#singleton_class
|
|
|
|
|
2009-09-11 08:52:20 -04:00
|
|
|
* MatchData
|
|
|
|
* New method:
|
|
|
|
* MatchData#==
|
|
|
|
|
2010-03-22 07:44:01 -04:00
|
|
|
* Proc
|
|
|
|
* extended method:
|
|
|
|
* Proc#source_location returns location even if receiver is a method
|
|
|
|
defined by attr_reader / attr_writer / attr_accessor.
|
|
|
|
|
2008-12-22 22:52:11 -05:00
|
|
|
* Process
|
2009-02-04 07:59:09 -05:00
|
|
|
* extended methods:
|
|
|
|
* Process.spawn accepts [:child, FD] for a redirect target.
|
2008-12-22 22:52:11 -05:00
|
|
|
|
2009-09-11 08:52:20 -04:00
|
|
|
* Random (new library for generating pseudo-random numbers)
|
|
|
|
|
2009-03-14 14:04:21 -04:00
|
|
|
* String
|
|
|
|
* extended methods:
|
2009-03-15 01:01:48 -04:00
|
|
|
* string[regexp, name] is supported for named capture.
|
2009-03-14 14:04:21 -04:00
|
|
|
|
2010-03-26 10:55:00 -04:00
|
|
|
* Thread
|
|
|
|
* new methods:
|
|
|
|
* Thread#add_trace_func
|
|
|
|
* Thread#set_trace_func
|
|
|
|
|
2009-04-21 12:27:19 -04:00
|
|
|
* Time
|
|
|
|
* extended feature:
|
|
|
|
* time_t restriction is removed to represent before 1901 and after 2038.
|
|
|
|
Proleptic Gregorian calendar is used for old dates.
|
2009-05-12 08:07:49 -04:00
|
|
|
* Time.new have optional arguments to specify date with time offset.
|
|
|
|
* Time#getlocal, Time#localtime have optional time offset argument.
|
2009-04-21 12:27:19 -04:00
|
|
|
|
2009-05-22 08:39:22 -04:00
|
|
|
* new method:
|
|
|
|
* Time#to_r
|
2010-03-30 09:13:20 -04:00
|
|
|
* Time#subsec
|
2010-03-11 08:47:10 -05:00
|
|
|
* Time#round
|
2009-05-22 08:39:22 -04:00
|
|
|
|
2009-04-21 12:43:15 -04:00
|
|
|
* incompatible changes:
|
|
|
|
* The year argument of Time.{utc,gm,local,mktime} is now interpreted as
|
|
|
|
the value itself. For example, Time.utc(99) means the year 99 AD,
|
|
|
|
not 1999 AD.
|
|
|
|
|
2009-04-16 10:17:14 -04:00
|
|
|
* Kernel
|
2009-09-11 08:52:20 -04:00
|
|
|
* new method:
|
|
|
|
* Kernel#require_relative
|
|
|
|
|
2009-04-16 10:17:14 -04:00
|
|
|
* extended methods:
|
2009-04-21 14:38:20 -04:00
|
|
|
* respond_to? can be used to detect methods not implemented.
|
|
|
|
For example, Process.respond_to?(:fork) returns false on Windows.
|
2009-04-16 10:17:14 -04:00
|
|
|
|
2010-01-17 14:12:10 -05:00
|
|
|
* digest
|
|
|
|
* new methods:
|
|
|
|
* Digest::Class.base64digest
|
|
|
|
* Digest::Instance#base64digest
|
|
|
|
* Digest::Instance#base64digest!
|
|
|
|
|
2008-12-12 04:46:28 -05:00
|
|
|
* rss
|
|
|
|
|
2009-06-27 00:41:36 -04:00
|
|
|
* 0.2.4 -> 0.2.7.
|
2008-12-12 04:46:28 -05:00
|
|
|
|
|
|
|
* RSS::Maker.make
|
|
|
|
* raise an exception not returns nil for invalid feed making.
|
|
|
|
* requires block.
|
|
|
|
|
|
|
|
* RSS::Maker.[]
|
|
|
|
* new method to return maker class.
|
|
|
|
|
2009-05-16 05:32:36 -04:00
|
|
|
* RSS::Maker.supported?(version)
|
|
|
|
* new method to check whether given version is supported.
|
|
|
|
|
2009-06-27 00:45:24 -04:00
|
|
|
* RSS::Maker: item.guid.permanent_link?
|
|
|
|
* new alias of item.guid.isPermaLink
|
|
|
|
* RSS::Maker: item.guid.permanent_link=
|
|
|
|
* new alias of item.guid.isPermaLink=
|
|
|
|
|
2009-09-11 08:52:20 -04:00
|
|
|
* JSON
|
|
|
|
* Update to JSON 1.1.9
|
|
|
|
|
2008-12-12 04:46:28 -05:00
|
|
|
* REXML
|
|
|
|
|
|
|
|
* REXML::Document.entity_expansion_limit=
|
|
|
|
|
|
|
|
New method to set the entity expansion limit. By default the limit is
|
|
|
|
set to 10000. See the following URL for details.
|
|
|
|
|
|
|
|
http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/
|
|
|
|
|
|
|
|
* logger
|
|
|
|
|
|
|
|
* imported upstream version (logger/1.2.7)
|
|
|
|
* do not raise an exception even if log writing failed.
|
|
|
|
* do not raise ShiftingError if an aged file already exists.
|
|
|
|
(no ShiftingError will be raised from 1.2.7, just warn() instead)
|
|
|
|
|
2010-01-08 23:37:53 -05:00
|
|
|
* net/http
|
|
|
|
* merged net/https.
|
|
|
|
|
2008-12-22 22:52:11 -05:00
|
|
|
* open3
|
2009-02-03 02:55:03 -05:00
|
|
|
* new methods:
|
|
|
|
* Open3.popen2
|
|
|
|
* Open3.popen2e
|
|
|
|
* Open3.capture3
|
|
|
|
* Open3.capture2
|
|
|
|
* Open3.capture2e
|
|
|
|
* Open3.pipeline_rw
|
|
|
|
* Open3.pipeline_r
|
|
|
|
* Open3.pipeline_w
|
|
|
|
* Open3.pipeline_start
|
|
|
|
* Open3.pipeline
|
2008-12-22 22:52:11 -05:00
|
|
|
|
|
|
|
* pty
|
2009-02-04 05:47:25 -05:00
|
|
|
* new method:
|
2009-02-03 02:55:03 -05:00
|
|
|
* PTY.open
|
2008-12-22 22:52:11 -05:00
|
|
|
|
2008-12-31 09:36:31 -05:00
|
|
|
* openssl
|
2009-03-21 02:56:33 -04:00
|
|
|
* new methods:
|
2009-03-20 13:39:44 -04:00
|
|
|
* OpenSSL::Buffering#read_nonblock
|
|
|
|
* OpenSSL::Buffering#write_nonblock
|
2009-03-21 02:56:33 -04:00
|
|
|
* OpenSSL::SSL::SSLSocket#connect_nonblock
|
|
|
|
* OpenSSL::SSL::SSLSocket#accept_nonblock
|
2008-12-31 09:36:31 -05:00
|
|
|
|
2008-12-31 10:11:33 -05:00
|
|
|
* socket
|
2009-02-03 02:55:03 -05:00
|
|
|
|
|
|
|
* incompatible changes:
|
|
|
|
* Socket#{recvfrom,recvfrom_nonblock,accept,accept_nonblock,sysaccept}
|
2009-02-10 06:59:16 -05:00
|
|
|
returns a sender address as Addrinfo object instead of a binary sockaddr string.
|
2009-02-12 07:57:14 -05:00
|
|
|
Addrinfo#to_s returns the old binary sockaddr string.
|
2009-02-10 20:38:02 -05:00
|
|
|
* BasicSocket#getsockopt returns Socket::Option object instead of a binary string.
|
2009-02-12 07:57:14 -05:00
|
|
|
Socket::Option#to_s returns the old binary string.
|
2010-02-03 09:52:23 -05:00
|
|
|
* Socket.do_not_reverse_lookup is turned on by default now.
|
2009-02-03 02:55:03 -05:00
|
|
|
|
|
|
|
* new class:
|
2009-02-05 06:01:43 -05:00
|
|
|
* Addrinfo
|
2009-02-03 02:55:03 -05:00
|
|
|
* Socket::Option
|
|
|
|
* Socket::AncillaryData
|
|
|
|
|
|
|
|
* new methods:
|
|
|
|
* Socket.ip_address_list
|
|
|
|
* Socket.tcp
|
|
|
|
* Socket.tcp_server_loop
|
|
|
|
* Socket.tcp_server_sockets
|
2009-07-19 23:29:22 -04:00
|
|
|
* Socket.udp_server_sockets
|
|
|
|
* Socket.udp_server_loop_on
|
|
|
|
* Socket.udp_server_loop
|
2009-02-03 02:55:03 -05:00
|
|
|
* Socket.unix
|
|
|
|
* Socket.unix_server_loop
|
|
|
|
* Socket.unix_server_socket
|
|
|
|
* Socket.accept_loop
|
|
|
|
* Socket#ipv6only!
|
|
|
|
* BasicSocket#local_address
|
|
|
|
* BasicSocket#remote_address
|
2009-02-26 09:15:39 -05:00
|
|
|
* BasicSocket#connect_address
|
2009-02-03 02:55:03 -05:00
|
|
|
* BasicSocket#sendmsg
|
|
|
|
* BasicSocket#sendmsg_nonblock
|
|
|
|
* BasicSocket#recvmsg
|
|
|
|
* BasicSocket#recvmsg_nonblock
|
2009-02-10 20:30:05 -05:00
|
|
|
* BasicSocket#getpeereid
|
2009-02-03 02:55:03 -05:00
|
|
|
|
|
|
|
* extended methods:
|
|
|
|
* Socket.new's 3rd argument is optional now.
|
2009-02-04 11:21:15 -05:00
|
|
|
* Socket.pair's 3rd argument is optional now.
|
2009-02-03 02:55:03 -05:00
|
|
|
* Socket.pair and UNIXSocket.pair can take a block.
|
|
|
|
* BasicSocket#send, UDPSocket#send, Socket.getnameinfo, Socket#bind, and
|
2009-02-05 06:01:43 -05:00
|
|
|
Socket#{connect,connect_nonblock} accepts an Addrinfo object as sockaddr.
|
2009-02-03 02:55:03 -05:00
|
|
|
* BasicSocket#getsockopt accepts a Socket::Option object.
|
|
|
|
|
2009-02-10 20:38:02 -05:00
|
|
|
* constant names can be accepted as well as constant values.
|
2009-09-11 08:52:20 -04:00
|
|
|
i.e. Socket.new(:PF_INET, :SOCK_STREAM, 0)
|
2009-02-10 20:38:02 -05:00
|
|
|
The constant names can be specified without the prefix.
|
2009-09-11 08:52:20 -04:00
|
|
|
i.e. Socket.new(:INET, :STREAM, 0)
|
2009-02-10 20:38:02 -05:00
|
|
|
* protocol/address family
|
|
|
|
* socket type
|
|
|
|
* socket option protocol level
|
|
|
|
* socket option name
|
|
|
|
* shutdown's argument
|
2008-12-31 10:11:33 -05:00
|
|
|
|
2009-01-30 07:50:55 -05:00
|
|
|
* pathname
|
2009-02-04 05:47:25 -05:00
|
|
|
* new methods:
|
2009-02-27 14:51:56 -05:00
|
|
|
* Pathname#binread
|
|
|
|
* Pathname#realdirpath
|
|
|
|
* Pathname#each_child
|
2009-01-30 07:50:55 -05:00
|
|
|
|
2010-03-07 02:13:31 -05:00
|
|
|
* extended methods:
|
|
|
|
* Pathname#realpath and Pathname#realdirpath takes optional basedir
|
|
|
|
argument.
|
|
|
|
|
2009-02-03 07:28:07 -05:00
|
|
|
* Readline
|
2009-02-04 05:47:25 -05:00
|
|
|
* new methods:
|
2009-02-03 07:28:07 -05:00
|
|
|
* Readline.set_screen_size
|
|
|
|
* Readline.get_screen_size
|
|
|
|
|
|
|
|
* extended methods:
|
|
|
|
* Readline.completion_proc= accepts nil.
|
|
|
|
nil means to use default completion proc.
|
|
|
|
|
2009-02-14 17:03:28 -05:00
|
|
|
* time
|
|
|
|
* incompatible changes:
|
|
|
|
* Time.parse raises ArgumentError when no date information.
|
|
|
|
|
2009-09-23 10:01:07 -04:00
|
|
|
* thread
|
|
|
|
* extended method:
|
|
|
|
* ConditionVariable#wait takes timeout argument.
|
|
|
|
|
2009-02-15 04:42:00 -05:00
|
|
|
* securerandom
|
|
|
|
* new methods:
|
|
|
|
* SecureRandom.urlsafe_base64
|
2009-09-23 07:30:09 -04:00
|
|
|
|
2009-09-11 08:52:20 -04:00
|
|
|
* URI
|
2010-03-17 20:05:10 -04:00
|
|
|
* new methods:
|
|
|
|
* URI.encode_www_form
|
|
|
|
* URI.decode_www_form
|
|
|
|
* URI.encode_www_form_component
|
|
|
|
* URI.decode_www_form_component
|
2009-09-11 08:52:20 -04:00
|
|
|
* Obsoleted methods:
|
2010-03-30 09:13:20 -04:00
|
|
|
* URI.decode
|
|
|
|
* URI.encode
|
|
|
|
* URI.escape
|
|
|
|
* URI.unescape
|
2009-02-15 04:42:00 -05:00
|
|
|
|
2009-02-17 11:59:06 -05:00
|
|
|
* etc
|
|
|
|
* new methods:
|
|
|
|
* Etc::Passwd.each
|
|
|
|
* Etc::Group.each
|
|
|
|
|
2009-04-22 12:31:06 -04:00
|
|
|
* zlib
|
|
|
|
* new methods:
|
|
|
|
* Zlib::GzipFile#path
|
|
|
|
|
2010-01-05 12:58:52 -05:00
|
|
|
* rbconfig
|
|
|
|
* new methods:
|
|
|
|
* RbConfig.ruby
|
|
|
|
|
2009-09-11 08:52:20 -04:00
|
|
|
=== Language changes
|
|
|
|
|
|
|
|
* Regexp properties (\p{}) names now ignore underscores, spaces, and case, so
|
|
|
|
\p{ol chiki} is the same as \p{Ol_Chiki}
|
2010-01-05 00:51:47 -05:00
|
|
|
* Regexps now support Unicode 5.2 (new characters and scripts)
|
2009-09-11 08:52:20 -04:00
|
|
|
* \d, \s, and \w are now ASCII only; use POSIX bracket classes and \p{} for
|
|
|
|
Unicode semantics
|
|
|
|
* $: no longer includes the current directory, use require_relative
|
2010-03-16 12:26:04 -04:00
|
|
|
* Symbol with an invalid encoding is forbidden to exist.
|
2009-09-11 08:52:20 -04:00
|
|
|
|
2009-05-20 10:04:04 -04:00
|
|
|
=== Compilation options
|
|
|
|
|
2009-09-11 08:52:20 -04:00
|
|
|
* --program-prefix and --program-suffix no longer act on the shared object
|
2009-05-20 10:04:04 -04:00
|
|
|
names nor paths to libraries.
|
|
|
|
|
2009-09-11 08:52:20 -04:00
|
|
|
use --with-rubylibprefix='${libruby}/${RUBY_INSTALL_NAME}' and
|
2009-05-20 10:04:04 -04:00
|
|
|
--with-soname='${RUBY_INSTALL_NAME}' for the same result as Ruby 1.9.1.
|
|
|
|
|
2009-09-11 08:52:20 -04:00
|
|
|
* --with-arch is added for universal binary, instead of
|
|
|
|
--enable-fat-binary option.
|
|
|
|
|
2008-12-12 04:46:28 -05:00
|
|
|
=== Compatibility issues (excluding feature bug fixes)
|
|
|
|
|
|
|
|
* Enumerator#rewind
|
2009-02-04 07:59:09 -05:00
|
|
|
* Socket#recvfrom
|
|
|
|
* Socket#recvfrom_nonblock
|
|
|
|
* Socket#accept
|
|
|
|
* Socket#accept_nonblock
|
|
|
|
* Socket#sysaccept
|
|
|
|
* BasicSocket#getsockopt
|
2009-04-25 02:04:40 -04:00
|
|
|
* Time.utc
|
|
|
|
* Time.gm
|
|
|
|
* Time.local
|
|
|
|
* Time.mktime
|
2009-02-15 05:03:02 -05:00
|
|
|
* Time.parse
|
2009-05-20 10:04:04 -04:00
|
|
|
* --program-prefix and --program-suffix
|
2009-09-11 08:52:20 -04:00
|
|
|
* --enable-fat-binary
|
|
|
|
* $:
|
2008-12-12 04:46:28 -05:00
|
|
|
|
|
|
|
See above.
|