ruby-changes:20906
From: tadf <ko1@a...>
Date: Sat, 13 Aug 2011 08:48:29 +0900 (JST)
Subject: [ruby-changes:20906] tadf:r32955 (trunk): * ext/date/date_core.c: .
tadf 2011-08-13 08:48:18 +0900 (Sat, 13 Aug 2011) New Revision: 32955 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32955 Log: * ext/date/date_core.c: [ruby-core:38855]. Modified files: trunk/ChangeLog trunk/ext/date/date_core.c Index: ChangeLog =================================================================== --- ChangeLog (revision 32954) +++ ChangeLog (revision 32955) @@ -1,3 +1,7 @@ +Sat Aug 13 08:47:20 2011 Tadayoshi Funaba <tadf@d...> + + * ext/date/date_core.c: [ruby-core:38855]. + Sat Aug 13 03:41:37 2011 Eric Hodel <drbrain@s...> * lib/uri/common.rb: Fix documentation of URI::Parser.new. Patch by Index: ext/date/date_core.c =================================================================== --- ext/date/date_core.c (revision 32954) +++ ext/date/date_core.c (revision 32955) @@ -4089,6 +4089,9 @@ rb_warning("invalid start is ignored"); } + if (NIL_P(hash)) + rb_raise(rb_eArgError, "invalid date"); + if (NIL_P(ref_hash("jd")) && NIL_P(ref_hash("yday")) && !NIL_P(ref_hash("year")) && @@ -7853,6 +7856,9 @@ rb_warning("invalid start is ignored"); } + if (NIL_P(hash)) + rb_raise(rb_eArgError, "invalid date"); + if (NIL_P(ref_hash("jd")) && NIL_P(ref_hash("yday")) && !NIL_P(ref_hash("year")) && -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/