html-proofer 2.0.2 → 2.0.3
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/checks/links.rb +1 -1
- data/lib/html/proofer/url_validator.rb +1 -1
- data/lib/html/proofer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1395f1c270193837678339b6d5645735e7b69785
|
4
|
+
data.tar.gz: 5bef8183e8449c9a333ecc4e0220a42c7f2f1373
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1478e26b1e413b085e057f75978e8b66dc861e2066ce38ca4c78e57b8d810bc701083a476687601bf9a5a8560e0c6d94244b79261ad75eec76463edb9b87ec8
|
7
|
+
data.tar.gz: b891a9603b51008fdc188c2de3fc729ecef52b77adf554cbd7b87159a9cac1b18499e1bacfc8d995ee2573a851aa81e09cff9671a3df1755c42f5999eadba497
|
@@ -89,7 +89,7 @@ class LinkCheck < ::HTML::Proofer::CheckRunner
|
|
89
89
|
|
90
90
|
def external_link_check(link)
|
91
91
|
if !link.exists?
|
92
|
-
add_issue("trying to find hash of #{link.href}, but #{link.absolute_path} does not exist",
|
92
|
+
add_issue("trying to find hash of #{link.href}, but #{link.absolute_path} does not exist", link.line)
|
93
93
|
else
|
94
94
|
target_html = create_nokogiri link.absolute_path
|
95
95
|
unless hash_check target_html, link.hash
|
@@ -111,7 +111,7 @@ module HTML
|
|
111
111
|
add_failed_tests filenames, "External link #{href} failed: #{effective_url} exists, but the hash '#{hash}' does not", response.code
|
112
112
|
end
|
113
113
|
|
114
|
-
def handle_timeout
|
114
|
+
def handle_timeout(filenames, response_code)
|
115
115
|
return if @options[:only_4xx]
|
116
116
|
add_failed_tests filenames, "External link #{href} failed: got a time out", response_code
|
117
117
|
end
|
data/lib/html/proofer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html-proofer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mercenary
|