aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorMarkus Doits <markus.doits@stellenticket.de>2016-07-25 18:03:23 +0200
committerMarkus Doits <markus.doits@stellenticket.de>2016-07-25 18:03:23 +0200
commit9e25e804c86e30923abfd1bd264f02115950a245 (patch)
tree8abbf7e330514452abbea40062674715efe9ef54 /lib
parent13c41e366ef7a079b665543aca58c94c8f15c49a (diff)
downloadpronto-hlint-9e25e804c86e30923abfd1bd264f02115950a245.tar.gz
pronto-hlint-9e25e804c86e30923abfd1bd264f02115950a245.tar.zst
pronto-hlint-9e25e804c86e30923abfd1bd264f02115950a245.zip
Call `.to_s` on pathname to fix error on ruby 1.9.3
Diffstat (limited to 'lib')
-rw-r--r--lib/pronto/eslint.rb2
1 files changed, 1 insertions, 1 deletions
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
16 16
17 offences = 17 offences =
18 Dir.chdir(@_repo_path) do 18 Dir.chdir(@_repo_path) do
19 JSON.parse(`eslint #{Shellwords.escape(patch.new_file_full_path)} -f json`) 19 JSON.parse(`eslint #{Shellwords.escape(patch.new_file_full_path.to_s)} -f json`)
20 end 20 end
21 21
22 offences = 22 offences =