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 CHANGED
@@ -16,9 +16,10 @@ out/
16
16
  sample.rb
17
17
  run_sample.rb
18
18
  src/
19
+ docs/
19
20
 
20
21
  # YARD artifacts
21
22
  .yardoc
22
23
  _yardoc
23
24
  doc/
24
- .DS_Store
25
+ .DS_Store
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
- raise "Failing tests for: {@failedTests}"
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
 
@@ -1,5 +1,5 @@
1
1
  module HTML
2
2
  class Proofer
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
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.7
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-17 00:00:00.000000000 Z
12
+ date: 2013-04-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri