[前][次][番号順一覧][スレッド一覧]

ruby-changes:32921

From: hsbt <ko1@a...>
Date: Sun, 16 Feb 2014 15:55:15 +0900 (JST)
Subject: [ruby-changes:32921] hsbt:r45000 (trunk): * test/test_securerandom.rb: use File.exist? instead of File.exists?

hsbt	2014-02-16 15:55:06 +0900 (Sun, 16 Feb 2014)

  New Revision: 45000

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45000

  Log:
    * test/test_securerandom.rb: use File.exist? instead of File.exists?

  Modified files:
    trunk/ChangeLog
    trunk/test/test_securerandom.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44999)
+++ ChangeLog	(revision 45000)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sun Feb 16 15:53:36 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* test/test_securerandom.rb: File.exists? is deprecated. use File.exist?
+
 Sun Feb 16 15:05:00 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
 
 	* test/pathname/test_pathname.rb: File.exists? is deprecated. use File.exist?
Index: test/test_securerandom.rb
===================================================================
--- test/test_securerandom.rb	(revision 44999)
+++ test/test_securerandom.rb	(revision 45000)
@@ -176,7 +176,7 @@ end https://github.com/ruby/ruby/blob/trunk/test/test_securerandom.rb#L176
     $LOADED_FEATURES.delete_if { |path|
       if File.basename(path) == basename
         $LOAD_PATH.any? { |dir|
-          File.exists?(File.join(dir, basename))
+          File.exist?(File.join(dir, basename))
         }
       end
     }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]