]> git.r.bdr.sh - rbdr/lyricli.rb/commitdiff
Merge pull request #4 from mil/fix-exists-is-deprecated
authorBen Beltran <redacted>
Mon, 8 Sep 2014 13:23:55 +0000 (08:23 -0500)
committerBen Beltran <redacted>
Mon, 8 Sep 2014 13:23:55 +0000 (08:23 -0500)
Fixes warning that File.exists 'been  deprecated in 2.1

lib/lyricli/configuration.rb

index b90e772b1fa3bfc04ccae56ee8cc2a1b8b366b29..53a3e2bb9566b6c8b533330d18af0990dc0bccbb 100644 (file)
@@ -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