1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
zzak 2015-01-19 17:57:03 +00:00
parent 0fb2cd458b
commit 857756ac6e
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,10 @@
Tue Jan 20 02:54:11 2015 Zachary Scott <e@zzak.io>
* 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@ruby-lang.org> Mon Jan 19 22:08:26 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* class.c (include_modules_at): allow prepend each modules upto * class.c (include_modules_at): allow prepend each modules upto

View file

@ -446,7 +446,7 @@ path_atime(VALUE self)
* pathname.birthtime -> time * pathname.birthtime -> time
* *
* Returns the birth time for the file. * 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. * See File.birthtime.
*/ */

2
file.c
View file

@ -892,7 +892,7 @@ rb_stat_ctime(VALUE self)
* stat.birthtime -> aTime * stat.birthtime -> aTime
* *
* Returns the birth time for <i>stat</i>. * 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") * File.write("testfile", "foo")
* sleep 10 * sleep 10