summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-04-10 15:04:27 +0200
committerAzul <azul@riseup.net>2016-04-10 17:31:24 +0200
commitcc3e5dc31d18ef30455e2c63e0cf078e0905bdca (patch)
tree42343485ef0bea6bf2ad7cad5500053dc38e0ebd
parent78f11d66a8521492a2fbca78c9e9c9e99ebc4a3e (diff)
deprecation: File.exists? -> File.exist?
-rw-r--r--lib/nickserver/config.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nickserver/config.rb b/lib/nickserver/config.rb
index 0f44b79..46b6bef 100644
--- a/lib/nickserver/config.rb
+++ b/lib/nickserver/config.rb
@@ -42,12 +42,12 @@ module Nickserver
if @hkp_ca_file
# look for the hkp_ca_file either by absolute path or relative to nickserver gem root
[@hkp_ca_file, File.expand_path(@hkp_ca_file, "#{__FILE__}/../../../")].each do |file|
- if File.exists?(file)
+ if File.exist?(file)
@hkp_ca_file = file
break
end
end
- unless File.exists?(@hkp_ca_file)
+ unless File.exist?(@hkp_ca_file)
STDERR.puts "ERROR in configuration: cannot find hkp_ca_file `#{@hkp_ca_file}`"
exit(1)
end