mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
cc777d09f4
Also, as it's in the middle of the list of 4 arguments, 3rd and 4th arguments (trim_mode, eoutvar) are changed to keyword arguments. Old ways to specify arguments are deprecated and warned now. bin/erb: deprecate -S option. We'll remove all of deprecated ones at Ruby 2.7+. enc/make_encmake.rb: stopped using deprecated interface ext/etc/mkconstants.rb: ditto ext/socket/mkconstants.rb: ditto sample/ripper/ruby2html.rb: ditto spec/ruby/library/erb/defmethod/def_erb_method_spec.rb: ditto spec/ruby/library/erb/new_spec.rb: ditto test/erb/test_erb.rb: ditto test/erb/test_erb_command.rb: ditto tool/generic_erb.rb: ditto tool/ruby_vm/helpers/dumper.rb: ditto tool/transcode-tblgen.rb: ditto lib/rdoc/erbio.rb: ditto lib/rdoc/generator/darkfish.rb: ditto [Feature #14256] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
105 lines
3 KiB
Text
105 lines
3 KiB
Text
# -*- rdoc -*-
|
|
|
|
= NEWS for Ruby 2.6.0
|
|
|
|
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 or Redmine
|
|
(e.g. <tt>https://bugs.ruby-lang.org/issues/$FEATURE_OR_BUG_NUMBER</tt>)
|
|
|
|
== Changes since the 2.5.0 release
|
|
|
|
=== Language changes
|
|
|
|
* $SAFE is a process global state and we can set 0 again. [Feature #14250]
|
|
|
|
* refinements take place at block passing. [Feature #14223]
|
|
|
|
=== Core classes updates (outstanding ones only)
|
|
|
|
* Binding
|
|
|
|
* New methods:
|
|
|
|
* added Binding#source_location. [Feature #14230]
|
|
|
|
This method returns the source location of binding, a 2-element
|
|
array of `__FILE__` and `__LINE__`. Traditionally, the same
|
|
information could be retrieved by `eval("[__FILE__, __LINE__]",
|
|
binding)`, but we are planning to change this behavior so that
|
|
`Kernel#eval` ignores binding's source location [Bug #4352].
|
|
So, users should use this newly-introduced method instead of
|
|
`Kernel#eval`.
|
|
|
|
* Dir
|
|
|
|
* New methods:
|
|
|
|
* added Dir#each_child and Dir#children instance methods. [Feature #13969]
|
|
|
|
* Kernel
|
|
|
|
* Kernel.#system takes :exception option to raise an exception on
|
|
failure. [Feature #14386]
|
|
|
|
* KeyError
|
|
|
|
* KeyError#initialize accepts :receiver and :key options to set receiver and key in Ruby code. [Feature #14313]
|
|
|
|
* NameError
|
|
|
|
* NameError#initialize accepts :receiver option to set receiver in Ruby code. [Feature #14313]
|
|
|
|
* NoMethodError
|
|
|
|
* NoMethodError#initialize accepts :receiver option to set receiver in Ruby code. [Feature #14313]
|
|
|
|
* Proc
|
|
|
|
* Proc#call doesn't change $SAFE any more. [Feature #14250]
|
|
|
|
* Random
|
|
|
|
* New methods:
|
|
|
|
* added Random.bytes. [Feature #4938]
|
|
|
|
=== Stdlib updates (outstanding ones only)
|
|
|
|
* ERB
|
|
|
|
* 2nd, 3rd and 4th arguments of ERB.new are deprecated. 2nd argument (safe_level) will be dropped in the future
|
|
and some of those arguments (trim_mode, eoutvar) are changed to keyword arguments. [Feature #14256]
|
|
|
|
* Matrix
|
|
|
|
* New method:
|
|
|
|
* Matrix#antisymmetric?
|
|
|
|
=== Compatibility issues (excluding feature bug fixes)
|
|
|
|
=== Stdlib compatibility issues (excluding feature bug fixes)
|
|
|
|
=== C API updates
|
|
|
|
=== Supported platform changes
|
|
|
|
=== Implementation improvements
|
|
|
|
* Speedup `Proc#call` because we don't need to care about `$SAFE` any more. [Feature #14318]
|
|
With `lc_fizzbuzz` benchmark which uses so many `Proc#call` we can measure
|
|
x1.4 improvements [Bug #10212].
|
|
|
|
* Speedup `block.call` where `block` is passed block parameter. [Feature #14330]
|
|
Ruby 2.5 improves block passing performance. [Feature #14045]
|
|
Additionally, Ruby 2.6 improves the performance of passed block calling.
|
|
|
|
* `--jit` option to enable JIT compiler is added. [Feature #14235] [experimental]
|
|
|
|
* VM generator script renewal; makes the generated VM more optimized. [GH-1779]
|
|
|
|
=== Miscellaneous changes
|