Separated command line option in NEWS [ci skip]
This commit is contained in:
parent
5a62fb1277
commit
d0f1eb3e4e
49
NEWS
49
NEWS
@ -236,30 +236,6 @@ sufficient information, see the ChangeLog file or Redmine
|
|||||||
|
|
||||||
* Refinements take place at Object#method and Module#instance_method. [Feature #15373]
|
* Refinements take place at Object#method and Module#instance_method. [Feature #15373]
|
||||||
|
|
||||||
* Command line option +-W+ has been extended with a following +:+, to manage categorized
|
|
||||||
warnings. [Feature #16345] [Feature #16420]
|
|
||||||
|
|
||||||
# deprecation warning
|
|
||||||
$ ruby -e '$; = ""'
|
|
||||||
-e:1: warning: `$;' is deprecated
|
|
||||||
|
|
||||||
# suppress the deprecation warning
|
|
||||||
$ ruby -W:no-deprecated -e '$; = //'
|
|
||||||
|
|
||||||
# works with RUBYOPT environment variable
|
|
||||||
$ RUBYOPT=-W:no-deprecated ruby -e '$; = //'
|
|
||||||
|
|
||||||
# experimental feature warning
|
|
||||||
$ ruby -e '0 in a'
|
|
||||||
-e:1: warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby!
|
|
||||||
|
|
||||||
# suppress experimental feature warning
|
|
||||||
$ ruby -W:no-experimental -e '0 in a'
|
|
||||||
|
|
||||||
# suppress both by using RUBYOPT
|
|
||||||
$ RUBYOPT='-W:no-deprecated -W:no-experimental' ruby -e '($; = "") in a'
|
|
||||||
|
|
||||||
|
|
||||||
=== Core classes updates (outstanding ones only)
|
=== Core classes updates (outstanding ones only)
|
||||||
|
|
||||||
Array::
|
Array::
|
||||||
@ -707,6 +683,31 @@ profile.rb, Profiler__::
|
|||||||
|
|
||||||
* Removed from standard library. It was unmaintained since Ruby 2.0.0.
|
* Removed from standard library. It was unmaintained since Ruby 2.0.0.
|
||||||
|
|
||||||
|
=== Command line option
|
||||||
|
|
||||||
|
* +-W+ option has been extended with a following +:+, to manage categorized
|
||||||
|
warnings. [Feature #16345] [Feature #16420]
|
||||||
|
|
||||||
|
# deprecation warning
|
||||||
|
$ ruby -e '$; = ""'
|
||||||
|
-e:1: warning: `$;' is deprecated
|
||||||
|
|
||||||
|
# suppress the deprecation warning
|
||||||
|
$ ruby -W:no-deprecated -e '$; = //'
|
||||||
|
|
||||||
|
# works with RUBYOPT environment variable
|
||||||
|
$ RUBYOPT=-W:no-deprecated ruby -e '$; = //'
|
||||||
|
|
||||||
|
# experimental feature warning
|
||||||
|
$ ruby -e '0 in a'
|
||||||
|
-e:1: warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby!
|
||||||
|
|
||||||
|
# suppress experimental feature warning
|
||||||
|
$ ruby -W:no-experimental -e '0 in a'
|
||||||
|
|
||||||
|
# suppress both by using RUBYOPT
|
||||||
|
$ RUBYOPT='-W:no-deprecated -W:no-experimental' ruby -e '($; = "") in a'
|
||||||
|
|
||||||
=== C API updates
|
=== C API updates
|
||||||
|
|
||||||
* Many <code>*_kw</code> functions have been added for setting whether
|
* Many <code>*_kw</code> functions have been added for setting whether
|
||||||
|
Loading…
x
Reference in New Issue
Block a user