html-proofer 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/html/proofer/check.rb +3 -8
- data/lib/html/proofer/checks/images.rb +0 -2
- 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: 5e5909766c9238ff49f259614dbd5bfff830a920
|
4
|
+
data.tar.gz: 3a45a58edf7f65fc01aab97c7a0956832c0a34a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c00c823d8dc440505d322a25837004746fdc82a0ddc7436ef9124e97482e6c47f3166a2b00df326e1c6b4169379d6baf86b794e15e258bb083e21e581d977de9
|
7
|
+
data.tar.gz: 4fa2d40727d56fc2db28d33e65666f5e91a48d1270736d023338eb98e6fc68d8d753dc72dadfa8aa13eadabc9ba3435c42169027ca5a49687a2d582b9386f725
|
data/Gemfile.lock
CHANGED
data/lib/html/proofer/check.rb
CHANGED
@@ -19,7 +19,7 @@ class HTML::Proofer::Checks
|
|
19
19
|
@options = opts
|
20
20
|
@issues = []
|
21
21
|
|
22
|
-
@hydra = Typhoeus::Hydra.
|
22
|
+
@hydra = Typhoeus::Hydra.new(:max_concurrency => 15)
|
23
23
|
@additional_href_ignores = @options[:href_ignore] || []
|
24
24
|
end
|
25
25
|
|
@@ -46,13 +46,8 @@ class HTML::Proofer::Checks
|
|
46
46
|
# Could not get an http response, something's wrong.
|
47
47
|
self.add_issue(issue_text + ". #{response.return_message}!")
|
48
48
|
else
|
49
|
-
|
50
|
-
|
51
|
-
self.add_issue("#{issue_text} HTTP request failed: #{response.code.to_s}") unless response.success?
|
52
|
-
else
|
53
|
-
# Received a non-successful http response.
|
54
|
-
self.add_issue("#{issue_text} HTTP request failed: #{response.code.to_s}")
|
55
|
-
end
|
49
|
+
response_code = response.code.to_s
|
50
|
+
self.add_issue("#{issue_text} HTTP request failed: #{response_code}")
|
56
51
|
end
|
57
52
|
end
|
58
53
|
hydra.queue(request)
|
data/lib/html/proofer/version.rb
CHANGED