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

ruby-changes:35163

From: hsbt <ko1@a...>
Date: Fri, 22 Aug 2014 12:22:02 +0900 (JST)
Subject: [ruby-changes:35163] hsbt:r47245 (trunk): * lib/complex.rb: removed deprecated library.

hsbt	2014-08-22 12:21:55 +0900 (Fri, 22 Aug 2014)

  New Revision: 47245

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

  Log:
    * lib/complex.rb: removed deprecated library.
    * lib/rational.rb: ditto.

  Removed files:
    trunk/lib/complex.rb
    trunk/lib/rational.rb
  Modified files:
    trunk/ChangeLog
    trunk/NEWS
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47244)
+++ ChangeLog	(revision 47245)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Aug 22 12:21:46 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* lib/complex.rb: removed deprecated library.
+	* lib/rational.rb: ditto.
+
 Fri Aug 22 11:38:49 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* lib/prettyprint.rb: removed PrettyPrint#first?
Index: lib/rational.rb
===================================================================
--- lib/rational.rb	(revision 47244)
+++ lib/rational.rb	(revision 47245)
@@ -1,23 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/lib/rational.rb#L0
-# :enddoc:
-
-warn('lib/rational.rb is deprecated') if $VERBOSE
-
-class Fixnum
-
-  alias quof fdiv
-  alias rdiv quo
-
-  alias power! ** unless method_defined? :power!
-  alias rpower **
-
-end
-
-class Bignum
-
-  alias quof fdiv
-  alias rdiv quo
-
-  alias power! ** unless method_defined? :power!
-  alias rpower **
-
-end
Index: lib/complex.rb
===================================================================
--- lib/complex.rb	(revision 47244)
+++ lib/complex.rb	(revision 47245)
@@ -1,28 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/lib/complex.rb#L0
-# :enddoc:
-
-warn('lib/complex.rb is deprecated') if $VERBOSE
-
-require 'cmath'
-
-unless defined?(Math.exp!)
-  Object.instance_eval{remove_const :Math}
-  Math = CMath
-end
-
-def Complex.generic? (other)
-  other.kind_of?(Integer) ||
-  other.kind_of?(Float)   ||
-  other.kind_of?(Rational)
-end
-
-class Complex
-
-  alias image imag
-
-end
-
-class Numeric
-
-  def im() Complex(0, self) end
-
-end
Index: NEWS
===================================================================
--- NEWS	(revision 47244)
+++ NEWS	(revision 47245)
@@ -134,6 +134,12 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L134
   * Time.httpdate produces always UTC Time object.
   * Time.strptime raises ArgumentError when no date information.
 
+* lib/rational.rb
+  * Removed because it is deprecated from 2009.
+
+* lib/complex.rb
+  * Removed because it is deprecated from 2009.
+
 * lib/prettyprint.rb
   * Removed PrettyPrint#first?
 

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

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