1
0
Fork 0
mirror of https://github.com/rspec/rspec-metagem.git synced 2022-11-09 12:09:29 -05:00

Ruby 2.1 has deprecated File.exists

This commit is contained in:
Aaron Kromer 2014-03-16 18:23:22 -04:00
parent b0666f0a4c
commit 53f299f16b
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ end
task :verify_private_key_present do
private_key = File.expand_path('~/.gem/rspec-gem-private_key.pem')
unless File.exists?(private_key)
unless File.exist?(private_key)
raise "Your private key is not present. This gem should not be built without that."
end
end

View file

@ -25,7 +25,7 @@ Gem::Specification.new do |s|
s.require_path = "lib"
private_key = File.expand_path('~/.gem/rspec-gem-private_key.pem')
if File.exists?(private_key)
if File.exist?(private_key)
s.signing_key = private_key
s.cert_chain = [File.expand_path('~/.gem/rspec-gem-public_cert.pem')]
end