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

ruby-changes:14752

From: akr <ko1@a...>
Date: Sun, 7 Feb 2010 13:02:01 +0900 (JST)
Subject: [ruby-changes:14752] Ruby:r26611 (trunk): * lib/rake.rb (Rake::FileList::ARRAY_METHODS): fix test failure by <=>

akr	2010-02-07 12:55:21 +0900 (Sun, 07 Feb 2010)

  New Revision: 26611

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

  Log:
    * lib/rake.rb (Rake::FileList::ARRAY_METHODS): fix test failure by <=>
      definition at Kernel.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rake.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 26610)
+++ ChangeLog	(revision 26611)
@@ -1,3 +1,8 @@
+Sun Feb  7 12:53:12 2010  Tanaka Akira  <akr@f...>
+
+	* lib/rake.rb (Rake::FileList::ARRAY_METHODS): fix test failure by <=>
+	  definition at Kernel.
+
 Sun Feb  7 03:01:46 2010  Tanaka Akira  <akr@f...>
 
 	* math.c (math_lgamma): initialize sign because
Index: lib/rake.rb
===================================================================
--- lib/rake.rb	(revision 26610)
+++ lib/rake.rb	(revision 26611)
@@ -1237,7 +1237,7 @@
 
     # List of array methods (that are not in +Object+) that need to be
     # delegated.
-    ARRAY_METHODS = (Array.instance_methods - Object.instance_methods).map { |n| n.to_s }
+    ARRAY_METHODS = (Array.instance_methods - (Object.instance_methods - [:<=>])).map { |n| n.to_s }
 
     # List of additional methods that must be delegated.
     MUST_DEFINE = %w[to_a inspect]

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

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