local_pac 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/files/git-hook.erb +4 -3
- data/lib/local_pac/version.rb +1 -1
- metadata +1 -1
data/files/git-hook.erb
CHANGED
@@ -11,9 +11,10 @@ class PacFileSyntaxChecker
|
|
11
11
|
def check(files)
|
12
12
|
files.each do |f|
|
13
13
|
begin
|
14
|
-
PAC.
|
15
|
-
|
16
|
-
|
14
|
+
pac = PAC.source f.content
|
15
|
+
pac.find('http://www.example.com')
|
16
|
+
rescue => e
|
17
|
+
$stderr.puts "Maybe I found a syntax error in file \"#{f.name}\". Please check files locally again, e.g with a pac file tester, fix the error and send update via git. The original error was: #{e.message}"
|
17
18
|
exit 1
|
18
19
|
end
|
19
20
|
end
|
data/lib/local_pac/version.rb
CHANGED