html-proofer 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/lib/html/proofer.rb +12 -2
- data/lib/html/proofer/version.rb +1 -1
- metadata +2 -2
data/.gitignore
CHANGED
data/lib/html/proofer.rb
CHANGED
@@ -11,7 +11,6 @@ module HTML
|
|
11
11
|
|
12
12
|
def run
|
13
13
|
get_checks.each do |klass|
|
14
|
-
issues = []
|
15
14
|
puts "Running #{klass.name.split(/:/).pop()} check... \n\n"
|
16
15
|
|
17
16
|
Find.find(@srcDir) do |path|
|
@@ -25,7 +24,18 @@ module HTML
|
|
25
24
|
end
|
26
25
|
|
27
26
|
if !@failedTests.empty?
|
28
|
-
|
27
|
+
# make the hash default to 0 so that += will work correctly
|
28
|
+
count = Hash.new(0)
|
29
|
+
|
30
|
+
# iterate over the array, counting duplicate entries
|
31
|
+
@failedTests.each do |v|
|
32
|
+
count[v] += 1
|
33
|
+
end
|
34
|
+
|
35
|
+
count.each do |k, v|
|
36
|
+
$stderr.puts "#{k} failed #{v} times"
|
37
|
+
end
|
38
|
+
raise "Tests ran, but found failures!"
|
29
39
|
end
|
30
40
|
end
|
31
41
|
|
data/lib/html/proofer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html-proofer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|