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.
|
|
|
|
|
2010-07-05 03:11:44 -04:00
|
|
|
== Changes since the 1.9.2 release
|
2010-09-15 12:14:05 -04:00
|
|
|
=== License
|
|
|
|
|
|
|
|
* Ruby's License is changed from a dual license with GPLv2
|
|
|
|
to a dual license with 2-clause BSDL.
|
|
|
|
|
2010-09-10 04:20:47 -04:00
|
|
|
=== C API updates
|
|
|
|
|
|
|
|
* rb_scan_args() is enhanced with support for option hash argument
|
|
|
|
extraction.
|
|
|
|
|
2010-12-06 05:01:40 -05:00
|
|
|
* ruby_vm_at_exit() added. This enables extension libs to hook a VM
|
2010-12-02 09:58:41 -05:00
|
|
|
termination.
|
|
|
|
|
2010-07-05 03:11:44 -04:00
|
|
|
=== Library updates (outstanding ones only)
|
|
|
|
|
|
|
|
* builtin classes
|
|
|
|
|
2010-12-27 17:27:10 -05:00
|
|
|
* ARGF
|
|
|
|
* new methods:
|
|
|
|
* ARGF.print
|
|
|
|
* ARGF.printf
|
|
|
|
* ARGF.putc
|
|
|
|
* ARGF.puts
|
|
|
|
* ARGF.read_nonblock
|
|
|
|
* ARGF.to_write_io
|
|
|
|
* ARGF.write
|
|
|
|
|
2010-12-21 18:59:39 -05:00
|
|
|
* Array
|
|
|
|
* extended method:
|
|
|
|
* Array#pack supports endian modifiers
|
2010-07-05 03:11:44 -04:00
|
|
|
|
2010-12-06 05:01:51 -05:00
|
|
|
* Encoding
|
|
|
|
* new encodings:
|
|
|
|
* CP950
|
|
|
|
* CP951
|
|
|
|
* UTF-16
|
|
|
|
* UTF-32
|
2011-03-08 21:59:04 -05:00
|
|
|
* change alias:
|
|
|
|
* SJIS is Windows-31J
|
2010-12-06 05:01:51 -05:00
|
|
|
|
2011-01-24 17:50:15 -05:00
|
|
|
* File
|
2010-12-21 18:59:39 -05:00
|
|
|
* new constant:
|
2010-08-27 02:26:41 -04:00
|
|
|
* File::NULL
|
2010-08-26 23:45:24 -04:00
|
|
|
name of NULL device.
|
|
|
|
|
2010-12-21 18:59:39 -05:00
|
|
|
* IO
|
|
|
|
* extended method:
|
|
|
|
* IO#putc supports multibyte characters
|
2011-06-02 03:30:11 -04:00
|
|
|
* new methods:
|
2010-12-21 18:59:39 -05:00
|
|
|
* IO#advise
|
2011-06-02 03:30:11 -04:00
|
|
|
* IO.write(name, string, [offset] )
|
|
|
|
Write `string` to file `name`.
|
|
|
|
Opposite with File.read.
|
|
|
|
* IO.binwrite(name, string, [offset] )
|
|
|
|
binary virsion of IO.write.
|
2010-12-21 18:59:39 -05:00
|
|
|
|
|
|
|
* Kernel
|
|
|
|
* Kernel#respond_to? now returns false for protected methods.
|
2010-12-22 11:49:39 -05:00
|
|
|
* move #__id__ to BasicObject.
|
2010-12-21 18:59:39 -05:00
|
|
|
|
2010-12-21 18:59:42 -05:00
|
|
|
* Module
|
|
|
|
* new methods:
|
|
|
|
* Module#private_constant
|
|
|
|
* Module#public_constant
|
|
|
|
|
2010-08-27 17:50:06 -04:00
|
|
|
* String
|
2011-01-24 17:50:15 -05:00
|
|
|
* extended method:
|
|
|
|
* String#unpack supports endian modifiers
|
2010-12-21 18:59:39 -05:00
|
|
|
* new method:
|
2010-08-27 17:50:06 -04:00
|
|
|
* String#prepend
|
2011-03-07 03:44:45 -05:00
|
|
|
* String#byteslice
|
2010-08-27 17:50:06 -04:00
|
|
|
|
2010-08-30 17:50:11 -04:00
|
|
|
* Time
|
2010-12-21 18:59:39 -05:00
|
|
|
* extended method:
|
2010-08-30 17:50:11 -04:00
|
|
|
* Time#strftime supports %:z and %::z.
|
|
|
|
|
2011-03-10 11:54:02 -05:00
|
|
|
* Process
|
|
|
|
* Process#maxgroups and Process#maxgroups= now raise NotImplementedError if
|
|
|
|
the platform don't support supplementary groups concept.
|
2011-05-31 23:37:02 -04:00
|
|
|
|
|
|
|
* bigdecimal
|
|
|
|
* Kernel.BigDecimal and BigDecimal.new now accept instances of Integer,
|
|
|
|
Rational, and Float. If you pass a Rational or a Float to them, you must
|
|
|
|
specify the precision to produce the digits of a BigDecimal.
|
|
|
|
|
|
|
|
* The behavior of BigDecimal#coerce with a Rational is changed. It uses
|
|
|
|
the precision of the receiver BigDecimal to produce the digits of a
|
|
|
|
BigDecimal from the given Rational.
|
|
|
|
|
2011-06-04 17:25:11 -04:00
|
|
|
* date
|
|
|
|
|
|
|
|
* Accepts flonum explicitly with limitations.
|
|
|
|
* If the given offset is flonum, DateTime assumes its precision is
|
|
|
|
at most second.
|
|
|
|
|
|
|
|
DateTime.new(2001,2,3,0,0,0,3.0/24) ==
|
|
|
|
DateTime.new(2001,2,3,0,0,0,'+03:00')
|
|
|
|
#=> true
|
|
|
|
|
|
|
|
* If the given operand for -/+ is flonum, DateTime assumes its
|
|
|
|
precision is at most nanosecond.
|
|
|
|
|
|
|
|
DateTime.new(2001,2,3) + 0.5 == DateTime.new(2001,2,3,12)
|
|
|
|
#=> true
|
|
|
|
|
|
|
|
* Precision of offset is always at most second.
|
|
|
|
|
|
|
|
Rational('0.5') == Rational('0.500001') #=> false
|
|
|
|
DateTime.new(2001,2,3,0,0,0,Rational('0.5')) ==
|
|
|
|
DateTime.new(2001,2,3,0,0,0,Rational('0.500001'))
|
|
|
|
#=> true
|
|
|
|
|
|
|
|
* Ignores long offset and far reform day (with warning).
|
|
|
|
|
|
|
|
* Now accepts only:
|
|
|
|
|
|
|
|
-1<=offset<=1 (-24:00..+24:00)
|
|
|
|
2298874<=start<=2426355 or -/+oo
|
|
|
|
(proleptic Gregorian/Julian mean -/+oo)
|
|
|
|
|
|
|
|
* A method strftime cannot produce huge output (same as Time's one).
|
|
|
|
|
|
|
|
* Even though Date/DateTime can handle far dates, the following gives
|
|
|
|
an empty string:
|
|
|
|
|
|
|
|
DateTime.new(1<<10000).strftime('%Y') #=> ""
|
|
|
|
|
|
|
|
* Changed the format of inspect.
|
|
|
|
* Changed the format of marshal (but, can load old dumps).
|
|
|
|
|
2010-08-11 08:00:42 -04:00
|
|
|
* io/console
|
|
|
|
* new methods:
|
|
|
|
* IO#noecho {|io| }
|
|
|
|
* IO#echo=
|
|
|
|
* IO#echo?
|
|
|
|
* IO#raw {|io| }
|
|
|
|
* IO#raw!
|
|
|
|
* IO#getch
|
|
|
|
* IO#winsize
|
|
|
|
* IO.console
|
|
|
|
|
2011-02-07 08:37:43 -05:00
|
|
|
* net/http
|
|
|
|
* SNI (Server Name Indication) supported for HTTPS.
|
|
|
|
|
* lib/net/http.rb, lib/net/protocol.rb: Allow to configure to wait
server returning '100 continue' response befor sending HTTP request
body. See NEWS for more detail. See #3622.
Original patch is made by Eric Hodel <drbrain@segment7.net>.
* test/net/http/test_http.rb: test it.
* NEWS: Add new feature.
On my env (Ubuntu 11.04 64bit),
9510 tests, 2203824 assertions, 0 failures, 0 errors, 29 skips
->
9514 tests, 2203836 assertions, 0 failures, 0 errors, 29 skips
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-31 04:10:42 -04:00
|
|
|
* Allow to configure to wait server returning '100 continue' response
|
|
|
|
before sending HTTP request body. Set Net::HTTP#continue_timeout AND pass
|
|
|
|
'expect' => '100-continue' to a extra HTTP header.
|
|
|
|
|
|
|
|
For example, the following code sends HTTP header and waits for getting
|
|
|
|
'100 continue' response before sending HTTP request body. When 0.5 [sec]
|
|
|
|
timeout occurs or the server send '100 continue', the client sends HTTP
|
|
|
|
request body.
|
|
|
|
http.continue_timeout = 0.5
|
|
|
|
http.request_post('/continue', 'body=BODY', 'expect' => '100-continue')
|
|
|
|
|
2011-06-26 11:55:29 -04:00
|
|
|
* new method:
|
|
|
|
* Net::HTTPRequest#set_form): Added to support
|
|
|
|
both application/x-www-form-urlencoded and multipart/form-data.
|
|
|
|
|
2011-05-13 15:25:18 -04:00
|
|
|
* openssl
|
|
|
|
* PKey::RSA and PKey::DSA now use the generic X.509 encoding scheme
|
|
|
|
(e.g. used in a X.509 certificate's Subject Public Key Info) when
|
|
|
|
exporting public keys to DER or PEM. Backward compatibility is
|
|
|
|
ensured by (already existing) fallbacks during creation.
|
2011-05-22 18:22:16 -04:00
|
|
|
* OpenSSL::ASN1::Constructive#new and OpenSSL::ASN1::Primitive#new
|
|
|
|
(and the constructors of their sub-classes) will no longer force
|
|
|
|
tagging to be set to :EXPLICIT when tag and/or tag_class are passed
|
|
|
|
as parameters. tagging must be set explicitly.
|
|
|
|
* Support for infinite length encodings via infinite_length attribute.
|
2011-06-12 16:52:25 -04:00
|
|
|
* OpenSSL::PKey.read( file | string [, pwd] ) allows to read arbitrary
|
|
|
|
public/private keys in DER-/PEM-encoded form with an optional password
|
|
|
|
for encrypted PEM encodings.
|
2011-06-23 09:51:55 -04:00
|
|
|
* Add new method OpenSSL::X509::Name#hash_old as a wrapper of
|
|
|
|
X509_NAME_hash_old() defined from OpenSSL 1.0.0. It returns OpenSSL 0.9.8
|
|
|
|
compatible hash value.
|
2011-05-13 15:25:18 -04:00
|
|
|
|
2010-12-31 21:03:59 -05:00
|
|
|
* optparse
|
|
|
|
* support for bash/zsh completion.
|
|
|
|
|
2011-06-23 18:11:55 -04:00
|
|
|
* Rake
|
|
|
|
* Rake has been upgraded from 0.8.7 to 0.9.2. For full release notes see
|
|
|
|
https://github.com/jimweirich/rake/blob/master/CHANGES
|
|
|
|
|
2010-12-21 18:59:39 -05:00
|
|
|
* RDoc
|
2011-06-23 18:11:55 -04:00
|
|
|
* RDoc has been upgraded from 2.5.8 to 3.6.1. For full release notes see
|
2011-02-05 01:20:57 -05:00
|
|
|
http://docs.seattlerb.org/rdoc/History_txt.html
|
2010-10-10 17:54:22 -04:00
|
|
|
|
2010-10-30 08:10:56 -04:00
|
|
|
* rexml
|
|
|
|
* [incompatible] support Ruby native encoding mechanism
|
2010-12-06 05:01:40 -05:00
|
|
|
and iconv dependency is dropped. This means encoding
|
2010-10-30 08:10:56 -04:00
|
|
|
methods (Document#encoding, XMLDecl#encoding,
|
|
|
|
Output#encoding and Source#encoding) return an Encoding
|
|
|
|
object instead of an encoding name.
|
|
|
|
|
2011-01-18 19:08:49 -05:00
|
|
|
* Rubygems
|
|
|
|
* Rubygems has been upgraded to rubygems 1.5.0. For full release notes see
|
|
|
|
http://rubygems.rubyforge.org/rubygems-update/History_txt.html
|
|
|
|
|
2010-12-21 18:59:39 -05:00
|
|
|
* stringio
|
|
|
|
* extended method:
|
|
|
|
* StringIO#set_encoding can get 2nd argument and optional hash.
|
|
|
|
|
2011-02-21 22:36:38 -05:00
|
|
|
* test/unit
|
|
|
|
* New arguments:
|
|
|
|
* -j N, --jobs=N: Allow run N testcases at once.
|
|
|
|
* --jobs-status: Show status of jobs when parallel running.
|
|
|
|
* --no-retry: Don't retry testcases which failed when parallel running.
|
|
|
|
* --ruby=RUBY: path to ruby for job(worker) process. optional.
|
2011-06-19 00:32:41 -04:00
|
|
|
* --hide-skip: Hide skip messages. You'll see the number of skips at end of
|
|
|
|
test result.
|
2011-02-21 22:36:38 -05:00
|
|
|
|
2010-12-21 18:59:39 -05:00
|
|
|
* uri
|
|
|
|
* new methods:
|
|
|
|
* URI::Generic#hostname
|
|
|
|
* URI::Generic#hostname=
|
|
|
|
|
|
|
|
* webrick
|
|
|
|
* new method:
|
|
|
|
* WEBrick::HTTPRequest#continue for generating '100 continue' response.
|
|
|
|
* new logging directive:
|
|
|
|
* %{remote}p for remote (client) port number.
|
2010-12-19 23:50:13 -05:00
|
|
|
|
2011-05-23 15:05:47 -04:00
|
|
|
* yaml
|
|
|
|
* The default YAML engine is now Psych. You may downgrade to syck by setting
|
|
|
|
YAML::ENGINE.yamler = 'syck'.
|
|
|
|
|
2010-12-27 11:48:14 -05:00
|
|
|
* zlib
|
|
|
|
* new methods:
|
|
|
|
* Zlib.deflate
|
|
|
|
* Zlib.inflate
|
|
|
|
|
2011-05-01 12:16:05 -04:00
|
|
|
* FileUtils
|
|
|
|
* extended method:
|
|
|
|
* FileUtils#chmod supports symbolic mode argument.
|
|
|
|
|
2010-10-28 07:14:05 -04:00
|
|
|
=== Language changes
|
|
|
|
|
2010-11-08 00:32:45 -05:00
|
|
|
* Regexps now support Unicode 6.0. (new characters and scripts)
|
|
|
|
|
|
|
|
* [experimental] Regexps now support Age property.
|
|
|
|
Unlike Perl, current implementation takes interpretation of the
|
|
|
|
interpretation of UTS #18.
|
|
|
|
http://www.unicode.org/reports/tr18/
|
2010-10-28 07:14:05 -04:00
|
|
|
|
2010-12-27 17:27:07 -05:00
|
|
|
* Turning on/off indentation warnings with directives.
|
|
|
|
("# -*- warn-indent: true -*-" / "# -*- warn-indent: false -*-")
|
|
|
|
|
2010-07-05 03:11:44 -04:00
|
|
|
=== Compatibility issues (excluding feature bug fixes)
|
|
|
|
|
|
|
|
* Kernel#respond_to?
|
|
|
|
|
|
|
|
See above.
|