2012-12-03 14:12:03 -05:00
|
|
|
# -*- rdoc -*-
|
|
|
|
|
|
|
|
= NEWS for Ruby 2.0.0
|
2008-12-12 04:46:28 -05:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2011-07-10 10:54:03 -04:00
|
|
|
== Changes since the 1.9.3 release
|
2010-09-15 12:14:05 -04:00
|
|
|
|
2010-09-10 04:20:47 -04:00
|
|
|
=== C API updates
|
2011-11-14 11:00:29 -05:00
|
|
|
* NUM2SHORT() and NUM2USHORT() added. They are similar to NUM2INT, but short.
|
2012-11-02 22:35:36 -04:00
|
|
|
* rb_newobj_of() and NEWOBJ_OF() added. They create a new object of a given class.
|
2011-11-14 11:00:29 -05:00
|
|
|
|
2010-07-05 03:11:44 -04:00
|
|
|
=== Library updates (outstanding ones only)
|
2011-07-12 10:42:48 -04:00
|
|
|
|
|
|
|
* builtin classes
|
2013-02-22 18:17:49 -05:00
|
|
|
* ARGF
|
|
|
|
* added method:
|
|
|
|
* added ARGF#codepoints and ARGF#each_codepoint, like the corresponding
|
|
|
|
methods for IO.
|
2011-07-12 10:42:48 -04:00
|
|
|
|
2012-10-09 05:01:40 -04:00
|
|
|
* Array
|
2012-11-14 10:53:50 -05:00
|
|
|
* added method:
|
|
|
|
* added Array#bsearch for binary search.
|
2012-10-09 05:01:40 -04:00
|
|
|
* incompatible changes:
|
|
|
|
* random parameter of Array#shuffle! and Array#sample now
|
|
|
|
will be called with one argument, maximum value.
|
2012-11-20 09:53:54 -05:00
|
|
|
* when given Range arguments, Array#values_at now returns nil for each
|
|
|
|
value that is out-of-range.
|
2012-10-09 05:01:40 -04:00
|
|
|
|
2012-03-08 10:30:28 -05:00
|
|
|
* Enumerable
|
|
|
|
* added method:
|
|
|
|
* added Enumerable#lazy method for lazy enumeration.
|
|
|
|
|
2012-11-06 12:17:12 -05:00
|
|
|
* Enumerator
|
|
|
|
* added method:
|
|
|
|
* added Enumerator#size for lazy size evaluation.
|
|
|
|
* extended method:
|
|
|
|
* Enumerator.new accept an argument for lazy size evaluation.
|
2013-02-22 18:17:21 -05:00
|
|
|
* new class Enumerator::Lazy for lazy enumeration
|
2012-11-06 12:17:12 -05:00
|
|
|
|
2012-04-23 23:46:55 -04:00
|
|
|
* ENV
|
|
|
|
* aliased method:
|
|
|
|
* ENV.to_h is a new alias for ENV.to_hash
|
|
|
|
|
2012-11-21 12:25:59 -05:00
|
|
|
* Fiber
|
|
|
|
* incompatible changes:
|
|
|
|
* Fiber#resume cannot resume a fiber which invokes "Fiber#transfer".
|
|
|
|
|
2012-12-03 10:08:00 -05:00
|
|
|
* File
|
2012-11-03 21:19:11 -04:00
|
|
|
* extended method:
|
|
|
|
* File.fnmatch? now expands braces in the pattern if
|
|
|
|
File::FNM_EXTGLOB option is given.
|
|
|
|
|
2012-11-27 00:00:57 -05:00
|
|
|
* GC
|
|
|
|
* improvements:
|
|
|
|
* introduced the bitmap marking which suppresses to copy a memory page
|
|
|
|
with Copy-on-Write.
|
2012-11-27 07:53:32 -05:00
|
|
|
* introduced the non-recursive marking which avoids unexpected stack overflow.
|
2012-11-27 00:00:57 -05:00
|
|
|
|
2012-11-21 12:25:59 -05:00
|
|
|
* GC::Profiler
|
|
|
|
* added method:
|
|
|
|
* added GC::Profiler.raw_data which returns raw profile data for GC.
|
|
|
|
|
2012-04-09 00:07:53 -04:00
|
|
|
* Hash
|
2012-04-23 23:46:55 -04:00
|
|
|
* added method:
|
|
|
|
* added Hash#to_h as explicit conversion method, like Array#to_a.
|
2012-04-09 00:07:53 -04:00
|
|
|
* extended method:
|
|
|
|
* Hash#default_proc= can be passed nil to clear the default proc.
|
|
|
|
|
Deprecate #{lines,bytes,chars,codepoints} of IO-likes.
* io.c (rb_io_lines, rb_io_bytes, rb_io_chars, rb_io_codepoints):
Deprecate IO#{lines,bytes,chars,codepoints} and those of ARGF.
[Feature #6670]
* ext/stringio/stringio.c (strio_lines, strio_bytes, strio_chars)
(strio_codepoints): Deprecate
StringIO#{lines,bytes,chars,codepoints}. [Feature #6670]
* ext/zlib/zlib.c (rb_gzreader_lines, rb_gzreader_bytes):
Deprecate Zlib::GzipReader#{lines,bytes}. [Feature #6670]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-22 12:22:04 -05:00
|
|
|
* IO
|
|
|
|
* deprecated methods:
|
|
|
|
* IO#lines, #bytes, #chars and #codepoints are deprecated.
|
|
|
|
|
2011-07-19 18:17:13 -04:00
|
|
|
* Kernel
|
2012-02-25 02:08:44 -05:00
|
|
|
* added method:
|
|
|
|
* added Kernel#Hash conversion method like Array() or Float().
|
2013-01-24 01:55:24 -05:00
|
|
|
* added Kernel#__dir__ which returns the absolute path of the
|
|
|
|
directory of the file from which this method is called.
|
2012-11-19 01:07:06 -05:00
|
|
|
* added Kernel#caller_locations which returns an array of
|
|
|
|
frame information objects.
|
2011-07-19 18:17:13 -04:00
|
|
|
* extended method:
|
|
|
|
* Kernel#warn accepts multiple args in like puts.
|
2012-05-26 00:51:32 -04:00
|
|
|
* Kernel#caller accepts second optional argument `n' which specify
|
2012-05-27 00:47:43 -04:00
|
|
|
required caller size.
|
2012-11-06 12:17:12 -05:00
|
|
|
* Kernel#to_enum and enum_for accept a block for lazy size evaluation.
|
2011-10-22 05:58:15 -04:00
|
|
|
* incompatible changes:
|
|
|
|
* system() and exec() closes non-standard file descriptors
|
|
|
|
(The default of :close_others option is changed to true by default.)
|
2012-02-13 11:05:00 -05:00
|
|
|
* respond_to? against a protected method now returns false unless
|
|
|
|
the second argument is true.
|
2012-07-04 21:53:30 -04:00
|
|
|
* __callee__ has returned to the original behavior, and now
|
|
|
|
returns the called name but not the original name in an
|
|
|
|
aliased method.
|
2012-08-15 07:50:01 -04:00
|
|
|
* Kernel#inspect does not call #to_s anymore
|
|
|
|
(it used to call redefined #to_s).
|
2011-07-19 18:17:13 -04:00
|
|
|
|
2012-03-06 18:38:33 -05:00
|
|
|
* LoadError
|
|
|
|
* added method:
|
|
|
|
* added LoadError#path method to return the file name that could not be
|
|
|
|
loaded.
|
|
|
|
|
2012-06-25 04:06:43 -04:00
|
|
|
* Module
|
2012-07-04 21:53:30 -04:00
|
|
|
* added method:
|
|
|
|
* added Module#prepend which is similar to Module#include,
|
2012-07-04 22:04:57 -04:00
|
|
|
however a method in the prepended module overrides the
|
2012-07-04 21:53:30 -04:00
|
|
|
corresponding method in the prepending module.
|
2013-02-22 18:18:47 -05:00
|
|
|
* added Module.prepended and Module.prepend_features, similar
|
|
|
|
to included and append_features.
|
2012-11-01 03:48:29 -04:00
|
|
|
* added Module#refine, which extends a class or module locally.
|
2013-01-07 06:30:43 -05:00
|
|
|
[experimental]
|
2012-06-25 04:06:43 -04:00
|
|
|
* extended method:
|
|
|
|
* Module#define_method accepts a UnboundMethod from a Module.
|
2012-10-26 17:31:23 -04:00
|
|
|
* Module#const_get accepts a qualified constant string, e.g.
|
|
|
|
Object.const_get("Foo::Bar::Baz")
|
2012-06-25 04:06:43 -04:00
|
|
|
|
2012-11-26 10:17:01 -05:00
|
|
|
* Mutex
|
2012-12-04 11:02:07 -05:00
|
|
|
* added method:
|
|
|
|
* added Mutex#owned? which returns the mutex is held by current
|
|
|
|
thread or not. [experimental]
|
2012-11-26 10:17:01 -05:00
|
|
|
* incompatible changes:
|
|
|
|
* Mutex#lock, Mutex#unlock, Mutex#try_lock, Mutex#synchronize
|
2012-11-27 07:53:32 -05:00
|
|
|
and Mutex#sleep are no longer allowed to be used from trap handler
|
|
|
|
and raise a ThreadError in such case.
|
2012-11-28 09:40:00 -05:00
|
|
|
* Mutex#sleep may spurious wakeup. Check after wakeup.
|
2012-11-26 10:17:01 -05:00
|
|
|
|
2012-04-23 23:46:55 -04:00
|
|
|
* NilClass
|
|
|
|
* added method:
|
|
|
|
* added nil.to_h which returns {}
|
|
|
|
|
2013-02-22 18:16:52 -05:00
|
|
|
* ObjectSpace::WeakMap
|
|
|
|
* new low level class to hold weak references to objects.
|
|
|
|
|
2013-01-23 15:05:42 -05:00
|
|
|
* Proc
|
|
|
|
* incompatible change:
|
2013-02-22 18:16:38 -05:00
|
|
|
* removed Proc#== and #eql? so two procs are == only when they are
|
2013-01-23 15:05:42 -05:00
|
|
|
the same object.
|
|
|
|
|
2012-11-23 21:51:24 -05:00
|
|
|
* Process
|
|
|
|
* added method:
|
2012-11-27 07:53:32 -05:00
|
|
|
* added getsid for getting session id (unix only).
|
2012-11-23 21:51:24 -05:00
|
|
|
|
2012-11-06 12:17:12 -05:00
|
|
|
* Range
|
|
|
|
* added method:
|
|
|
|
* added Range#size for lazy size evaluation.
|
2012-11-14 10:53:50 -05:00
|
|
|
* added Range#bsearch for binary search.
|
2012-11-06 12:17:12 -05:00
|
|
|
|
2013-01-06 19:38:06 -05:00
|
|
|
* RubyVM (MRI specific)
|
2013-02-22 18:17:06 -05:00
|
|
|
* added RubyVM::InstructionSequence.of to get the instruction sequence
|
|
|
|
from a method or a block.
|
|
|
|
* added RubyVM::InstructionSequence#path, #absolute_path, #label,
|
|
|
|
#base_label and #first_lineno to retrieve information from where
|
|
|
|
the instruction sequence was defined.
|
2013-01-06 20:44:42 -05:00
|
|
|
* added Environment variables to specify stack usage:
|
|
|
|
* RUBY_THREAD_VM_STACK_SIZE: vm stack size used at thread creation.
|
|
|
|
default: 128KB (32bit CPU) or 256KB (64bit CPU).
|
|
|
|
* RUBY_THREAD_MACHINE_STACK_SIZE: machine stack size used at thread
|
|
|
|
creation. default: 512KB or 1024KB.
|
|
|
|
* RUBY_FIBER_VM_STACK_SIZE: vm stack size used at fiber creation.
|
|
|
|
default: 64KB or 128KB.
|
|
|
|
* RUBY_FIBER_MACHINE_STACK_SIZE: machine stack size used at fiber
|
|
|
|
creation. default: 256KB or 256KB.
|
|
|
|
These variables are checked only at launched time.
|
|
|
|
* added constant DEFAULT_PARAMS to get above default parameters.
|
2013-01-06 19:38:06 -05:00
|
|
|
|
2011-07-12 10:42:48 -04:00
|
|
|
* Signal
|
2012-11-19 04:43:53 -05:00
|
|
|
* added method:
|
|
|
|
* added Signal.signame which returns signal name
|
|
|
|
|
2011-07-12 10:42:48 -04:00
|
|
|
* incompatible changes:
|
|
|
|
* Signal.trap raises ArgumentError when :SEGV, :BUS, :ILL, :FPE, :VTALRM
|
|
|
|
are specified.
|
|
|
|
|
2012-11-21 12:25:59 -05:00
|
|
|
* String
|
2012-11-05 19:50:02 -05:00
|
|
|
* added method:
|
|
|
|
* added String#b returning a copied string whose encoding is ASCII-8BIT.
|
2012-11-24 13:46:15 -05:00
|
|
|
* change return value:
|
|
|
|
* String#lines now returns an array instead of an enumerator.
|
|
|
|
* String#chars now returns an array instead of an enumerator.
|
|
|
|
* String#codepoints now returns an array instead of an enumerator.
|
|
|
|
* String#bytes now returns an array instead of an enumerator.
|
2012-11-05 19:50:02 -05:00
|
|
|
|
2012-04-23 23:46:55 -04:00
|
|
|
* Struct
|
|
|
|
* added method:
|
|
|
|
* added Struct#to_h returning values with keys corresponding to the
|
|
|
|
instance variable names.
|
|
|
|
|
2012-10-29 13:22:36 -04:00
|
|
|
* Thread
|
|
|
|
* added method:
|
|
|
|
* added Thread#thread_variable_get for getting thread local variables
|
|
|
|
(these are different than Fiber local variables).
|
|
|
|
* added Thread#thread_variable_set for setting thread local variables.
|
|
|
|
* added Thread#thread_variables for getting a list of the thread local
|
|
|
|
variable keys.
|
|
|
|
* added Thread#thread_variable? for testing to see if a particular thread
|
|
|
|
variable has been set.
|
2013-02-22 18:16:24 -05:00
|
|
|
* added Thread.handle_interrupt as well as instance and singleton methods
|
|
|
|
pending_interrupt? for asynchronous handling of exceptions
|
2012-11-19 01:07:06 -05:00
|
|
|
* added Thread#backtrace_locations which returns similar information of
|
|
|
|
Kernel#caller_locations.
|
2013-02-22 18:18:18 -05:00
|
|
|
* new class Thread::Backtrace::Location to hold backtrace location
|
|
|
|
information. These are returned by Thread#backtrace_locations and
|
|
|
|
Kernel#caller_locations.
|
2013-01-06 20:44:42 -05:00
|
|
|
* incompatible changes:
|
2012-11-28 09:53:47 -05:00
|
|
|
* Thread#join and Thread#value now raises a ThreadError if target thread
|
|
|
|
is the current or main thread.
|
2012-10-29 13:22:36 -04:00
|
|
|
|
2011-08-25 19:24:33 -04:00
|
|
|
* Time
|
|
|
|
* change return value:
|
2013-01-25 18:36:42 -05:00
|
|
|
* Time#to_s now returns US-ASCII encoding instead of BINARY.
|
2011-08-25 19:24:33 -04:00
|
|
|
|
2012-11-26 19:18:52 -05:00
|
|
|
* TracePoint
|
|
|
|
* new class. This class is replacement of set_trace_func.
|
|
|
|
Easy to use and efficient implementation.
|
|
|
|
|
2012-11-01 19:24:33 -04:00
|
|
|
* toplevel
|
|
|
|
* added method:
|
|
|
|
* added main.define_method which defines a global function.
|
2012-12-20 03:29:41 -05:00
|
|
|
* added main.using, which imports refinements into the current file or
|
2013-01-07 06:30:43 -05:00
|
|
|
eval string. [experimental]
|
2012-11-01 19:24:33 -04:00
|
|
|
|
2012-11-21 12:25:59 -05:00
|
|
|
* cgi
|
|
|
|
* Add HTML5 tag maker.
|
|
|
|
* CGI#header has been renamed to CGI#http_header and
|
|
|
|
aliased to CGI#header.
|
|
|
|
* When HTML5 tagmaker called, overwrite CGI#header,
|
|
|
|
CGI#header function is to create a <header> element.
|
|
|
|
|
2013-02-05 22:49:59 -05:00
|
|
|
* CSV
|
|
|
|
* Removed CSV::dump and CSV::load to protect users from dangerous
|
|
|
|
serialization vulnerability
|
|
|
|
|
2012-11-25 05:45:46 -05:00
|
|
|
* iconv
|
|
|
|
* Iconv has been removed. Use String#encode instead.
|
|
|
|
|
2013-02-03 02:54:29 -05:00
|
|
|
* io/console
|
|
|
|
* new methods:
|
|
|
|
* added IO#cooked which sets the terminal to cooked mode within the given block.
|
|
|
|
* added IO#cooked! which sets the terminal to cooked.
|
|
|
|
* extended method:
|
|
|
|
* IO#raw, IO#raw!, and IO#getch accept keyword arguments, :min and :time.
|
|
|
|
|
2012-11-21 12:25:59 -05:00
|
|
|
* io/wait
|
2012-11-21 08:53:02 -05:00
|
|
|
* new features:
|
|
|
|
* added IO#wait_writable method.
|
|
|
|
* added IO#wait_readable method as alias of IO#wait.
|
|
|
|
|
2013-02-11 22:05:45 -05:00
|
|
|
* json
|
|
|
|
* updated to 1.7.7.
|
|
|
|
|
2012-07-11 14:37:18 -04:00
|
|
|
* net/http
|
2012-07-19 22:05:27 -04:00
|
|
|
* new features:
|
|
|
|
* Proxies are now automatically detected from the http_proxy environment
|
|
|
|
variable. See Net::HTTP::new for details.
|
|
|
|
* gzip and deflate compression are now requested for all requests by
|
|
|
|
default. See Net::HTTP for details.
|
2012-07-24 20:05:59 -04:00
|
|
|
* SSL sessions are now reused across connections for a single instance.
|
|
|
|
This speeds up connection by using a previously negotiated session.
|
2012-12-21 15:36:07 -05:00
|
|
|
* Requests may be created from a URI which sets the request_uri and host
|
|
|
|
header of the request (but does not change the host connected to).
|
|
|
|
* Responses contain the URI requested which allows easier implementation of
|
|
|
|
redirect following.
|
2012-07-11 14:37:18 -04:00
|
|
|
* new methods:
|
|
|
|
* Net::HTTP#local_host
|
|
|
|
* Net::HTTP#local_host=
|
|
|
|
* Net::HTTP#local_port
|
|
|
|
* Net::HTTP#local_port=
|
|
|
|
* extended method:
|
|
|
|
* Net::HTTP#connect uses local_host and local_port if specified.
|
|
|
|
|
2011-09-09 03:48:00 -04:00
|
|
|
* net/imap
|
|
|
|
* new methods:
|
|
|
|
* Net::IMAP.default_port
|
|
|
|
* Net::IMAP.default_imap_port
|
|
|
|
* Net::IMAP.default_tls_port
|
|
|
|
* Net::IMAP.default_ssl_port
|
|
|
|
* Net::IMAP.default_imaps_port
|
|
|
|
|
2012-11-21 12:25:59 -05:00
|
|
|
* objspace
|
|
|
|
* new method:
|
|
|
|
* ObjectSpace.reachable_objects_from(obj)
|
|
|
|
|
|
|
|
* openssl
|
|
|
|
* Consistently raise an error when trying to encode nil values. All instances
|
|
|
|
of OpenSSL::ASN1::Primitive now raise TypeError when calling to_der on an
|
|
|
|
instance whose value is nil. All instances of OpenSSL::ASN1::Constructive
|
|
|
|
raise NoMethodError in the same case. Constructing such values is still
|
|
|
|
permitted.
|
|
|
|
* TLS 1.1 & 1.2 support by setting OpenSSL::SSL::SSLContext#ssl_version to
|
|
|
|
:TLSv1_2, :TLSv1_2_server, :TLSv1_2_client or :TLSv1_1, :TLSv1_1_server
|
|
|
|
:TLSv1_1_client. The version being effectively used can be queried
|
|
|
|
with OpenSSL::SSL#ssl_version. Furthermore, it is also possible to
|
|
|
|
blacklist the new TLS versions with OpenSSL::SSL:OP_NO_TLSv1_1 and
|
|
|
|
OpenSSL::SSL::OP_NO_TLSv1_2.
|
|
|
|
* Added OpenSSL::SSL::SSLContext#renegotiation_cb. A user-defined callback
|
|
|
|
may be set which gets called whenever a new handshake is negotiated. This
|
|
|
|
also allows to programmatically decline (client) renegotiation attempts.
|
|
|
|
* Support for "0/n" splitting of records as BEAST mitigation via
|
|
|
|
OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS.
|
2012-12-19 19:29:07 -05:00
|
|
|
* The default options for OpenSSL::SSL::SSLContext have changed to
|
|
|
|
OpenSSL::SSL::OP_ALL & ~OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS
|
|
|
|
instead of OpenSSL::SSL::OP_ALL only. This enables the countermeasure for
|
|
|
|
the BEAST attack by default.
|
2012-11-21 12:25:59 -05:00
|
|
|
* OpenSSL requires passwords for decrypting PEM-encoded files to be at least
|
|
|
|
four characters long. This led to awkward situations where an export with
|
|
|
|
a password with fewer than four characters was possible, but accessing the
|
|
|
|
file afterwards failed. OpenSSL::PKey::RSA, OpenSSL::PKey::DSA and
|
|
|
|
OpenSSL::PKey::EC therefore now enforce the same check when exporting a
|
|
|
|
private key to PEM with a password - it has to be at least four characters
|
|
|
|
long.
|
|
|
|
* SSL/TLS support for the Next Protocol Negotiation extension. Supported
|
|
|
|
with OpenSSL 1.0.1 and higher.
|
|
|
|
* OpenSSL::OPENSSL_FIPS allows client applications to detect whether OpenSSL
|
2012-12-19 19:29:07 -05:00
|
|
|
is FIPS-enabled. OpenSSL.fips_mode= allows turning on and off FIPS mode
|
|
|
|
manually in order to adapt to situations where FIPS mode would be an
|
|
|
|
explicit requirement.
|
2012-12-20 02:54:13 -05:00
|
|
|
* Authenticated Encryption with Associated Data (AEAD) is supported via
|
2013-01-23 15:05:21 -05:00
|
|
|
Cipher#auth_data= and Cipher#auth_tag/Cipher#auth_tag=.
|
2012-12-20 02:54:13 -05:00
|
|
|
Currently (OpenSSL 1.0.1c), only GCM mode is supported.
|
2012-12-19 20:52:47 -05:00
|
|
|
|
2012-04-23 23:46:55 -04:00
|
|
|
* ostruct
|
|
|
|
* new methods:
|
2012-10-28 17:20:10 -04:00
|
|
|
* OpenStruct#[], []=
|
2012-10-28 17:18:53 -04:00
|
|
|
* OpenStruct#each_pair
|
2012-10-28 17:19:15 -04:00
|
|
|
* OpenStruct#eql?
|
|
|
|
* OpenStruct#hash
|
2012-04-23 23:46:55 -04:00
|
|
|
* OpenStruct#to_h converts the struct to a hash.
|
2012-10-28 17:19:50 -04:00
|
|
|
* extended method:
|
|
|
|
* OpenStruct.new also accepts an OpenStruct / Struct.
|
2012-04-23 23:46:55 -04:00
|
|
|
|
2011-11-19 07:52:37 -05:00
|
|
|
* pathname
|
|
|
|
* extended method:
|
|
|
|
* Pathname#find returns an enumerator if no block is given.
|
|
|
|
|
2012-11-15 16:59:37 -05:00
|
|
|
* rake
|
2012-11-29 14:16:46 -05:00
|
|
|
* rake has been updated to version 0.9.5.
|
2012-11-15 16:59:37 -05:00
|
|
|
|
|
|
|
This version is backwards-compatible with previous rake versions and
|
2012-11-15 17:32:34 -05:00
|
|
|
contains many bug fixes.
|
|
|
|
|
|
|
|
See
|
2012-11-29 14:16:46 -05:00
|
|
|
http://rake.rubyforge.org/doc/release_notes/rake-0_9_5_rdoc.html for a list
|
|
|
|
of changes in rake 0.9.3, 0.9.4 and 0.9.5.
|
2012-11-15 16:59:37 -05:00
|
|
|
|
2013-01-23 20:28:47 -05:00
|
|
|
* RDoc
|
|
|
|
* RDoc has been updated to version 4.0
|
2012-11-26 23:28:14 -05:00
|
|
|
|
|
|
|
This version is largely backwards-compatible with previous rdoc versions.
|
|
|
|
The most notable change is an update to the ri data format (ri data must
|
|
|
|
be regenerated for gems shared across rdoc versions). Further API changes
|
|
|
|
are internal and won't affect most users.
|
|
|
|
|
2013-01-23 20:28:47 -05:00
|
|
|
Notable changes include:
|
|
|
|
|
|
|
|
* Page support for ri. Try `ri ruby:` for a list of pages in ruby or
|
|
|
|
`ri ruby:syntax/literals` for the syntax documentation for literals.
|
|
|
|
|
|
|
|
This also works for gems such as `ri rspec:README` for the rspec gem's
|
|
|
|
README file.
|
|
|
|
* Markdown support. See ri RDoc::Markdown for details.
|
|
|
|
|
|
|
|
See https://github.com/rdoc/rdoc/blob/master/History.rdoc for a full list
|
|
|
|
of changes in rdoc 4.0.
|
2012-11-26 23:28:14 -05:00
|
|
|
|
2011-10-22 04:50:50 -04:00
|
|
|
* resolv
|
|
|
|
* new methods:
|
|
|
|
* Resolv::DNS#timeouts=
|
|
|
|
* Resolv::DNS::Config#timeouts=
|
|
|
|
|
2012-11-21 12:25:59 -05:00
|
|
|
* rexml
|
|
|
|
* REXML::Document#write supports Hash arguments.
|
|
|
|
* REXML::Document#write supports new :encoding option. It changes
|
|
|
|
XML document encoding. Without :encoding option, encoding in
|
|
|
|
XML declaration is used for XML document encoding.
|
|
|
|
|
2012-11-30 02:06:01 -05:00
|
|
|
* RubyGems
|
2013-02-23 08:57:30 -05:00
|
|
|
* Updated to 2.0.0
|
2012-11-30 02:06:01 -05:00
|
|
|
|
|
|
|
RubyGems 2.0.0 features the following improvements:
|
|
|
|
|
|
|
|
* Improved support for default gems shipping with ruby 2.0.0+
|
|
|
|
* A gem can have arbitrary metadata through Gem::Specification#metadata
|
|
|
|
* `gem search` now defaults to --remote and is anchored like gem list.
|
|
|
|
* Added --document to replace --rdoc and --ri. Use --no-document to
|
|
|
|
disable documentation, --document=rdoc to only generate rdoc.
|
|
|
|
* Only ri-format documentation is generated by default.
|
|
|
|
* `gem server` uses RDoc::Servlet from RDoc 4.0 to generate HTML
|
|
|
|
documentation.
|
|
|
|
|
|
|
|
For an expanded list of updates and bug fixes see:
|
|
|
|
https://github.com/rubygems/rubygems/blob/master/History.txt
|
|
|
|
|
2012-01-12 13:49:30 -05:00
|
|
|
* shellwords
|
|
|
|
* Shellwords#shellescape() now stringifies the given object using to_s.
|
|
|
|
* Shellwords#shelljoin() accepts non-string objects in the given
|
|
|
|
array, each of which is stringified using to_s.
|
|
|
|
|
Deprecate #{lines,bytes,chars,codepoints} of IO-likes.
* io.c (rb_io_lines, rb_io_bytes, rb_io_chars, rb_io_codepoints):
Deprecate IO#{lines,bytes,chars,codepoints} and those of ARGF.
[Feature #6670]
* ext/stringio/stringio.c (strio_lines, strio_bytes, strio_chars)
(strio_codepoints): Deprecate
StringIO#{lines,bytes,chars,codepoints}. [Feature #6670]
* ext/zlib/zlib.c (rb_gzreader_lines, rb_gzreader_bytes):
Deprecate Zlib::GzipReader#{lines,bytes}. [Feature #6670]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-22 12:22:04 -05:00
|
|
|
* stringio
|
|
|
|
* deprecated methods:
|
|
|
|
* StringIO#lines, #bytes, #chars and #codepoints are deprecated.
|
|
|
|
|
2012-05-17 17:14:24 -04:00
|
|
|
* syslog
|
|
|
|
* Added Syslog::Logger which provides a Logger API atop Syslog.
|
2012-05-21 03:18:49 -04:00
|
|
|
* Syslog::Priority, Syslog::Level, Syslog::Option and Syslog::Macros
|
|
|
|
are introduced for easy detection of available constants on a
|
|
|
|
running system.
|
2012-05-17 17:14:24 -04:00
|
|
|
|
2012-11-21 12:25:59 -05:00
|
|
|
* tmpdir
|
2012-03-11 18:37:04 -04:00
|
|
|
* incompatible changes:
|
|
|
|
* Dir.mktmpdir uses FileUtils.remove_entry instead of
|
|
|
|
FileUtils.remove_entry_secure. This means that applications should not
|
|
|
|
change the permission of the created temporary directory to make
|
|
|
|
accessible from other users.
|
|
|
|
|
2012-11-21 12:25:59 -05:00
|
|
|
* yaml
|
|
|
|
* Syck has been removed. YAML now completely depends on libyaml being
|
|
|
|
installed.
|
2013-01-26 14:18:13 -05:00
|
|
|
* libyaml is now bundled with ruby, for cases where the library is not
|
|
|
|
installed locally.
|
2012-11-21 12:25:59 -05:00
|
|
|
|
2012-02-14 20:28:05 -05:00
|
|
|
* zlib
|
2012-07-10 14:28:40 -04:00
|
|
|
* Added streaming support for Zlib::Inflate and Zlib::Deflate. This allows
|
|
|
|
processing of a stream without the use of large amounts of memory.
|
2012-02-14 20:28:05 -05:00
|
|
|
* Added support for the new deflate strategies Zlib::RLE and Zlib::FIXED.
|
2012-07-02 17:03:15 -04:00
|
|
|
* Zlib streams are now processed without the GVL. This allows gzip, zlib and
|
|
|
|
deflate streams to be processed in parallel.
|
Deprecate #{lines,bytes,chars,codepoints} of IO-likes.
* io.c (rb_io_lines, rb_io_bytes, rb_io_chars, rb_io_codepoints):
Deprecate IO#{lines,bytes,chars,codepoints} and those of ARGF.
[Feature #6670]
* ext/stringio/stringio.c (strio_lines, strio_bytes, strio_chars)
(strio_codepoints): Deprecate
StringIO#{lines,bytes,chars,codepoints}. [Feature #6670]
* ext/zlib/zlib.c (rb_gzreader_lines, rb_gzreader_bytes):
Deprecate Zlib::GzipReader#{lines,bytes}. [Feature #6670]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-22 12:22:04 -05:00
|
|
|
* deprecated methods:
|
|
|
|
* Zlib::GzipReader#lines and #bytes are deprecated.
|
2012-02-14 20:28:05 -05:00
|
|
|
|
2010-10-28 07:14:05 -04:00
|
|
|
=== Language changes
|
2012-07-24 14:10:35 -04:00
|
|
|
|
2013-02-01 20:21:09 -05:00
|
|
|
* Added keyword arguments.
|
|
|
|
|
2012-07-24 14:10:35 -04:00
|
|
|
* Added %i and %I for symbol list creation (similar to %w and %W).
|
|
|
|
|
2012-11-05 19:49:57 -05:00
|
|
|
* Default source encoding is changed to UTF-8. (was US-ASCII)
|
|
|
|
|
2013-02-22 18:17:35 -05:00
|
|
|
* No warning for unused variables starting with '_'
|
|
|
|
|
2010-07-05 03:11:44 -04:00
|
|
|
=== Compatibility issues (excluding feature bug fixes)
|
|
|
|
|
2012-11-20 09:53:54 -05:00
|
|
|
* Array#values_at
|
|
|
|
|
|
|
|
See above.
|
|
|
|
|
2012-11-24 13:46:15 -05:00
|
|
|
* String#lines
|
|
|
|
* String#chars
|
|
|
|
* String#codepoints
|
|
|
|
* String#bytes
|
|
|
|
|
|
|
|
These methods no longer return an Enumerator, although passing a
|
|
|
|
block is still supported for backwards compatibility.
|
|
|
|
|
|
|
|
Code like str.lines.with_index(1) { |line, lineno| ... } no longer
|
|
|
|
works because str.lines returns an array. Replace lines with
|
|
|
|
each_line in such cases.
|
|
|
|
|
Deprecate #{lines,bytes,chars,codepoints} of IO-likes.
* io.c (rb_io_lines, rb_io_bytes, rb_io_chars, rb_io_codepoints):
Deprecate IO#{lines,bytes,chars,codepoints} and those of ARGF.
[Feature #6670]
* ext/stringio/stringio.c (strio_lines, strio_bytes, strio_chars)
(strio_codepoints): Deprecate
StringIO#{lines,bytes,chars,codepoints}. [Feature #6670]
* ext/zlib/zlib.c (rb_gzreader_lines, rb_gzreader_bytes):
Deprecate Zlib::GzipReader#{lines,bytes}. [Feature #6670]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-22 12:22:04 -05:00
|
|
|
* IO#lines
|
|
|
|
* IO#chars
|
|
|
|
* IO#codepoints
|
|
|
|
* IO#bytes
|
|
|
|
* ARGF#lines
|
|
|
|
* ARGF#chars
|
|
|
|
* ARGF#bytes
|
|
|
|
* StringIO#lines
|
|
|
|
* StringIO#chars
|
|
|
|
* StringIO#codepoints
|
|
|
|
* StringIO#bytes
|
|
|
|
* Zlib::GzipReader#lines
|
|
|
|
* Zlib::GzipReader#bytes
|
|
|
|
|
|
|
|
These methods are deprecated in favor of each_line, each_byte,
|
|
|
|
each_char and each_codepoint.
|
|
|
|
|
2013-01-23 15:05:42 -05:00
|
|
|
* Proc#==
|
2013-02-22 18:16:38 -05:00
|
|
|
* Proc#eql?
|
2013-01-23 15:05:42 -05:00
|
|
|
|
2013-02-22 18:16:38 -05:00
|
|
|
These methods were removed. Two procs are == only when they are
|
2013-01-23 15:05:42 -05:00
|
|
|
the same object.
|
|
|
|
|
2013-02-22 18:15:40 -05:00
|
|
|
* Fixnum
|
|
|
|
* Bignum
|
2013-02-22 18:15:55 -05:00
|
|
|
* Float
|
2013-02-22 18:15:40 -05:00
|
|
|
|
2013-02-22 18:16:10 -05:00
|
|
|
Fixnums, Bignums and Floats are frozen.
|
2013-02-22 18:15:40 -05:00
|
|
|
|
2011-07-12 10:42:48 -04:00
|
|
|
* Signal.trap
|
|
|
|
|
|
|
|
See above.
|
2011-10-22 05:58:15 -04:00
|
|
|
|
2012-02-17 02:42:23 -05:00
|
|
|
* Merge Onigmo.
|
|
|
|
https://github.com/k-takata/Onigmo
|
|
|
|
|
2012-03-11 00:53:20 -05:00
|
|
|
* The :close_others option is true by default for system() and exec().
|
2011-10-22 05:58:15 -04:00
|
|
|
Also, the close-on-exec flag is set by default for all new file descriptors.
|
|
|
|
This means file descriptors doesn't inherit to spawned process unless
|
|
|
|
explicitly requested such as system(..., fd=>fd).
|
2012-02-13 11:05:00 -05:00
|
|
|
|
|
|
|
* Kernel#respond_to? against a protected method now returns false
|
|
|
|
unless the second argument is true.
|
2012-03-11 18:37:04 -04:00
|
|
|
|
2013-02-22 18:18:04 -05:00
|
|
|
* Kernel#respond_to_missing?
|
|
|
|
* Kernel#initialize_clone
|
|
|
|
* Kernel#initialize_dup
|
|
|
|
|
|
|
|
These methods are now private.
|
|
|
|
|
2012-03-11 18:37:04 -04:00
|
|
|
* Dir.mktmpdir in lib/tmpdir.rb
|
|
|
|
|
|
|
|
See above.
|
2012-10-28 17:19:15 -04:00
|
|
|
|
|
|
|
* OpenStruct new methods can conflict with custom attributes named
|
|
|
|
"each_pair", "eql?", "hash" or "to_h".
|
2012-11-26 09:55:56 -05:00
|
|
|
|
2012-11-28 09:53:47 -05:00
|
|
|
* Thread#join, Thread#value
|
2012-11-28 21:58:31 -05:00
|
|
|
|
2012-11-28 09:53:47 -05:00
|
|
|
See above.
|
|
|
|
|
2012-11-26 10:17:01 -05:00
|
|
|
* Mutex#lock, Mutex#unlock, Mutex#try_lock, Mutex#synchronize and Mutex#sleep
|
|
|
|
|
|
|
|
See above.
|