From cc3e5dc31d18ef30455e2c63e0cf078e0905bdca Mon Sep 17 00:00:00 2001 From: Azul Date: Sun, 10 Apr 2016 15:04:27 +0200 Subject: deprecation: File.exists? -> File.exist? --- lib/nickserver/config.rb | 4 ++-- 1 file 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 -- cgit v1.2.3