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:
parent
b0666f0a4c
commit
53f299f16b
2 changed files with 2 additions and 2 deletions
2
Rakefile
2
Rakefile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue