From 08ba6b3f36c513c249d743a9fd6848d5b032ab14 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 31 Dec 2008 23:45:05 +0000 Subject: merge revision(s) 15084: * lib/date.rb (Date::Infinity#<=>): didn't work. A patch from Dirkjan Bussink [ruby-core:15098]. This is a bug obviously. However it didn't affect the library's functions. * lib/date.rb, lib/date/format.rb: some trivial changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@21222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/date.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/date.rb') diff --git a/lib/date.rb b/lib/date.rb index 10d8c94ae3..0dfe1bb06e 100644 --- a/lib/date.rb +++ b/lib/date.rb @@ -275,8 +275,8 @@ class Date def <=> (other) case other - when Infinity; d <=> other.d - when Numeric; d + when Infinity; return d <=> other.d + when Numeric; return d else begin l, r = other.coerce(self) -- cgit v1.2.3