From 9e25e804c86e30923abfd1bd264f02115950a245 Mon Sep 17 00:00:00 2001 From: Markus Doits Date: Mon, 25 Jul 2016 18:03:23 +0200 Subject: [PATCH] Call `.to_s` on pathname to fix error on ruby 1.9.3 --- lib/pronto/eslint.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = -- 2.41.0