ruby-changes:59444
From: Marcus <ko1@a...>
Date: Tue, 24 Dec 2019 17:55:27 +0900 (JST)
Subject: [ruby-changes:59444] 44a1f51695 (master): NEWS: improve sections for warning option / Warning
https://git.ruby-lang.org/ruby.git/commit/?id=44a1f51695 From 44a1f51695058159ff2f191c97a082bed9665137 Mon Sep 17 00:00:00 2001 From: Marcus Stollsteimer <sto.mar@w...> Date: Tue, 24 Dec 2019 09:49:22 +0100 Subject: NEWS: improve sections for warning option / Warning diff --git a/NEWS b/NEWS index 206e385..fbe4223 100644 --- a/NEWS +++ b/NEWS @@ -247,14 +247,14 @@ sufficient information, see the ChangeLog file or Redmine https://github.com/ruby/ruby/blob/trunk/NEWS#L247 * Refinements take place at Object#method and Module#instance_method. [Feature #15373] -=== Command line option +=== Command line options ==== Warning option -+-W+ option has been extended with a following +:+, to manage categorized +The +-W+ option has been extended with a following +:+, to manage categorized warnings. [Feature #16345] [Feature #16420] -* To suppress the deprecation warning: +* To suppress deprecation warnings: $ ruby -e '$; = ""' -e:1: warning: `$;' is deprecated @@ -265,7 +265,7 @@ warnings. [Feature #16345] [Feature #16420] https://github.com/ruby/ruby/blob/trunk/NEWS#L265 $ RUBYOPT=-W:no-deprecated ruby -e '$; = //' -* To suppress experimental feature warning: +* To suppress experimental feature warnings: $ ruby -e '0 in a' -e:1: warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby! @@ -545,7 +545,7 @@ Warning:: https://github.com/ruby/ruby/blob/trunk/NEWS#L545 New methods:: - * Added Warning.[] and Warning.[]= to manage emit/suppress of + * Added Warning.[] and Warning.[]= to manage emitting/suppressing some categories of warnings. [Feature #16345] [Feature #16420] $LOAD_PATH:: -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/