mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
7be3cdbc04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
154 lines
3.8 KiB
Text
154 lines
3.8 KiB
Text
= 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
|
|
|
|
* Array
|
|
* new method:
|
|
* Array#sort_by!
|
|
|
|
* Dir
|
|
* new method:
|
|
* Dir.home
|
|
|
|
* Enumerator
|
|
* 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.
|
|
|
|
* IO
|
|
* extended methods:
|
|
* IO.pipe can take a block.
|
|
|
|
* Process
|
|
* extended methods:
|
|
* Process.spawn accepts [:child, FD] for a redirect target.
|
|
|
|
* rss
|
|
|
|
* 0.2.4 -> 0.2.5
|
|
|
|
* RSS::Maker.make
|
|
* raise an exception not returns nil for invalid feed making.
|
|
* requires block.
|
|
|
|
* RSS::Maker.[]
|
|
* new method to return maker class.
|
|
|
|
* 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)
|
|
|
|
* open3
|
|
* 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
|
|
|
|
* pty
|
|
* new method:
|
|
* PTY.open
|
|
|
|
* openssl
|
|
* new method:
|
|
* Buffering#read_nonblock
|
|
|
|
* socket
|
|
|
|
* incompatible changes:
|
|
* Socket#{recvfrom,recvfrom_nonblock,accept,accept_nonblock,sysaccept}
|
|
returns a sender address as Addrinfo object instead of a binary sockaddr string.
|
|
* BasicSocket#getsockopt returns Socket::Option object instead of a string.
|
|
|
|
* new class:
|
|
* Addrinfo
|
|
* Socket::Option
|
|
* Socket::AncillaryData
|
|
|
|
* new methods:
|
|
* Socket.ip_address_list
|
|
* Socket.tcp
|
|
* Socket.tcp_server_loop
|
|
* Socket.tcp_server_sockets
|
|
* Socket.unix
|
|
* Socket.unix_server_loop
|
|
* Socket.unix_server_socket
|
|
* Socket.accept_loop
|
|
* Socket#ipv6only!
|
|
* BasicSocket#local_address
|
|
* BasicSocket#remote_address
|
|
* BasicSocket#sendmsg
|
|
* BasicSocket#sendmsg_nonblock
|
|
* BasicSocket#recvmsg
|
|
* BasicSocket#recvmsg_nonblock
|
|
|
|
* extended methods:
|
|
* Socket.new's 3rd argument is optional now.
|
|
* Socket.pair's 3rd argument is optional now.
|
|
* Socket.pair and UNIXSocket.pair can take a block.
|
|
* BasicSocket#send, UDPSocket#send, Socket.getnameinfo, Socket#bind, and
|
|
Socket#{connect,connect_nonblock} accepts an Addrinfo object as sockaddr.
|
|
* BasicSocket#getsockopt accepts a Socket::Option object.
|
|
|
|
* string/symbol as protocol/address family, socket type, protocol level,
|
|
socket option name and shutdown's how argument can be specified as a
|
|
string/symbol.
|
|
|
|
* pathname
|
|
* new methods:
|
|
* realdirpath
|
|
* each_child
|
|
|
|
* Readline
|
|
* new methods:
|
|
* Readline.set_screen_size
|
|
* Readline.get_screen_size
|
|
|
|
* extended methods:
|
|
* Readline.completion_proc= accepts nil.
|
|
nil means to use default completion proc.
|
|
|
|
=== Compatibility issues (excluding feature bug fixes)
|
|
|
|
* Enumerator#rewind
|
|
* Socket#recvfrom
|
|
* Socket#recvfrom_nonblock
|
|
* Socket#accept
|
|
* Socket#accept_nonblock
|
|
* Socket#sysaccept
|
|
* BasicSocket#getsockopt
|
|
|
|
See above.
|