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

ruby-changes:34071

From: usa <ko1@a...>
Date: Tue, 27 May 2014 11:23:59 +0900 (JST)
Subject: [ruby-changes:34071] usa:r46152 (ruby_2_0_0): merge revision(s) 45520: [Backport #9706]

usa	2014-05-27 11:23:52 +0900 (Tue, 27 May 2014)

  New Revision: 46152

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

  Log:
    merge revision(s) 45520: [Backport #9706]
    
    * ext/date/date_core.c (d_lite_cmp): should compare with #<.

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/ext/date/date_core.c
    branches/ruby_2_0_0/test/date/test_switch_hitter.rb
    branches/ruby_2_0_0/version.h
Index: ruby_2_0_0/ChangeLog
===================================================================
--- ruby_2_0_0/ChangeLog	(revision 46151)
+++ ruby_2_0_0/ChangeLog	(revision 46152)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1
+Tue May 27 11:23:02 2014  Tadayoshi Funaba  <tadf@d...>
+
+	* ext/date/date_core.c (d_lite_cmp): should compare with #<.
+
 Mon May  5 00:42:35 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* ext/psych/yaml/config.h: ditto.
Index: ruby_2_0_0/ext/date/date_core.c
===================================================================
--- ruby_2_0_0/ext/date/date_core.c	(revision 46151)
+++ ruby_2_0_0/ext/date/date_core.c	(revision 46152)
@@ -6303,7 +6303,7 @@ d_lite_cmp(VALUE self, VALUE other) https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ext/date/date_core.c#L6303
 		    return INT2FIX(1);
 		}
 	    }
-	    else if (a_nth < b_nth) {
+	    else if (f_lt_p(a_nth, b_nth)) {
 		return INT2FIX(-1);
 	    }
 	    else {
Index: ruby_2_0_0/version.h
===================================================================
--- ruby_2_0_0/version.h	(revision 46151)
+++ ruby_2_0_0/version.h	(revision 46152)
@@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1
 #define RUBY_VERSION "2.0.0"
-#define RUBY_RELEASE_DATE "2014-05-08"
-#define RUBY_PATCHLEVEL 481
+#define RUBY_RELEASE_DATE "2014-05-27"
+#define RUBY_PATCHLEVEL 482
 
 #define RUBY_RELEASE_YEAR 2014
 #define RUBY_RELEASE_MONTH 5
-#define RUBY_RELEASE_DAY 8
+#define RUBY_RELEASE_DAY 27
 
 #include "ruby/version.h"
 
Index: ruby_2_0_0/test/date/test_switch_hitter.rb
===================================================================
--- ruby_2_0_0/test/date/test_switch_hitter.rb	(revision 46151)
+++ ruby_2_0_0/test/date/test_switch_hitter.rb	(revision 46152)
@@ -312,6 +312,8 @@ class TestSH < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/test/date/test_switch_hitter.rb#L312
     assert_equal(-1, Date.new(2001,2,3) <=> Rational('4903888/2'))
     assert_equal(0, Date.new(2001,2,3) <=> Rational('4903887/2'))
     assert_equal(1, Date.new(2001,2,3) <=> Rational('4903886/2'))
+
+    assert_equal(-1, Date.new(-4713,11,1,Date::GREGORIAN) <=> Date.new(-4713,12,1,Date::GREGORIAN))
   end
 
   def test_eqeqeq

Property changes on: ruby_2_0_0
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r45520


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

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