summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-07 03:55:21 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-07 03:55:21 +0000
commit666409ba5011a86267d7a54541ce6e69b9e59550 (patch)
tree775d70a9043b9a632f0a07bfc8aaccd4b887a78a
parentfcd2fb4e871f3787f34b05cffeb7e5df7b04f29f (diff)
* lib/rake.rb (Rake::FileList::ARRAY_METHODS): fix test failure by <=>
definition at Kernel. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/rake.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ef3593b8df7..d364c9e6c22 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Feb 7 12:53:12 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/rake.rb (Rake::FileList::ARRAY_METHODS): fix test failure by <=>
+ definition at Kernel.
+
Sun Feb 7 03:01:46 2010 Tanaka Akira <akr@fsij.org>
* math.c (math_lgamma): initialize sign because
diff --git a/lib/rake.rb b/lib/rake.rb
index f14b9b519f8..b46b1968782 100644
--- a/lib/rake.rb
+++ b/lib/rake.rb
@@ -1237,7 +1237,7 @@ module Rake
# 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]