Sha256: 79095cc7e2c5642e8f963a004ef18213921a144ac598029ca8d3aebcd83dcbb9
Contents?: true
Size: 400 Bytes
Versions: 3
Compression:
Stored size: 400 Bytes
Contents
# encoding: utf-8 module LocalPac class PacFileValidator def valid?(file) validate(file) true rescue StandardError false end def errors(file) validate(file) '' rescue StandardError => e e.message end private def validate(file) pac = PAC.source(file.content) pac.find('http://www.example.com') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
local_pac-0.6.3 | lib/local_pac/pac_file_validator.rb |
local_pac-0.6.2 | lib/local_pac/pac_file_validator.rb |
local_pac-0.6.1 | lib/local_pac/pac_file_validator.rb |