From: Ben Beltran Date: Mon, 8 Sep 2014 13:23:55 +0000 (-0500) Subject: Merge pull request #4 from mil/fix-exists-is-deprecated X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli.rb/commitdiff_plain/92c7bc006fd44f4dcd29ebaad7ee16c18aa099fc?hp=08a2ff7f2801498d5cf8f387e8c881ee1cda9a3c Merge pull request #4 from mil/fix-exists-is-deprecated Fixes warning that File.exists 'been deprecated in 2.1 --- 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