diff options
author | Azul <azul@riseup.net> | 2016-04-10 15:04:27 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-04-10 17:31:24 +0200 |
commit | cc3e5dc31d18ef30455e2c63e0cf078e0905bdca (patch) | |
tree | 42343485ef0bea6bf2ad7cad5500053dc38e0ebd | |
parent | 78f11d66a8521492a2fbca78c9e9c9e99ebc4a3e (diff) |
deprecation: File.exists? -> File.exist?
-rw-r--r-- | lib/nickserver/config.rb | 4 |
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 |