lib/nanoc/checking/checks/w3c_validator.rb in nanoc-4.6.1 vs lib/nanoc/checking/checks/w3c_validator.rb in nanoc-4.6.2
- old
+ new
@@ -1,9 +1,10 @@
module ::Nanoc::Checking::Checks
# @api private
class W3CValidator < ::Nanoc::Checking::Check
def run
require 'w3c_validators'
+ require 'resolv-replace'
Dir[@config[:output_dir] + '/**/*.' + extension].each do |filename|
results = validator_class.new.validate_file(filename)
lines = File.readlines(filename)
results.errors.each do |e|