Sha256: 26da5f207dc08c5327f28bcb7e911c6244832c5c16ef1039b4b774242a092419
Contents?: true
Size: 226 Bytes
Versions: 2
Compression:
Stored size: 226 Bytes
Contents
# encoding: utf-8 module LocalPac class PacFileValidator def valid?(file) pac = PAC.source(file.content) pac.find('http://www.example.com') true rescue StandardError false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
local_pac-0.5.0 | lib/local_pac/pac_file_validator.rb |
local_pac-0.4.0 | lib/local_pac/pac_file_validator.rb |