middleman-xmlvalidator 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,42 +6,46 @@ module Middleman
|
|
6
6
|
app.after_build do |builder|
|
7
7
|
puts "", "Validating with NokoGiri", ""
|
8
8
|
|
9
|
-
Dir.glob("
|
10
|
-
puts
|
11
|
-
Xmlvalidator.validate(full_path, 'BingSiteAuth.xsd').each do |error|
|
12
|
-
puts " " + error.message
|
13
|
-
end
|
9
|
+
Dir.glob("**/schema/**/*.xsd").each do |full_path|
|
10
|
+
puts full_path
|
14
11
|
end
|
15
12
|
|
16
|
-
Dir.glob("build/**/*
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
end
|
13
|
+
# Dir.glob("build/**/*BingSiteAuth.xml").each do |full_path|
|
14
|
+
# puts " validating".blue + " #{full_path}....." + (Xmlvalidator.valid(full_path, 'BingSiteAuth.xsd') == true ? "COMPLETE".green : "ERRORS FOUND".red)
|
15
|
+
# Xmlvalidator.validate(full_path, 'BingSiteAuth.xsd').each do |error|
|
16
|
+
# puts " " + error.message
|
17
|
+
# end
|
18
|
+
# end
|
22
19
|
|
23
|
-
Dir.glob("build/**/*
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
20
|
+
# Dir.glob("build/**/*crossdomain.xml").each do |full_path|
|
21
|
+
# puts " validating".blue + " #{full_path}....." + (Xmlvalidator.valid(full_path, 'crossdomain.xsd') == true ? "COMPLETE".green : "ERRORS FOUND".red)
|
22
|
+
# Xmlvalidator.validate(full_path, 'crossdomain.xsd').each do |error|
|
23
|
+
# puts " " + error.message
|
24
|
+
# end
|
25
|
+
# end
|
29
26
|
|
30
|
-
Dir.glob("build
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
end
|
27
|
+
# Dir.glob("build/**/*Sitemap.xml").each do |full_path|
|
28
|
+
# puts " validating".blue + " #{full_path}....." + (Xmlvalidator.valid(full_path, 'Sitemap3.xsd') == true ? "COMPLETE".green : "ERRORS FOUND".red)
|
29
|
+
# Xmlvalidator.validate(full_path, 'Sitemap3.xsd').each do |error|
|
30
|
+
# puts " " + error.message
|
31
|
+
# end
|
32
|
+
# end
|
36
33
|
|
37
|
-
Dir.glob("build/**/*.
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
34
|
+
# Dir.glob("build/**/*.rss").each do |full_path|
|
35
|
+
# puts " validating".blue + " #{full_path}....." + (Xmlvalidator.valid(full_path, 'RSSSchema.xsd') == true ? "COMPLETE".green : "ERRORS FOUND".red)
|
36
|
+
# Xmlvalidator.validate(full_path, 'RSSSchema.xsd').each do |error|
|
37
|
+
# puts " " + error.message
|
38
|
+
# end
|
39
|
+
# end
|
40
|
+
|
41
|
+
# Dir.glob("build/**/*.xml").each do |full_path|
|
42
|
+
# if not (full_path.match(/^.*BingSiteAuth.xml$/) || full_path.match(/^.*crossdomain.xml$/) || full_path.match(/^.*Sitemap.xml$/))
|
43
|
+
# puts " validating".blue + " #{full_path}....." + (Xmlvalidator.valid(full_path, 'XMLSchema.xsd') == true ? "COMPLETE".green : "ERRORS FOUND".red)
|
44
|
+
# Xmlvalidator.validate(full_path, 'XMLSchema.xsd').each do |error|
|
45
|
+
# puts " " + error.message
|
46
|
+
# end
|
47
|
+
# end
|
48
|
+
# end
|
45
49
|
|
46
50
|
puts "", "Validation with NokoGiri " + "Complete".green, ""
|
47
51
|
end
|