local_pac 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,9 +11,10 @@ class PacFileSyntaxChecker
11
11
  def check(files)
12
12
  files.each do |f|
13
13
  begin
14
- PAC.load f.content
15
- rescue
16
- $stderr.puts "Syntax error found in #{f.name}. Please check files locally again, fix the error and send update via git."
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
@@ -1,4 +1,4 @@
1
1
  #main LocalPac
2
2
  module LocalPac
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: local_pac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: