mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/syck/rubyext.c: omission of Date library code caused
test suite failure. [ruby-core:2251] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cfcebb7e8f
commit
5cebcf9a2b
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Jan 13 16:53:25 2004 why the lucky stiff <why@ruby-lang.org>
|
||||
|
||||
* ext/syck/rubyext.c: omission of Date library code caused
|
||||
test suite failure. [ruby-core:2251]
|
||||
|
||||
Tue Jan 13 16:50:03 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||
|
||||
* ext/tk/lib/tk.rb: use $0 as the default application class name.
|
||||
|
|
|
@ -521,6 +521,14 @@ yaml_org_handler( n, ref )
|
|||
ptr += 2;
|
||||
while ( !ISDIGIT( *ptr ) ) ptr++;
|
||||
day = INT2FIX(strtol(ptr, NULL, 10));
|
||||
|
||||
if ( !cDate ) {
|
||||
/*
|
||||
* Load Date module
|
||||
*/
|
||||
rb_require( "date" );
|
||||
cDate = rb_const_get( rb_cObject, rb_intern("Date") );
|
||||
}
|
||||
|
||||
obj = rb_funcall( cDate, s_new, 3, year, mon, day );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue