lib/cms_scanner/finders/finder.rb in cms_scanner-0.0.8 vs lib/cms_scanner/finders/finder.rb in cms_scanner-0.0.9

- old
+ new

@@ -1,11 +1,13 @@ +require 'cms_scanner/finders/finder/smart_url_checker' + module CMSScanner module Finders # Finder class Finder # Constants for common found_by - DIRECT_ACCESS = 'Direct Access (aggressive detection)' + DIRECT_ACCESS = 'Direct Access (Aggressive Detection)' attr_accessor :target def initialize(target) @target = target @@ -18,10 +20,11 @@ # @param [ Hash ] _opts def aggressive(_opts = {}) end def found_by - "#{self.class.to_s.demodulize} (#{caller_locations(1, 1)[0].label} detection)" + "#{self.class.to_s.demodulize.underscore.titleize} " \ + "(#{caller_locations(1, 1)[0].label.capitalize} Detection)" end end end end