From: Markus Doits Date: Mon, 25 Jul 2016 16:03:23 +0000 (+0200) Subject: Call `.to_s` on pathname to fix error on ruby 1.9.3 X-Git-Tag: v0.1.0~42 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=9e25e804c86e30923abfd1bd264f02115950a245;p=github%2Ffretlink%2Fpronto-hlint.git Call `.to_s` on pathname to fix error on ruby 1.9.3 --- diff --git a/lib/pronto/eslint.rb b/lib/pronto/eslint.rb index d57a408..a2ec738 100644 --- a/lib/pronto/eslint.rb +++ b/lib/pronto/eslint.rb @@ -16,7 +16,7 @@ module Pronto offences = Dir.chdir(@_repo_path) do - JSON.parse(`eslint #{Shellwords.escape(patch.new_file_full_path)} -f json`) + JSON.parse(`eslint #{Shellwords.escape(patch.new_file_full_path.to_s)} -f json`) end offences =