NEWS for Ruby 1.9.2¶ ↑
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 methods:
-
extended method:
-
Array#{uniq,uniq!,product} can take a block.
-
-
-
-
new method:
-
-
-
new method:
-
-
-
new encodings:
-
Big5
-
Big5-UAO
-
ISO-2022-JP-KDDI
-
SJIS-DoCoMo
-
SJIS-KDDI
-
SJIS-SoftBank
-
UTF8-DoCoMo
-
UTF8-KDDI
-
UTF8-SoftBank
-
-
new method:
-
ascii_compatible?
-
-
-
-
new methods:
-
extended method:
-
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.
-
next doesn't clear the position at end.
-
-
-
-
Uses locale's encoding
-
ENV.[]= raises Errno::{EINVAL,ENOMEM} etc. on failure.
-
new methods:
-
-
-
new constants:
-
Float::INFINITY
-
Float::NAN
-
-
new method:
-
-
-
new methods:
-
-
-
new method:
-
-
-
new methods:
-
-
-
new methods:
-
extended method:
-
IO.pipe can take a block.
-
-
new modules:
-
IO::WaitWritable They are used to extend non-blocking exceptions.
-
-
-
new method:
-
-
Kernel
-
new methods:
-
Kernel#respond_to_missing?
-
Kernel#singleton_class
-
-
extended method:
-
Kernel#respond_to? can be used to detect methods not implemented. For example, Process.respond_to?(:fork) returns false on Windows.
-
-
incompatible changes:
-
Kernel#instance_eval yields the receiver.
-
Kernel#` (`…`) ..etc.
On Windows, the current directory is no longer implicitly prepended to the default command search path, just like other platforms.
-
-
-
-
new method:
-
MatchData#==
-
-
-
-
new method:
-
-
-
new method:
-
-
-
extended methods:
-
Float() supports hexadecimal floating point format.
-
printf() supports %a/%A format.
-
-
-
-
new method:
-
extended method:
-
Proc#source_location returns location even if receiver is a method defined by attr_reader / attr_writer / attr_accessor.
-
-
-
-
extended method:
-
Process.spawn accepts [:child, FD] for a redirect target.
-
-
-
Random (new class to generate pseudo-random numbers)
-
-
new method:
-
-
String
-
extended methods:
-
string[regexp, name] is supported for named capture.
-
-
-
-
new methods:
-
-
-
extended features:
-
time_t restriction is removed to represent before 1901 and after 2038. Proleptic Gregorian calendar is used for old dates.
-
Time.new have optional arguments to specify date with time offset.
-
Time#getlocal, Time#localtime have optional time offset argument.
-
-
new methods:
-
incompatible change:
-
-
-
new method:
-
-
-
digest
-
new methods:
-
Digest::HMAC (digest/hmac) has been marked as deprecated because it was unintentional for the experimental library to be included in the final release of 1.9.1. Please use OpenSSL::HMAC instead.
-
-
rss
-
0.2.4 -> 0.2.7.
-
-
raise an exception not returns nil for invalid feed making.
-
requires block.
-
-
-
new method to return maker class.
-
-
-
new method to check whether given version is supported.
-
-
RSS::Maker: item.guid.permanent_link?
-
new alias of item.guid.isPermaLink
-
-
RSS::Maker: item.guid.permanent_link=
-
new alias of item.guid.isPermaLink=
-
-
-
DL
-
Now uses libffi as a backend if avaiable. It means DL works fine on more platforms.
-
-
-
A lightweight wrapper for libffi.
-
-
YAML
-
Now uses libyaml as a backend if available. It means YAML library supports new standards for YAML.
-
-
-
A wrapper for libyaml.
-
-
-
Update to JSON 1.1.9
-
-
-
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.
www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/
-
-
-
Updated to RDoc 2.5.8
-
-
RubyGems
-
Updated to RubyGems 1.3.7
-
-
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)
-
-
-
matrix
-
API change to adhere strictly to mathematical definitions:
-
Matrices must now be rectangular.
-
trace, regular?, singular? are defined only for square matrices
-
support for empty matrices
-
all integer matrices now have the right determinant (also an integer)
-
-
Matrix and Vector include Enumerable.
-
new methods:
-
-
net/http
-
merged net/https.
-
-
open3
-
pty
-
openssl
-
scanf
-
support %a/%A format.
-
-
socket
-
incompatible changes:
-
Socket#{recvfrom,recvfrom_nonblock,accept,accept_nonblock,sysaccept} returns a sender address as Addrinfo object instead of a binary sockaddr string. Addrinfo#to_s returns the old binary sockaddr string.
-
BasicSocket#getsockopt returns Socket::Option object instead of a binary string. Socket::Option#to_s returns the old binary string.
-
BasicSocket.do_not_reverse_lookup is turned on by default now.
-
-
new class:
-
new methods:
-
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.
-
Socket.getaddrinfo and IPSocket#{addr,peeraddr} accept an optional argument to turn reverse lookup on/off.
-
constant names can be accepted as well as constant values. i.e. Socket.new(:PF_INET, :SOCK_STREAM, 0) The constant names can be specified without the prefix. i.e. Socket.new(:INET, :STREAM, 0)
-
protocol/address family
-
socket type
-
socket option protocol level
-
socket option name
-
shutdown's argument
-
-
-
-
stringio
-
pathname
-
new methods:
-
extended methods:
-
Pathname#realpath and Pathname#realdirpath takes optional basedir argument.
-
-
-
-
new methods:
-
extended methods:
-
Readline.completion_proc= accepts nil. nil means to use default completion proc.
-
-
-
set
-
new methods:
-
-
time
-
incompatible changes:
-
Time.parse raises ArgumentError when no date information.
-
-
-
thread
-
extended method:
-
ConditionVariable#wait takes timeout argument.
-
-
-
securerandom
-
new methods:
-
SecureRandom.urlsafe_base64
-
-
-
-
new methods:
-
Obsoleted methods:
-
URI.decode
-
URI.encode
-
URI.escape
-
URI.unescape
-
-
-
etc
-
new methods:
-
Etc::Passwd.each
-
Etc::Group.each
-
-
-
zlib
-
rbconfig
-
new methods:
-
Language changes¶ ↑
-
Regexp properties (p{}) names now ignore underscores, spaces, and case, so p{ol chiki} is the same as p{Ol_Chiki}
-
Regexps now support Unicode 5.2 (new characters and scripts)
-
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
-
Symbol with an invalid encoding is forbidden to exist.
Compilation options¶ ↑
-
–program-prefix and –program-suffix no longer act on the shared object names nor paths to libraries.
use –with-rubylibprefix='${libruby}/${RUBY_INSTALL_NAME}' and –with-soname='${RUBY_INSTALL_NAME}' for the same result as Ruby 1.9.1.
-
–with-arch is added for universal binary, instead of –enable-fat-binary option.
Compatibility issues (excluding feature bug fixes)¶ ↑
* Enumerator#rewind * Socket#recvfrom * Socket#recvfrom_nonblock * Socket#accept * Socket#accept_nonblock * Socket#sysaccept * BasicSocket#getsockopt * Time.utc * Time.gm * Time.local * Time.mktime * Time.parse * --program-prefix and --program-suffix * --enable-fat-binary * $: See above. * Digest::HMAC Deprecated. See above.