From 857756ac6e07e6c2793c62ecd570fe2fc63c3aa1 Mon Sep 17 00:00:00 2001 From: zzak Date: Mon, 19 Jan 2015 17:57:03 +0000 Subject: [PATCH] * 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 --- ChangeLog | 7 +++++++ ext/pathname/pathname.c | 2 +- file.c | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d380d985b2..664affb135 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Tue Jan 20 02:54:11 2015 Zachary Scott + + * 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 * class.c (include_modules_at): allow prepend each modules upto diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c index 982ef0fdb7..d560e7356f 100644 --- a/ext/pathname/pathname.c +++ b/ext/pathname/pathname.c @@ -446,7 +446,7 @@ path_atime(VALUE self) * pathname.birthtime -> time * * Returns the birth time for the file. - * If the platform doesn't have birthtime, returns ctime. + * If the platform doesn't have birthtime, raises NotImplementedError. * * See File.birthtime. */ diff --git a/file.c b/file.c index 9539ea937a..70afb0ded5 100644 --- a/file.c +++ b/file.c @@ -892,7 +892,7 @@ rb_stat_ctime(VALUE self) * stat.birthtime -> aTime * * Returns the birth time for stat. - * If the platform doesn't have birthtime, returns ctime. + * If the platform doesn't have birthtime, raises NotImplementedError. * * File.write("testfile", "foo") * sleep 10