Module: HTML::Proofer::Configuration
- Defined in:
- lib/html/proofer/configuration.rb
Constant Summary collapse
- PROOFER_DEFAULTS =
{ :allow_hash_href => false, :alt_ignore => [], :check_external_hash => false, :check_favicon => false, :check_html => false, :checks_to_ignore => [], :directory_index_file => 'index.html', :disable_external => false, :empty_alt_ignore => false, :enforce_https => false, :error_sort => :path, :ext => '.html', :external_only => false, :file_ignore => [], :href_ignore => [], :href_swap => [], :only_4xx => false, :url_ignore => [], :verbose => false }
- TYPHOEUS_DEFAULTS =
{ :followlocation => true, :headers => { 'User-Agent' => "Mozilla/5.0 (compatible; HTML Proofer/#{HTML::Proofer::VERSION}; +https://github.com/gjtorikian/html-proofer)" } }
- HYDRA_DEFAULTS =
{ :max_concurrency => 50 }
Class Method Summary collapse
Class Method Details
.to_regex?(item) ⇒ Boolean
39 40 41 42 43 44 45 |
# File 'lib/html/proofer/configuration.rb', line 39 def self.to_regex?(item) if item.start_with?('/') && item.end_with?('/') Regexp.new item[1...-1] else item end end |