Sha256: ad600ef7c0b8727769fe698d9807f18808dd1cdfef17ff0d2e5ef8f97d0288cf
Contents?: true
Size: 779 Bytes
Versions: 10
Compression:
Stored size: 779 Bytes
Contents
module CMSScanner module Finders class Finder module SmartURLChecker # Findings class Findings < Array def <<(finding) each do |f| next unless f == finding && f.found_by == finding.found_by # This makes sure entries added are unique # and prevent pages redirecting to the same one to be added twice entries_to_add = finding.interesting_entries - f.interesting_entries return self if entries_to_add.empty? entries_to_add.each { |entry| f.interesting_entries << entry } f.confidence += finding.confidence return self end super(finding) end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems