html-proofer 0.0.6 → 0.0.7

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.
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- # Specify your gem's dependencies in sinatra_auth_github.gemspec
4
3
  gemspec
data/lib/html/proofer.rb CHANGED
@@ -6,6 +6,7 @@ module HTML
6
6
  def initialize(src, opts={})
7
7
  @srcDir = src
8
8
  @options = {:ext => ".html"}.merge(opts)
9
+ @failedTests = []
9
10
  end
10
11
 
11
12
  def run
@@ -22,6 +23,10 @@ module HTML
22
23
  end
23
24
  end
24
25
  end
26
+
27
+ if !@failedTests.empty?
28
+ raise "Failing tests for: {@failedTests}"
29
+ end
25
30
  end
26
31
 
27
32
  def self.create_nokogiri(path)
@@ -34,7 +39,7 @@ module HTML
34
39
 
35
40
  def print_issues(klass, issues)
36
41
  return if issues.empty?
37
- raise "#{klass} has failing tests"
42
+ @failedTests.push klass
38
43
  issues.each do |issue|
39
44
  $stderr.puts issue + "\n\n"
40
45
  end
@@ -1,5 +1,5 @@
1
1
  module HTML
2
2
  class Proofer
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
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.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: