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.
|
|
|
|
|
|
|
|
== Changes since the 1.9.1 release
|
|
|
|
=== Library updates (outstanding ones only)
|
|
|
|
|
|
|
|
* builtin classes
|
|
|
|
|
2009-02-03 10:36:55 +03:00
|
|
|
* Array
|
2009-02-04 13:47:25 +03:00
|
|
|
* new method:
|
|
|
|
* Array#sort_by!
|
2010-01-21 05:15:48 +03:00
|
|
|
* Array#rotate!
|
|
|
|
* Array#rotate
|
2009-02-04 13:47:25 +03:00
|
|
|
|
|
|
|
* Dir
|
|
|
|
* new method:
|
|
|
|
* Dir.home
|
2009-02-03 10:36:55 +03:00
|
|
|
|
2010-01-13 09:26:11 +03:00
|
|
|
* Encoding
|
|
|
|
* new encodings:
|
|
|
|
* Big5
|
|
|
|
* Big5-UAO
|
|
|
|
|
|
|
|
* new method:
|
|
|
|
* ascii_compatible?
|
|
|
|
|
2009-09-11 16:52:20 +04:00
|
|
|
* Enumerable
|
2009-09-23 15:30:09 +04:00
|
|
|
* New methods:
|
2009-09-11 16:52:20 +04:00
|
|
|
* Enumerable#join
|
2009-09-23 15:24:51 +04:00
|
|
|
* Enumerable#chunk
|
2010-03-04 05:29:07 +03:00
|
|
|
* Enumerable#each_entry
|
2009-09-23 15:24:51 +04:00
|
|
|
* Enumerable#slice_before
|
2009-09-11 16:52:20 +04:00
|
|
|
|
2009-02-09 08:51:31 +03:00
|
|
|
* Enumerator
|
2009-08-19 20:36:00 +04:00
|
|
|
* new methods:
|
|
|
|
* Enumerator#peek
|
|
|
|
* Enumerator#next_values
|
|
|
|
* Enumerator#peek_values
|
|
|
|
* Enumerator#feed
|
|
|
|
* StopIteration#result
|
|
|
|
|
2009-02-09 08:51:31 +03: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 20:36:00 +04:00
|
|
|
* #next doesn't clear the position at end.
|
2009-02-09 08:51:31 +03:00
|
|
|
|
2009-09-11 16:52:20 +04:00
|
|
|
* ENV
|
|
|
|
* Uses locale's encoding
|
2010-01-11 06:58:39 +03:00
|
|
|
* ENV.[]= raises Errno::{EINVAL,ENOMEM} etc. on failure.
|
2009-09-11 16:52:20 +04:00
|
|
|
|
2010-01-05 08:51:47 +03:00
|
|
|
* Float
|
|
|
|
* new constants:
|
|
|
|
* Float::INFINITY
|
|
|
|
* Float::NAN
|
|
|
|
|
2010-01-12 03:32:22 +03:00
|
|
|
* File
|
|
|
|
* new methods:
|
|
|
|
* File.realpath
|
|
|
|
* File.realdirpath
|
|
|
|
|
2010-03-04 07:51:43 +03:00
|
|
|
* GC::Profiler
|
|
|
|
* new method:
|
|
|
|
* GC::Profiler.total_time
|
|
|
|
|
2008-12-22 15:27:26 +03:00
|
|
|
* IO
|
2009-06-23 21:01:58 +04:00
|
|
|
* new method:
|
|
|
|
* IO#fdatasync
|
|
|
|
|
2009-02-04 15:59:09 +03:00
|
|
|
* extended methods:
|
|
|
|
* IO.pipe can take a block.
|
2008-12-22 15:27:26 +03:00
|
|
|
|
2009-03-19 18:31:24 +03:00
|
|
|
* new modules:
|
|
|
|
* IO::WaitReadable
|
|
|
|
* IO::WaitWritable
|
2009-03-21 09:56:33 +03:00
|
|
|
They are used to extend non-blocking exceptions.
|
2009-03-19 18:31:24 +03:00
|
|
|
|
2009-09-11 16:52:20 +04:00
|
|
|
* MatchData
|
|
|
|
* New method:
|
|
|
|
* MatchData#==
|
|
|
|
|
2008-12-23 06:52:11 +03:00
|
|
|
* Process
|
2009-02-04 15:59:09 +03:00
|
|
|
* extended methods:
|
|
|
|
* Process.spawn accepts [:child, FD] for a redirect target.
|
2008-12-23 06:52:11 +03:00
|
|
|
|
2009-09-11 16:52:20 +04:00
|
|
|
* Random (new library for generating pseudo-random numbers)
|
|
|
|
|
2009-03-14 21:04:21 +03:00
|
|
|
* String
|
|
|
|
* extended methods:
|
2009-03-15 08:01:48 +03:00
|
|
|
* string[regexp, name] is supported for named capture.
|
2009-03-14 21:04:21 +03:00
|
|
|
|
2009-04-21 20: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 16: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 20:27:19 +04:00
|
|
|
|
2009-05-22 16:39:22 +04:00
|
|
|
* new method:
|
|
|
|
* Time#to_r
|
2010-03-11 16:47:10 +03:00
|
|
|
* Time#round
|
2009-05-22 16:39:22 +04:00
|
|
|
|
2009-04-21 20: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 18:17:14 +04:00
|
|
|
* Kernel
|
2009-09-11 16:52:20 +04:00
|
|
|
* new method:
|
|
|
|
* Kernel#require_relative
|
|
|
|
|
2009-04-16 18:17:14 +04:00
|
|
|
* extended methods:
|
2009-04-21 22: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 18:17:14 +04:00
|
|
|
|
2010-01-17 22:12:10 +03:00
|
|
|
* digest
|
|
|
|
* new methods:
|
|
|
|
* Digest::Class.base64digest
|
|
|
|
* Digest::Instance#base64digest
|
|
|
|
* Digest::Instance#base64digest!
|
|
|
|
|
2008-12-12 12:46:28 +03:00
|
|
|
* rss
|
|
|
|
|
2009-06-27 08:41:36 +04:00
|
|
|
* 0.2.4 -> 0.2.7.
|
2008-12-12 12:46:28 +03: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 13:32:36 +04:00
|
|
|
* RSS::Maker.supported?(version)
|
|
|
|
* new method to check whether given version is supported.
|
|
|
|
|
2009-06-27 08: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 16:52:20 +04:00
|
|
|
* JSON
|
|
|
|
* Update to JSON 1.1.9
|
|
|
|
|
2008-12-12 12:46:28 +03: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-09 07:37:53 +03:00
|
|
|
* net/http
|
|
|
|
* merged net/https.
|
|
|
|
|
2008-12-23 06:52:11 +03:00
|
|
|
* open3
|
2009-02-03 10:55:03 +03: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-23 06:52:11 +03:00
|
|
|
|
|
|
|
* pty
|
2009-02-04 13:47:25 +03:00
|
|
|
* new method:
|
2009-02-03 10:55:03 +03:00
|
|
|
* PTY.open
|
2008-12-23 06:52:11 +03:00
|
|
|
|
2008-12-31 17:36:31 +03:00
|
|
|
* openssl
|
2009-03-21 09:56:33 +03:00
|
|
|
* new methods:
|
2009-03-20 20:39:44 +03:00
|
|
|
* OpenSSL::Buffering#read_nonblock
|
|
|
|
* OpenSSL::Buffering#write_nonblock
|
2009-03-21 09:56:33 +03:00
|
|
|
* OpenSSL::SSL::SSLSocket#connect_nonblock
|
|
|
|
* OpenSSL::SSL::SSLSocket#accept_nonblock
|
2008-12-31 17:36:31 +03:00
|
|
|
|
2008-12-31 18:11:33 +03:00
|
|
|
* socket
|
2009-02-03 10:55:03 +03:00
|
|
|
|
|
|
|
* incompatible changes:
|
|
|
|
* Socket#{recvfrom,recvfrom_nonblock,accept,accept_nonblock,sysaccept}
|
2009-02-10 14:59:16 +03:00
|
|
|
returns a sender address as Addrinfo object instead of a binary sockaddr string.
|
2009-02-12 15:57:14 +03:00
|
|
|
Addrinfo#to_s returns the old binary sockaddr string.
|
2009-02-11 04:38:02 +03:00
|
|
|
* BasicSocket#getsockopt returns Socket::Option object instead of a binary string.
|
2009-02-12 15:57:14 +03:00
|
|
|
Socket::Option#to_s returns the old binary string.
|
2010-02-03 17:52:23 +03:00
|
|
|
* Socket.do_not_reverse_lookup is turned on by default now.
|
2009-02-03 10:55:03 +03:00
|
|
|
|
|
|
|
* new class:
|
2009-02-05 14:01:43 +03:00
|
|
|
* Addrinfo
|
2009-02-03 10:55:03 +03:00
|
|
|
* Socket::Option
|
|
|
|
* Socket::AncillaryData
|
|
|
|
|
|
|
|
* new methods:
|
|
|
|
* Socket.ip_address_list
|
|
|
|
* Socket.tcp
|
|
|
|
* Socket.tcp_server_loop
|
|
|
|
* Socket.tcp_server_sockets
|
2009-07-20 07:29:22 +04:00
|
|
|
* Socket.udp_server_sockets
|
|
|
|
* Socket.udp_server_loop_on
|
|
|
|
* Socket.udp_server_loop
|
2009-02-03 10:55:03 +03: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 17:15:39 +03:00
|
|
|
* BasicSocket#connect_address
|
2009-02-03 10:55:03 +03:00
|
|
|
* BasicSocket#sendmsg
|
|
|
|
* BasicSocket#sendmsg_nonblock
|
|
|
|
* BasicSocket#recvmsg
|
|
|
|
* BasicSocket#recvmsg_nonblock
|
2009-02-11 04:30:05 +03:00
|
|
|
* BasicSocket#getpeereid
|
2009-02-03 10:55:03 +03:00
|
|
|
|
|
|
|
* extended methods:
|
|
|
|
* Socket.new's 3rd argument is optional now.
|
2009-02-04 19:21:15 +03:00
|
|
|
* Socket.pair's 3rd argument is optional now.
|
2009-02-03 10:55:03 +03:00
|
|
|
* Socket.pair and UNIXSocket.pair can take a block.
|
|
|
|
* BasicSocket#send, UDPSocket#send, Socket.getnameinfo, Socket#bind, and
|
2009-02-05 14:01:43 +03:00
|
|
|
Socket#{connect,connect_nonblock} accepts an Addrinfo object as sockaddr.
|
2009-02-03 10:55:03 +03:00
|
|
|
* BasicSocket#getsockopt accepts a Socket::Option object.
|
|
|
|
|
2009-02-11 04:38:02 +03:00
|
|
|
* constant names can be accepted as well as constant values.
|
2009-09-11 16:52:20 +04:00
|
|
|
i.e. Socket.new(:PF_INET, :SOCK_STREAM, 0)
|
2009-02-11 04:38:02 +03:00
|
|
|
The constant names can be specified without the prefix.
|
2009-09-11 16:52:20 +04:00
|
|
|
i.e. Socket.new(:INET, :STREAM, 0)
|
2009-02-11 04:38:02 +03:00
|
|
|
* protocol/address family
|
|
|
|
* socket type
|
|
|
|
* socket option protocol level
|
|
|
|
* socket option name
|
|
|
|
* shutdown's argument
|
2008-12-31 18:11:33 +03:00
|
|
|
|
2009-01-30 15:50:55 +03:00
|
|
|
* pathname
|
2009-02-04 13:47:25 +03:00
|
|
|
* new methods:
|
2009-02-27 22:51:56 +03:00
|
|
|
* Pathname#binread
|
|
|
|
* Pathname#realdirpath
|
|
|
|
* Pathname#each_child
|
2009-01-30 15:50:55 +03:00
|
|
|
|
2010-03-07 10:13:31 +03:00
|
|
|
* extended methods:
|
|
|
|
* Pathname#realpath and Pathname#realdirpath takes optional basedir
|
|
|
|
argument.
|
|
|
|
|
2009-02-03 15:28:07 +03:00
|
|
|
* Readline
|
2009-02-04 13:47:25 +03:00
|
|
|
* new methods:
|
2009-02-03 15:28:07 +03: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-15 01:03:28 +03:00
|
|
|
* time
|
|
|
|
* incompatible changes:
|
|
|
|
* Time.parse raises ArgumentError when no date information.
|
|
|
|
|
2009-09-23 18:01:07 +04:00
|
|
|
* thread
|
|
|
|
* extended method:
|
|
|
|
* ConditionVariable#wait takes timeout argument.
|
|
|
|
|
2009-02-15 12:42:00 +03:00
|
|
|
* securerandom
|
|
|
|
* new methods:
|
|
|
|
* SecureRandom.urlsafe_base64
|
2009-09-23 15:30:09 +04:00
|
|
|
|
2009-09-11 16:52:20 +04:00
|
|
|
* URI
|
|
|
|
* Obsoleted methods:
|
|
|
|
* URI#escape
|
|
|
|
* URI#unescape
|
2009-02-15 12:42:00 +03:00
|
|
|
|
2009-02-17 19:59:06 +03:00
|
|
|
* etc
|
|
|
|
* new methods:
|
|
|
|
* Etc::Passwd.each
|
|
|
|
* Etc::Group.each
|
|
|
|
|
2009-04-22 20:31:06 +04:00
|
|
|
* zlib
|
|
|
|
* new methods:
|
|
|
|
* Zlib::GzipFile#path
|
|
|
|
|
2010-01-05 20:58:52 +03:00
|
|
|
* rbconfig
|
|
|
|
* new methods:
|
|
|
|
* RbConfig.ruby
|
|
|
|
|
2009-09-11 16: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 08:51:47 +03:00
|
|
|
* Regexps now support Unicode 5.2 (new characters and scripts)
|
2009-09-11 16: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
|
|
|
|
|
2009-05-20 18:04:04 +04:00
|
|
|
=== Compilation options
|
|
|
|
|
2009-09-11 16:52:20 +04:00
|
|
|
* --program-prefix and --program-suffix no longer act on the shared object
|
2009-05-20 18:04:04 +04:00
|
|
|
names nor paths to libraries.
|
|
|
|
|
2009-09-11 16:52:20 +04:00
|
|
|
use --with-rubylibprefix='${libruby}/${RUBY_INSTALL_NAME}' and
|
2009-05-20 18:04:04 +04:00
|
|
|
--with-soname='${RUBY_INSTALL_NAME}' for the same result as Ruby 1.9.1.
|
|
|
|
|
2009-09-11 16:52:20 +04:00
|
|
|
* --with-arch is added for universal binary, instead of
|
|
|
|
--enable-fat-binary option.
|
|
|
|
|
2008-12-12 12:46:28 +03:00
|
|
|
=== Compatibility issues (excluding feature bug fixes)
|
|
|
|
|
|
|
|
* Enumerator#rewind
|
2009-02-04 15:59:09 +03:00
|
|
|
* Socket#recvfrom
|
|
|
|
* Socket#recvfrom_nonblock
|
|
|
|
* Socket#accept
|
|
|
|
* Socket#accept_nonblock
|
|
|
|
* Socket#sysaccept
|
|
|
|
* BasicSocket#getsockopt
|
2009-04-25 10:04:40 +04:00
|
|
|
* Time.utc
|
|
|
|
* Time.gm
|
|
|
|
* Time.local
|
|
|
|
* Time.mktime
|
2009-02-15 13:03:02 +03:00
|
|
|
* Time.parse
|
2009-05-20 18:04:04 +04:00
|
|
|
* --program-prefix and --program-suffix
|
2009-09-11 16:52:20 +04:00
|
|
|
* --enable-fat-binary
|
|
|
|
* $:
|
2008-12-12 12:46:28 +03:00
|
|
|
|
|
|
|
See above.
|