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

ruby-changes:35200

From: hsbt <ko1@a...>
Date: Tue, 26 Aug 2014 09:31:07 +0900 (JST)
Subject: [ruby-changes:35200] hsbt:r47282 (trunk): * lib/mathn.rb: mathn library is deprecated on ruby 2.2.

hsbt	2014-08-26 09:31:00 +0900 (Tue, 26 Aug 2014)

  New Revision: 47282

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47282

  Log:
    * lib/mathn.rb: mathn library is deprecated on ruby 2.2.
      [Feature #10169][ruby-core:64553]

  Modified files:
    trunk/ChangeLog
    trunk/NEWS
    trunk/lib/mathn.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47281)
+++ ChangeLog	(revision 47282)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Aug 26 09:27:10 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* lib/mathn.rb: mathn library is deprecated on ruby 2.2.
+	  [Feature #10169][ruby-core:64553]
+
 Tue Aug 26 09:25:03 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* lib/mathn.rb: removed commented-out code.
Index: lib/mathn.rb
===================================================================
--- lib/mathn.rb	(revision 47281)
+++ lib/mathn.rb	(revision 47282)
@@ -38,6 +38,8 @@ https://github.com/ruby/ruby/blob/trunk/lib/mathn.rb#L38
 # class Numeric follows to make this documentation findable in a reasonable
 # location
 
+warn('lib/mathn.rb is deprecated') if $VERBOSE
+
 class Numeric; end
 
 require "cmath.rb"
Index: NEWS
===================================================================
--- NEWS	(revision 47281)
+++ NEWS	(revision 47282)
@@ -121,6 +121,9 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L121
 
 === Stdlib compatibility issues (excluding feature bug fixes)
 
+* lib/mathn.rb
+  * Show deprecated warning [Feature #10169]
+
 * ext/date/lib/date/format.rb
   * Removed because it's empty file.
 

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

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