Fix w3c_validator.rb validation script

This commit is contained in:
Laurent Arnoud 2017-02-23 21:57:01 +01:00
parent 71df60e921
commit d150ef00c5
No known key found for this signature in database
GPG Key ID: A79DAB2374F95DD5
1 changed files with 5 additions and 4 deletions

View File

@ -32,7 +32,8 @@ include W3CValidators
module RailsGuides
class Validator
def validate
validator = MarkupValidator.new
# https://github.com/w3c-validators/w3c_validators/issues/25
validator = NuValidator.new
STDOUT.sync = true
errors_on_guides = {}
@ -44,11 +45,11 @@ module RailsGuides
next
end
if results.validity
print "."
else
if results.errors.length > 0
print "E"
errors_on_guides[f] = results.errors
else
print "."
end
end