Sha256: a0f6a178c2f47dfe5d0b5b9d21d45d9324c43cc43092466ab9313bcd8a0f3aaa
Contents?: true
Size: 552 Bytes
Versions: 4
Compression:
Stored size: 552 Bytes
Contents
module Sniffles module Sniffers class Zencart include HTML attr_accessor :doc attr_reader :output def initialize(response_body) @output = {} parse(response_body) && process_document end def process_document @output[:found] = found? end private def found? !!(meta_generator_content =~ /by Zen Cart/) end def meta_generator_content text_at("//meta[@name='generator']/@content") end end end end
Version data entries
4 entries across 4 versions & 1 rubygems