From 0d7f3dd3fa0ab0bfeb74208da18379c82d370d62 Mon Sep 17 00:00:00 2001 From: eban Date: Fri, 19 Nov 2004 02:26:23 +0000 Subject: * lib/xmlrpc/datetime.rb (XMLRPC::DateTime#==): should use Array() instead of to_a. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 3 +++ lib/xmlrpc/datetime.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8f696db28..0eb3bf4a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ Fri Nov 19 11:10:16 2004 WATANABE Hirofumi * test/testunit/collector/test_dir.rb: ditto. + * lib/xmlrpc/datetime.rb (XMLRPC::DateTime#==): should use Array() + instead of to_a. + Fri Nov 19 10:32:36 2004 Shugo Maeda * ext/readline/readline.c (readline_s_set_completion_append_character): diff --git a/lib/xmlrpc/datetime.rb b/lib/xmlrpc/datetime.rb index 8ae6c7a56..298263fe8 100644 --- a/lib/xmlrpc/datetime.rb +++ b/lib/xmlrpc/datetime.rb @@ -127,7 +127,7 @@ class DateTime end def ==(o) - self.to_a == o.to_a + Array(self) == Array(o) end end -- cgit