diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-06 06:23:29 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-06 06:23:29 +0000 |
commit | e3d72485cae0fce61b415b5365c2a2cf99d63f48 (patch) | |
tree | 07b78baade57d26548bcf7390110785c31652d4c | |
parent | 8e2a2a8a8dae5b872f2cdaba0d52d19d25ebf9d3 (diff) | |
download | ruby-e3d72485cae0fce61b415b5365c2a2cf99d63f48.tar.gz |
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
-rw-r--r-- | lib/rubygems/specification.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/test_case.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb index 0da3584aae..6b8528f238 100644 --- a/lib/rubygems/specification.rb +++ b/lib/rubygems/specification.rb @@ -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 [] diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index 19d3cfd134..de85c0fceb 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -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 |