html-proofer 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/html-proofer/runner.rb +6 -1
- data/lib/html-proofer/version.rb +1 -1
- 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: 0a7f49545d18aa66bfc44b6c85120b9b3305b543
|
4
|
+
data.tar.gz: 7367e8fbc60ee450cb4e17a7eed6b5c4b7452f08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9627105a7aaa3b438798b0632066cb8affb3e6511fa54a8ae20e23ebda7918dbcb12fd7a75d3f5dcbbf7fd7d6e6f1ea7f9f47295d1d00e31cc263da0f6cbf0bf
|
7
|
+
data.tar.gz: 50179f9029022b5888329d030b2f27c7905ade5f0f88c5c2a39fac64aa6e946b9fa125163522b1512697920a5652d5f2914b70a4c5ac323862487d8ca9e1b98d
|
data/lib/html-proofer/runner.rb
CHANGED
@@ -96,7 +96,12 @@ module HTMLProofer
|
|
96
96
|
@logger.log :debug, "Checking #{klass.to_s.downcase} on #{path} ..."
|
97
97
|
check = Object.const_get(klass).new(src, path, html, @options)
|
98
98
|
check.run
|
99
|
-
|
99
|
+
external_urls = check.external_urls
|
100
|
+
if @options[:url_swap]
|
101
|
+
external_urls = Hash[check.external_urls.map { |url, file| [swap(url, @options[:url_swap]), file] }]
|
102
|
+
end
|
103
|
+
puts check.external_urls
|
104
|
+
result[:external_urls].merge!(external_urls)
|
100
105
|
result[:failures].concat(check.issues)
|
101
106
|
end
|
102
107
|
end
|
data/lib/html-proofer/version.rb
CHANGED