8000 merge revision(s) r45520: [Backport #9706] · github/ruby@f6a385b · GitHub
[go: up one dir, main page]

Skip to content

Commit f6a385b

Browse files
committed
merge revision(s) r45520: [Backport ruby#9706]
* ext/date/date_core.c (d_lite_cmp): should compare with #<. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@46185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent cbca421 commit f6a385b

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Wed May 28 00:18:29 2014 Tadayoshi Funaba <tadf@dotrb.org>
2+
3+
* ext/date/date_core.c (d_lite_cmp): should compare with #<.
4+
15
Fri May 23 00:04:13 2014 Tanaka Akira <akr@fsij.org>
26

37
* ext/socket/socket.c (sock_s_getnameinfo): Save errno for EAI_SYSTEM.

ext/date/date_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6306,7 +6306,7 @@ d_lite_cmp(VALUE self, VALUE other)
63066306
return INT2FIX(1);
63076307
}
63086308
}
6309-
else if (a_nth < b_nth) {
6309+
else if (f_lt_p(a_nth, b_nth)) {
63106310
return INT2FIX(-1);
63116311
}
63126312
else {

test/date/test_switch_hitter.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ def test_cmp
312312
assert_equal(-1, Date.new(2001,2,3) <=> Rational('4903888/2'))
313313
assert_equal(0, Date.new(2001,2,3) <=> Rational('4903887/2'))
314314
assert_equal(1, Date.new(2001,2,3) <=> Rational('4903886/2'))
315+
316+
assert_equal(-1, Date.new(-4713,11,1,Date::GREGORIAN) <=> Date.new(-4713,12,1,Date::GREGORIAN))
315317
end
316318

317319
def test_eqeqeq

version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#define RUBY_VERSION "2.1.2"
2-
#define RUBY_RELEASE_DATE "2014-05-23"
3-
#define RUBY_PATCHLEVEL 106
2+
#define RUBY_RELEASE_DATE "2014-05-28"
3+
#define RUBY_PATCHLEVEL 107
44

55
#define RUBY_RELEASE_YEAR 2014
66
#define RUBY_RELEASE_MONTH 5
7-
#define RUBY_RELEASE_DAY 23
7+
#define RUBY_RELEASE_DAY 28
88

99
#include "ruby/version.h"
1010

0 commit comments

Comments
 (0)
0