mirror of https://github.com/rails/rails
Fix w3c_validator.rb validation script
This commit is contained in:
parent
71df60e921
commit
d150ef00c5
|
@ -32,7 +32,8 @@ include W3CValidators
|
||||||
module RailsGuides
|
module RailsGuides
|
||||||
class Validator
|
class Validator
|
||||||
def validate
|
def validate
|
||||||
validator = MarkupValidator.new
|
# https://github.com/w3c-validators/w3c_validators/issues/25
|
||||||
|
validator = NuValidator.new
|
||||||
STDOUT.sync = true
|
STDOUT.sync = true
|
||||||
errors_on_guides = {}
|
errors_on_guides = {}
|
||||||
|
|
||||||
|
@ -44,11 +45,11 @@ module RailsGuides
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
|
|
||||||
if results.validity
|
if results.errors.length > 0
|
||||||
print "."
|
|
||||||
else
|
|
||||||
print "E"
|
print "E"
|
||||||
errors_on_guides[f] = results.errors
|
errors_on_guides[f] = results.errors
|
||||||
|
else
|
||||||
|
print "."
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue