warning: File.exists? is a deprecated name, use File.exist? instead
warning: shadowing outer local variable - key
Merge pull request #276 from amatsuda/warnings

Fix Ruby warnings and deprecations in 2.2.0