lib/nanoc/checking/checks/external_links.rb in nanoc-4.4.6 vs lib/nanoc/checking/checks/external_links.rb in nanoc-4.4.7
- old
+ new
@@ -10,11 +10,9 @@
# @api private
class ExternalLinks < ::Nanoc::Checking::Check
identifiers :external_links, :elinks
def run
- require 'parallel'
-
# Find all broken external hrefs
# TODO: de-duplicate this (duplicated in internal links check)
filenames = output_filenames.select { |f| File.extname(f) == '.html' && !excluded_file?(f) }
hrefs_with_filenames = ::Nanoc::Extra::LinkCollector.new(filenames, :external).filenames_per_href
results = select_invalid(hrefs_with_filenames.keys)