]> git.immae.eu Git - github/fretlink/pronto-hlint.git/commitdiff
Call `.to_s` on pathname to fix error on ruby 1.9.3
authorMarkus Doits <markus.doits@stellenticket.de>
Mon, 25 Jul 2016 16:03:23 +0000 (18:03 +0200)
committerMarkus Doits <markus.doits@stellenticket.de>
Mon, 25 Jul 2016 16:03:23 +0000 (18:03 +0200)
lib/pronto/eslint.rb

index d57a4083c5a118599f6c3f8728deb080bc92c098..a2ec738a50de0afa9424b0dbdd14db0a4baf786d 100644 (file)
@@ -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 =