Skip to content

Commit

Permalink
Ruby 2.1 has deprecated File.exists
Browse files Browse the repository at this point in the history
  • Loading branch information
cupakromer committed Mar 16, 2014
1 parent e8b9e05 commit fba8433
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -47,7 +47,7 @@ task :default => [:spec, :cucumber]

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
Expand Down
2 changes: 1 addition & 1 deletion rspec-expectations.gemspec
Expand Up @@ -24,7 +24,7 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 1.8.7'

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
Expand Down

0 comments on commit fba8433

Please sign in to comment.