2013-02-24 19:44:08 -05:00
|
|
|
# -*- rdoc -*-
|
|
|
|
|
2013-12-25 11:05:13 -05:00
|
|
|
= NEWS for Ruby 2.2.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.
|
|
|
|
|
2013-12-25 11:05:13 -05:00
|
|
|
== Changes since the 2.1.0 release
|
2010-09-15 12:14:05 -04:00
|
|
|
|
2013-02-23 09:23:39 -05:00
|
|
|
=== Language changes
|
2013-08-01 13:33:29 -04:00
|
|
|
|
2013-02-23 09:23:39 -05:00
|
|
|
=== Core classes updates (outstanding ones only)
|
2013-03-10 14:23:00 -04:00
|
|
|
|
2014-02-14 10:45:11 -05:00
|
|
|
* Enumerable
|
|
|
|
* Extended methods:
|
2014-03-24 09:51:28 -04:00
|
|
|
* min, min_by, max and max_by supports optional argument to return
|
|
|
|
multiple elements.
|
|
|
|
|
2014-02-25 11:34:00 -05:00
|
|
|
* Symbol
|
|
|
|
* New methods
|
|
|
|
* Symbol.find(str) returns whether given string is defined as symbol or not.
|
2014-03-26 10:19:10 -04:00
|
|
|
* Improvements
|
2014-03-27 01:42:57 -04:00
|
|
|
* Most symbols which are returned by String#to_sym and
|
|
|
|
String#intern are GC-able.
|
2014-02-14 10:45:11 -05:00
|
|
|
|
2014-04-06 13:45:54 -04:00
|
|
|
* Matrix
|
|
|
|
* New methods:
|
|
|
|
* Matrix#first_minor(row, column) returns the submatrix obtained
|
|
|
|
by deleting the specified row and column.
|
2014-04-06 13:46:16 -04:00
|
|
|
* Matrix#cofactor(row, column) returns the (row, column) cofactor
|
|
|
|
which is obtained by multiplying the first minor by (-1)**(row + column).
|
2014-04-06 13:45:54 -04:00
|
|
|
|
2013-02-23 09:23:39 -05:00
|
|
|
=== Core classes compatibility issues (excluding feature bug fixes)
|
2013-03-07 12:54:49 -05:00
|
|
|
|
2014-03-02 13:01:55 -05:00
|
|
|
* IO
|
|
|
|
* incompatible changes:
|
|
|
|
* When flushing file IO, you cannot assume that the metadata of the file
|
|
|
|
is updated immediately. On some platforms (especially Windows), it is
|
2014-03-02 17:18:38 -05:00
|
|
|
delayed until the filesystem load is decreased.
|
2014-03-14 00:29:36 -04:00
|
|
|
* Proc
|
|
|
|
* incompatible changes:
|
|
|
|
* ArgumentError is no longer raised when lambda Proc is passed as a
|
|
|
|
block, and the number of yielded arguments does not match the formal
|
|
|
|
arguments of the lambda, if just an array is yielded and its length
|
|
|
|
matches.
|
2014-03-02 13:01:55 -05:00
|
|
|
|
2013-02-23 09:23:39 -05:00
|
|
|
=== Stdlib updates (outstanding ones only)
|
2013-03-11 13:27:03 -04:00
|
|
|
|
2014-03-08 06:01:48 -05:00
|
|
|
* Find, Pathname
|
|
|
|
* Extended methods:
|
|
|
|
* find method accepts "ignore_error" keyword argument.
|
|
|
|
|
2013-02-23 09:23:39 -05:00
|
|
|
=== Stdlib compatibility issues (excluding feature bug fixes)
|
2013-04-25 01:27:41 -04:00
|
|
|
|
2013-06-13 20:53:37 -04:00
|
|
|
=== Built-in global variables compatibility issues
|
|
|
|
|
2013-02-23 09:23:39 -05:00
|
|
|
=== C API updates
|
2013-11-22 23:46:34 -05:00
|
|
|
|
2014-02-14 21:43:32 -05:00
|
|
|
* Deprecated APIs removed. [Feature #9502]
|
|
|
|
|
|
|
|
Check_SafeStr -> SafeStringValue
|
|
|
|
rb_check_safe_str -> SafeStringValue
|
|
|
|
rb_quad_pack -> rb_integer_pack
|
|
|
|
rb_quad_unpack -> rb_integer_unpack
|
|
|
|
rb_read_check : access struct FILE internal. no replacement.
|
|
|
|
rb_struct_iv_get : internal function. no replacement.
|
|
|
|
struct rb_blocking_region_buffer : internal type. no replacement.
|
|
|
|
rb_thread_blocking_region_begin -> rb_thread_call_without_gvl family
|
|
|
|
rb_thread_blocking_region_end -> rb_thread_call_without_gvl family
|
|
|
|
TRAP_BEG -> rb_thread_call_without_gvl family
|
|
|
|
TRAP_END -> rb_thread_call_without_gvl family
|
|
|
|
rb_thread_select -> rb_thread_fd_select
|
|
|
|
struct rb_exec_arg : internal type. no replacement.
|
|
|
|
rb_exec : internal function. no replacement.
|
|
|
|
rb_exec_arg_addopt : internal function. no replacement.
|
|
|
|
rb_exec_arg_fixup : internal function. no replacement.
|
|
|
|
rb_exec_arg_init : internal function. no replacement.
|
|
|
|
rb_exec_err : internal function. no replacement.
|
|
|
|
rb_fork : internal function. no replacement.
|
|
|
|
rb_fork_err : internal function. no replacement.
|
|
|
|
rb_proc_exec_n : internal function. no replacement.
|
|
|
|
rb_run_exec_options : internal function. no replacement.
|
|
|
|
rb_run_exec_options_err : internal function. no replacement.
|
|
|
|
rb_thread_blocking_region -> rb_thread_call_without_gvl family
|
|
|
|
rb_thread_polling -> rb_thread_wait_for
|
|
|
|
rb_big2str0 : internal function. no replacement.
|
|
|
|
rb_big2ulong_pack -> rb_integer_pack
|
|
|
|
rb_gc_set_params : internal function. no replacement.
|
|
|
|
|
|
|
|
* struct RBignum is hidden. [Feature #6083]
|
2014-02-14 21:47:19 -05:00
|
|
|
Use rb_integer_pack and rb_integer_unpack instead.
|
2014-03-22 19:34:21 -04:00
|
|
|
|
|
|
|
* st hash table uses power-of-two sizes for speed [Feature #9425].
|
|
|
|
Lookups are 10-25% faster if using appropriate hash functions.
|
|
|
|
However, weaknesses in hash distribution can no longer be masked
|
|
|
|
by prime number-sized tables, so extensions may need to tweak
|
|
|
|
hash functions to ensure good distribution.
|
2014-03-26 10:19:10 -04:00
|
|
|
|
|
|
|
* rb_sym2str() added. This is almost same as `rb_id2str(SYM2ID(sym))`
|
|
|
|
but not pinning a dynamic symbol.
|
|
|
|
|
|
|
|
* struct RSymbol added. This represents a dynamic symbol as object in
|
|
|
|
Ruby's heaps.
|
2014-04-17 01:22:57 -04:00
|
|
|
|
|
|
|
* rb_str_cat_cstr() added. This is same as `rb_str_cat2()`.
|
2014-04-18 08:48:26 -04:00
|
|
|
|
|
|
|
* `rb_str_substr()` and `rb_str_subseq()` now share middle of a string,
|
|
|
|
but not only the end of a string. Therefore, result strings may not
|
|
|
|
be NULL-terminated, `StringValueCStr()` is needed calling to obtain a
|
|
|
|
NULL-terminated C string.
|