ruby-changes:37256
From: zzak <ko1@a...>
Date: Tue, 20 Jan 2015 04:17:17 +0900 (JST)
Subject: [ruby-changes:37256] zzak:r49336 (trunk): * file.c: NotImplementedError is raised if birthtime is unavailable.
zzak 2015-01-20 02:57:03 +0900 (Tue, 20 Jan 2015) New Revision: 49336 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49336 Log: * file.c: NotImplementedError is raised if birthtime is unavailable. Patch by @y-yagi san and [Fixes GH-817] [ci skip] [DOC] * ext/pathname/pathname.c: ditto. Modified files: trunk/ChangeLog trunk/ext/pathname/pathname.c trunk/file.c Index: ChangeLog =================================================================== --- ChangeLog (revision 49335) +++ ChangeLog (revision 49336) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Jan 20 02:54:11 2015 Zachary Scott <e@z...> + + * file.c: NotImplementedError is raised if birthtime is unavailable. + Patch by @y-yagi san and [Fixes GH-817] [ci skip] [DOC] + + * ext/pathname/pathname.c: ditto. + Mon Jan 19 22:08:26 2015 Nobuyoshi Nakada <nobu@r...> * class.c (include_modules_at): allow prepend each modules upto Index: ext/pathname/pathname.c =================================================================== --- ext/pathname/pathname.c (revision 49335) +++ ext/pathname/pathname.c (revision 49336) @@ -446,7 +446,7 @@ path_atime(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/pathname/pathname.c#L446 * pathname.birthtime -> time * * Returns the birth time for the file. - * If the platform doesn't have birthtime, returns <i>ctime</i>. + * If the platform doesn't have birthtime, raises NotImplementedError. * * See File.birthtime. */ Index: file.c =================================================================== --- file.c (revision 49335) +++ file.c (revision 49336) @@ -892,7 +892,7 @@ rb_stat_ctime(VALUE self) https://github.com/ruby/ruby/blob/trunk/file.c#L892 * stat.birthtime -> aTime * * Returns the birth time for <i>stat</i>. - * If the platform doesn't have birthtime, returns <i>ctime</i>. + * If the platform doesn't have birthtime, raises NotImplementedError. * * File.write("testfile", "foo") * sleep 10 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/