Project

General

Profile

Feature #9857

Pathname#birthtime

Added by Kazuhiro NISHIYAMA over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
[ruby-dev:48232]

Description

File.birthtime が追加されたので Pathname#birthtime もあると良いのではないでしょうか。

pathname-birthtime.patch View (1.29 KB) Kazuhiro NISHIYAMA, 05/27/2014 02:28 PM

pathname_birthtime.patch View (4.34 KB) Kazuhiro NISHIYAMA, 06/28/2014 10:32 AM


Related issues

Related to Ruby trunk - Feature #9647: File::Stat#birthtimeの追加 Closed 03/17/2014

Associated revisions

Revision 46602
Added by Akira Tanaka over 2 years ago

  • ext/pathname/pathname.c (path_birthtime): New method, Pathname#birthtime. Proposed by Kazuhiro NISHIYAMA. [Feature #9857]

Revision 46602
Added by Akira Tanaka over 2 years ago

  • ext/pathname/pathname.c (path_birthtime): New method, Pathname#birthtime. Proposed by Kazuhiro NISHIYAMA. [Feature #9857]

Revision 46602
Added by Akira Tanaka over 2 years ago

  • ext/pathname/pathname.c (path_birthtime): New method, Pathname#birthtime. Proposed by Kazuhiro NISHIYAMA. [Feature #9857]

Revision 46604
Added by Usaku NAKAMURA over 2 years ago

  • ext/pathname/pathname.c (path_birthtime): Windows support. see [Feature #9857]

Revision 46604
Added by Usaku NAKAMURA over 2 years ago

  • ext/pathname/pathname.c (path_birthtime): Windows support. see [Feature #9857]

Revision 46604
Added by Usaku NAKAMURA over 2 years ago

  • ext/pathname/pathname.c (path_birthtime): Windows support. see [Feature #9857]

History

#2 [ruby-dev:48249] Updated by Kazuhiro NISHIYAMA over 2 years ago

#3 [ruby-dev:48250] Updated by Yui NARUSE over 2 years ago

いいんじゃないでしょうか。
pathnameのメンテナはakrさんでしたっけ?

#4 [ruby-dev:48254] Updated by Nobuyoshi Nakada over 2 years ago

  • Status changed from Open to Assigned
  • Assignee set to Akira Tanaka

#5 [ruby-dev:48294] Updated by Akira Tanaka over 2 years ago

  • Status changed from Assigned to Feedback

機能はいいと思うんですが、この実装だと respond_to? で true になっちゃいますねぇ。

% ./ruby -rpathname -e 'p Pathname(".").respond_to?(:birthtime)'
true

#6 [ruby-dev:48338] Updated by Kazuhiro NISHIYAMA over 2 years ago

Mac OS X と Linux で respond_to? への対応も確認しました。
Windows は環境がなくて対応できていません。

#7 [ruby-dev:48339] Updated by Usaku NAKAMURA over 2 years ago

Win32的には全くお話になっていませんが、パッチのパッチを出すのは面倒なので、取り込まれたら対応します。

#8 [ruby-dev:48340] Updated by Akira Tanaka over 2 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 0 to 100

Applied in changeset r46602.


  • ext/pathname/pathname.c (path_birthtime): New method, Pathname#birthtime. Proposed by Kazuhiro NISHIYAMA. [Feature #9857]

Also available in: Atom PDF