From: mil Date: Sun, 7 Sep 2014 01:21:33 +0000 (-0400) Subject: fix warn that File.exists 'been deprecated in 2.1 X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/commitdiff_plain/803172831f77eea8c97c6141de1c1a9375c81ca1?hp=--cc fix warn that File.exists 'been deprecated in 2.1 --- 803172831f77eea8c97c6141de1c1a9375c81ca1 diff --git a/lib/lyricli/configuration.rb b/lib/lyricli/configuration.rb index b90e772..53a3e2b 100644 --- a/lib/lyricli/configuration.rb +++ b/lib/lyricli/configuration.rb @@ -79,7 +79,7 @@ module Lyricli # Load the default path = File.join(::Lyricli.root, "config", @defaults_path) - if File.exists?(path) + if File.exist?(path) file = File.new(path, "r") @config = MultiJson.decode(file.read) else