lib/cms_scanner.rb in cms_scanner-0.0.39.4 vs lib/cms_scanner.rb in cms_scanner-0.0.40
- old
+ new
@@ -3,23 +3,24 @@
require 'nokogiri'
require 'yajl/json_gem'
require 'public_suffix'
require 'addressable/uri'
require 'ruby-progressbar'
-require 'ruby-progressbar/outputs/null'
require 'opt_parse_validator'
require 'active_support/concern'
require 'active_support/inflector'
# Standard Libs
require 'erb'
require 'uri'
require 'fileutils'
require 'pathname'
+require 'xmlrpc/client'
# Monkey Patches
-require 'cms_scanner/typhoeus/response'
-require 'cms_scanner/typhoeus/hydra'
-require 'cms_scanner/public_suffix/domain'
-require 'cms_scanner/numeric'
+require 'cms_scanner/typhoeus/response' # Adds a Response#html using Nokogiri to parse the body
+require 'cms_scanner/typhoeus/hydra' # https://github.com/typhoeus/typhoeus/issues/439
+require 'cms_scanner/public_suffix/domain' # Adds a Domain#match method and logic, used in scope stuff
+require 'cms_scanner/numeric' # Adds a Numeric#bytes_to_human
+require 'cms_scanner/progressbar_null_output'
# Custom Libs
require 'cms_scanner/helper'
require 'cms_scanner/exit_code'
require 'cms_scanner/errors/http'
require 'cms_scanner/cache/typhoeus'