html-proofer 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/html-proofer.gemspec +1 -1
- data/lib/html/proofer.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82825927f1730ea04245db859aa3fb25f20843d5
|
4
|
+
data.tar.gz: b0f8ed372c1a5b2c0ec7e52e5d0096351efd7d91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4baee97f59fc19632854b731ca42629f317990d15bf254e6089a8942c356f2ea283a97a9dc7408ef1a7333b2b00e1bb07299fbc83541630cdd9864d9b43e5a5
|
7
|
+
data.tar.gz: 094d5a13e510277cf7976c8d79a4d8309d5392f7af4887d95384bcd950bb9dca78b66efefbb123594f6ac9de1a10046c10e9ca77a2cca161a75cdfdb078fa5e8
|
data/html-proofer.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = "html-proofer"
|
6
|
-
gem.version = "1.1.
|
6
|
+
gem.version = "1.1.3"
|
7
7
|
gem.authors = ["Garen Torikian"]
|
8
8
|
gem.email = ["gjtorikian@gmail.com"]
|
9
9
|
gem.description = %q{Test your rendered HTML files to make sure they're accurate.}
|
data/lib/html/proofer.rb
CHANGED
@@ -46,7 +46,7 @@ module HTML
|
|
46
46
|
|
47
47
|
get_checks.each do |klass|
|
48
48
|
logger.debug "Checking #{klass.to_s.downcase} on #{path} ...".blue
|
49
|
-
check =
|
49
|
+
check = Object.const_get(klass).new(@src, path, html, @options)
|
50
50
|
check.run
|
51
51
|
external_urls.merge!(check.external_urls)
|
52
52
|
@failed_tests.concat(check.issues) if check.issues.length > 0
|
@@ -150,8 +150,8 @@ module HTML
|
|
150
150
|
end
|
151
151
|
|
152
152
|
def get_checks
|
153
|
-
checks = HTML::Proofer::Checks::Check.subclasses
|
154
|
-
checks.delete("
|
153
|
+
checks = HTML::Proofer::Checks::Check.subclasses.map { |c| c.name }
|
154
|
+
checks.delete("Favicons") unless @options[:favicon]
|
155
155
|
checks
|
156
156
|
end
|
157
157
|
|