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:
parent
8e2a2a8a8d
commit
e3d72485ca
@ -1400,7 +1400,7 @@ class Gem::Specification < Gem::BasicSpecification
|
|||||||
# Returns the build_args used to install the gem
|
# Returns the build_args used to install the gem
|
||||||
|
|
||||||
def build_args
|
def build_args
|
||||||
if File.exists? build_info_file
|
if File.exist? build_info_file
|
||||||
File.readlines(build_info_file).map { |x| x.strip }
|
File.readlines(build_info_file).map { |x| x.strip }
|
||||||
else
|
else
|
||||||
[]
|
[]
|
||||||
|
@ -376,7 +376,7 @@ class Gem::TestCase < MiniTest::Unit::TestCase
|
|||||||
|
|
||||||
gem = File.join @tempdir, "gems", "#{spec.full_name}.gem"
|
gem = File.join @tempdir, "gems", "#{spec.full_name}.gem"
|
||||||
|
|
||||||
unless File.exists? gem
|
unless File.exist? gem
|
||||||
use_ui Gem::MockGemUi.new do
|
use_ui Gem::MockGemUi.new do
|
||||||
Dir.chdir @tempdir do
|
Dir.chdir @tempdir do
|
||||||
Gem::Package.build spec
|
Gem::Package.build spec
|
||||||
|
Loading…
x
Reference in New Issue
Block a user