Method: HTMLProofer::Runner#check_files
- Defined in:
- lib/html_proofer/runner.rb
#check_files ⇒ Object
Walks over each implemented check and runs them on the files, in parallel. Sends the collected external URLs to Typhoeus for batch processing.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/html_proofer/runner.rb', line 78 def check_files process_files.each do |result| URL_TYPES.each do |url_type| type = :"#{url_type}_urls" ivar_name = "@#{type}" ivar = instance_variable_get(ivar_name) if ivar.empty? instance_variable_set(ivar_name, result[type]) else result[type].each do |url, | ivar[url] = [] if ivar[url].nil? ivar[url].concat() end end end @failures.concat(result[:failures]) end validate_external_urls unless @options[:disable_external] validate_internal_urls end |