Module: BrokenLinkFinder

Defined in:
lib/broken_link_finder/xpath.rb,
lib/broken_link_finder/finder.rb,
lib/broken_link_finder/version.rb,
lib/broken_link_finder/link_manager.rb,
lib/broken_link_finder/reporter/reporter.rb,
lib/broken_link_finder/reporter/html_reporter.rb,
lib/broken_link_finder/reporter/text_reporter.rb

Defined Under Namespace

Classes: Finder, HTMLReporter, LinkManager, Reporter, TextReporter

Constant Summary collapse

'/html/body//*/@href | /html/body//*/@src'
DEFAULT_MAX_THREADS =

Used by Finder#crawl_site.

100
SERVER_WAIT_TIME =

Used by Finder#retry_broken_links.

0.5
VERSION =
'0.12.3'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

The xpath used to extract links from a crawled page. Can be overridden as required.



12
13
14
# File 'lib/broken_link_finder/xpath.rb', line 12

def link_xpath
  @link_xpath
end

Class Method Details

.new(sort: :page, max_threads: DEFAULT_MAX_THREADS, &block) ⇒ Object

Alias for BrokenLinkFinder::Finder.new.



8
9
10
# File 'lib/broken_link_finder/finder.rb', line 8

def self.new(sort: :page, max_threads: DEFAULT_MAX_THREADS, &block)
  Finder.new(sort: sort, max_threads: max_threads, &block)
end