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

ruby-changes:31473

From: naruse <ko1@a...>
Date: Wed, 6 Nov 2013 15:23:34 +0900 (JST)
Subject: [ruby-changes:31473] naruse:r43552 (trunk): Suppress warnings: File.exists? is a deprecated name

naruse	2013-11-06 15:23:29 +0900 (Wed, 06 Nov 2013)

  New Revision: 43552

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

  Log:
    Suppress warnings: File.exists? is a deprecated name

  Modified files:
    trunk/lib/rubygems/specification.rb
    trunk/lib/rubygems/test_case.rb
Index: lib/rubygems/specification.rb
===================================================================
--- lib/rubygems/specification.rb	(revision 43551)
+++ lib/rubygems/specification.rb	(revision 43552)
@@ -1400,7 +1400,7 @@ class Gem::Specification < Gem::BasicSpe https://github.com/ruby/ruby/blob/trunk/lib/rubygems/specification.rb#L1400
   # Returns the build_args used to install the gem
 
   def build_args
-    if File.exists? build_info_file
+    if File.exist? build_info_file
       File.readlines(build_info_file).map { |x| x.strip }
     else
       []
Index: lib/rubygems/test_case.rb
===================================================================
--- lib/rubygems/test_case.rb	(revision 43551)
+++ lib/rubygems/test_case.rb	(revision 43552)
@@ -376,7 +376,7 @@ class Gem::TestCase < MiniTest::Unit::Te https://github.com/ruby/ruby/blob/trunk/lib/rubygems/test_case.rb#L376
 
     gem = File.join @tempdir, "gems", "#{spec.full_name}.gem"
 
-    unless File.exists? gem
+    unless File.exist? gem
       use_ui Gem::MockGemUi.new do
         Dir.chdir @tempdir do
           Gem::Package.build spec

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

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