ruby-changes:35052
From: nobu <ko1@a...>
Date: Mon, 11 Aug 2014 16:17:30 +0900 (JST)
Subject: [ruby-changes:35052] nobu:r47134 (trunk): dir.c: Dir.exists? is deprecated
nobu 2014-08-11 16:17:22 +0900 (Mon, 11 Aug 2014) New Revision: 47134 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47134 Log: dir.c: Dir.exists? is deprecated * dir.c (rb_dir_exists_p): [DOC] Document that Dir.exists? is deprecated. [ruby-core:64135] [Bug #10102] Modified files: trunk/ChangeLog trunk/dir.c Index: ChangeLog =================================================================== --- ChangeLog (revision 47133) +++ ChangeLog (revision 47134) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Aug 11 16:17:21 2014 Tony Miller <mcfiredrill@g...> + + * dir.c (rb_dir_exists_p): [DOC] Document that Dir.exists? is + deprecated. [ruby-core:64135] [Bug #10102] + Mon Aug 11 11:26:33 2014 Nobuyoshi Nakada <nobu@r...> * lib/tempfile.rb: start rdoc parsing inside singleton class Index: dir.c =================================================================== --- dir.c (revision 47133) +++ dir.c (revision 47134) @@ -2211,7 +2211,6 @@ dir_s_home(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/dir.c#L2211 /* * call-seq: * Dir.exist?(file_name) -> true or false - * Dir.exists?(file_name) -> true or false * * Returns <code>true</code> if the named file is a directory, * <code>false</code> otherwise. @@ -2223,6 +2222,12 @@ rb_file_directory_p() https://github.com/ruby/ruby/blob/trunk/dir.c#L2222 } #endif +/* + * call-seq: + * Dir.exists?(file_name) -> true or false + * + * Deprecated method. Don't use. + */ static VALUE rb_dir_exists_p(VALUE obj, VALUE fname) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/