Bug #222

Issues with Date#<=>

Added by Federico Builes over 3 years ago. Updated 10 months ago.

[ruby-core:17523]
Status:Closed Start date:07/03/2008
Priority:Normal Due date:
Assignee:Shyouhei Urabe % Done:

100%

Category:-
Target version:Ruby 1.8.6
ruby -v:

Description

Current versions of 1.8.6 return nil when doing comparations between Date:Infinity

     ruby -v -rdate -e"puts Date::Infinity.new <=> +Date::Infinity.new"
     ruby 1.8.6 (2008-06-29 patchlevel 255) [i686-darwin9.3.0]
     nil

     ruby-1.8.7 -v -rdate -e"puts Date::Infinity.new <=> +Date::Infinity.new"
     ruby 1.8.7 (2008-05-31 patchlevel 0) [i686-darwin9.3.0]
     0

This might be a change worth backporting from 1.8.7

History

Updated by Yui NARUSE over 3 years ago

  • Assignee set to Shyouhei Urabe

Updated by Shyouhei Urabe about 3 years ago

  • Status changed from Open to Closed
  • Target version set to Ruby 1.8.6
  • % Done changed from 0 to 100
Applied in changeset r21222.

Also available in: Atom PDF