summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-26 00:31:00 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-26 00:31:00 +0000
commitfb66bf2dd8f307b9741f4f076d70c6cbf560d0e5 (patch)
treeeae6866acf1211d2dd6eabe623b029a6a9c84595
parent2530d3e30e2dea824ca3e19533115e1f527a5690 (diff)
* lib/mathn.rb: mathn library is deprecated on ruby 2.2.
[Feature #10169][ruby-core:64553] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--NEWS3
-rw-r--r--lib/mathn.rb2
3 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 82d6bbd2e7..cc6d491989 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Aug 26 09:27:10 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
+
+ * 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@gmail.com>
* lib/mathn.rb: removed commented-out code.
diff --git a/NEWS b/NEWS
index 08c6ddc887..2754d8cc08 100644
--- a/NEWS
+++ b/NEWS
@@ -121,6 +121,9 @@ with all sufficient information, see the ChangeLog file.
=== 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.
diff --git a/lib/mathn.rb b/lib/mathn.rb
index b18a0edb25..004f41748e 100644
--- a/lib/mathn.rb
+++ b/lib/mathn.rb
@@ -38,6 +38,8 @@
# 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"