Suppress warnings: File.exists? is a deprecated name

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-11-06 06:23:29 +00:00
parent 8e2a2a8a8d
commit e3d72485ca
2 changed files with 2 additions and 2 deletions

View File

@ -1400,7 +1400,7 @@ class Gem::Specification < Gem::BasicSpecification
# 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
[]

View File

@ -376,7 +376,7 @@ class Gem::TestCase < MiniTest::Unit::TestCase
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