[前][次][番号順一覧][スレッド一覧]

ruby-changes:59437

From: Nobuyoshi <ko1@a...>
Date: Tue, 24 Dec 2019 14:33:17 +0900 (JST)
Subject: [ruby-changes:59437] d0f1eb3e4e (master): Separated command line option in NEWS [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=d0f1eb3e4e

From d0f1eb3e4ef7cde2d78b493b3ba1561eee79b18f Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Tue, 24 Dec 2019 11:28:18 +0900
Subject: Separated command line option in NEWS [ci skip]


diff --git a/NEWS b/NEWS
index e6b6351..36d7af3 100644
--- a/NEWS
+++ b/NEWS
@@ -236,30 +236,6 @@ sufficient information, see the ChangeLog file or Redmine https://github.com/ruby/ruby/blob/trunk/NEWS#L236
 
 * 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)
 
 Array::
@@ -707,6 +683,31 @@ profile.rb, Profiler__:: https://github.com/ruby/ruby/blob/trunk/NEWS#L683
 
   * 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
 
 * Many <code>*_kw</code> functions have been added for setting whether
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]