html-proofer 1.5.3 → 1.5.4
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2378653066f706946320a842961fa24145a30c6c
|
4
|
+
data.tar.gz: d5f9af8f26f706d8749c7703aced6f00282b2fd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33ddc59a5868f717d5f1a57ae259d0adac9401786952bbc5df502ce8dd89ed29cf52969df2df8dbc57325d1800eaa755fd629fa4e093e4c5464672c60b6ea2f0
|
7
|
+
data.tar.gz: fe325d831dfd59fc5d48ab7eace5514c0ba6877151a84341183cb7b8a3949a7b4ff3a8500a03e4f201669c9e8c19fca0c77d742b0232e3e2617f178d17acf7ff
|
data/lib/html/proofer.rb
CHANGED
@@ -157,7 +157,7 @@ module HTML
|
|
157
157
|
Ethon.logger = logger # log from Typhoeus/Ethon
|
158
158
|
|
159
159
|
external_urls.each_pair do |href, filenames|
|
160
|
-
if has_hash? href
|
160
|
+
if has_hash? href && @options[:check_external_hash]
|
161
161
|
queue_request(:get, href, filenames)
|
162
162
|
else
|
163
163
|
queue_request(:head, href, filenames)
|
@@ -205,7 +205,7 @@ module HTML
|
|
205
205
|
# just be lazy; perform an explicit get request. some servers are apparently not configured to
|
206
206
|
# intercept HTTP HEAD
|
207
207
|
elsif method == :head
|
208
|
-
queue_request(:get,
|
208
|
+
queue_request(:get, effective_url, filenames)
|
209
209
|
else
|
210
210
|
return if @options[:only_4xx] && !response_code.between?(400, 499)
|
211
211
|
# Received a non-successful http response.
|
data/lib/html/proofer/version.rb
CHANGED
@@ -0,0 +1,5 @@
|
|
1
|
+
<a href="http://en.wikipedia.org/wiki/Phase-locked_loop#Clock_generation">Broken on Travis and *nix machines</a>
|
2
|
+
|
3
|
+
<a href="http://jekyllrb.com/docs/configuration/#markdown-options">Also broken on Travis and *nix machines</a>
|
4
|
+
|
5
|
+
<a href="http://rtyley.github.io/bfg-repo-cleaner/#usage">Also broken on Travis and *nix machines</a>
|
@@ -300,4 +300,10 @@ describe "Links test" do
|
|
300
300
|
proofer = make_proofer(fixture, { :check_external_hash => true} )
|
301
301
|
expect(proofer.failed_tests.length).to eq 1
|
302
302
|
end
|
303
|
+
|
304
|
+
it "passes for broken *nix links" do
|
305
|
+
fixture = "#{FIXTURES_DIR}/links/brokenUnixLinks.html"
|
306
|
+
proofer = make_proofer(fixture)
|
307
|
+
expect(proofer.failed_tests).to eq []
|
308
|
+
end
|
303
309
|
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: 1.5.
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen Torikian
|
@@ -232,6 +232,7 @@ files:
|
|
232
232
|
- spec/html/proofer/fixtures/links/brokenLinkExternal.html
|
233
233
|
- spec/html/proofer/fixtures/links/brokenLinkInternal.html
|
234
234
|
- spec/html/proofer/fixtures/links/brokenLinkWithNumber.html
|
235
|
+
- spec/html/proofer/fixtures/links/brokenUnixLinks.html
|
235
236
|
- spec/html/proofer/fixtures/links/broken_hash_with_query.html
|
236
237
|
- spec/html/proofer/fixtures/links/checkSSLLinks.html
|
237
238
|
- spec/html/proofer/fixtures/links/ensure_typhoeus_options.html
|
@@ -320,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
320
321
|
version: '0'
|
321
322
|
requirements: []
|
322
323
|
rubyforge_project:
|
323
|
-
rubygems_version: 2.2.
|
324
|
+
rubygems_version: 2.2.2
|
324
325
|
signing_key:
|
325
326
|
specification_version: 4
|
326
327
|
summary: A set of tests to validate your HTML output. These tests check if your image
|
@@ -368,6 +369,7 @@ test_files:
|
|
368
369
|
- spec/html/proofer/fixtures/links/brokenLinkExternal.html
|
369
370
|
- spec/html/proofer/fixtures/links/brokenLinkInternal.html
|
370
371
|
- spec/html/proofer/fixtures/links/brokenLinkWithNumber.html
|
372
|
+
- spec/html/proofer/fixtures/links/brokenUnixLinks.html
|
371
373
|
- spec/html/proofer/fixtures/links/broken_hash_with_query.html
|
372
374
|
- spec/html/proofer/fixtures/links/checkSSLLinks.html
|
373
375
|
- spec/html/proofer/fixtures/links/ensure_typhoeus_options.html
|