html-proofer 3.9.1 → 3.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/htmlproofer +1 -1
- data/lib/html-proofer.rb +1 -1
- data/lib/html-proofer/check/links.rb +3 -1
- data/lib/html-proofer/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb78c07ea46c99e7e763ee0a6e283ce82c5623eb
|
4
|
+
data.tar.gz: b978e20e49c1da740faf32af61ee45364f343e90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57c2748da2642f8dcb604d86f112cdb5119b1553ec491bcf5f996853f5d27a6ddcdd12bf6744c092225d8e7910548f3531e70b5464529dc6efd4146ec9d56d90
|
7
|
+
data.tar.gz: a7929074fa4fe9172df82a51c7430b12da95461a75c6c323883bc1166b768e81fec6c6f18a3db5730a5f39c941c5d43e390e37630bacae33a7c4d6274703bec0
|
data/bin/htmlproofer
CHANGED
@@ -14,7 +14,7 @@ Mercenary.program(:htmlproofer) do |p|
|
|
14
14
|
p.description 'Runs the HTML-Proofer suite on the files in PATH. For more details, see the README.'
|
15
15
|
|
16
16
|
p.option 'allow_missing_href', '--allow-missing-href', 'If `true`, does not flag `a` tags missing `href` (this is the default for HTML5).'
|
17
|
-
p.option 'allow_hash_href', '--allow-hash-href', 'If `true`, ignores the `href`
|
17
|
+
p.option 'allow_hash_href', '--allow-hash-href', 'If `true`, ignores the `href="#"`'
|
18
18
|
p.option 'as_links', '--as-links', 'Assumes that `PATH` is a comma-separated array of links to check.'
|
19
19
|
p.option 'alt_ignore', '--alt-ignore image1,[image2,...]', Array, 'A comma-separated list of Strings or RegExps containing `img`s whose missing `alt` tags are safe to ignore'
|
20
20
|
p.option 'assume_extension', '--assume-extension', 'Automatically add extension (e.g. `.html`) to file paths, to allow extensionless URLs (as supported by Jekyll 3 and GitHub Pages) (default: `false`).'
|
data/lib/html-proofer.rb
CHANGED
@@ -126,8 +126,10 @@ class LinkCheck < ::HTMLProofer::Check
|
|
126
126
|
html.xpath(*xpaths)
|
127
127
|
end
|
128
128
|
|
129
|
+
IGNORABE_REL = %(canonical alternate icon manifest apple-touch-icon)
|
130
|
+
|
129
131
|
def check_sri(line, content)
|
130
|
-
return if (@link.rel
|
132
|
+
return if IGNORABE_REL.include?(@link.rel)
|
131
133
|
if !defined?(@link.integrity) && !defined?(@link.crossorigin)
|
132
134
|
add_issue("SRI and CORS not provided in: #{@link.src}", line: line, content: content)
|
133
135
|
elsif !defined?(@link.integrity)
|
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: 3.9.
|
4
|
+
version: 3.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mercenary
|
@@ -213,19 +213,19 @@ dependencies:
|
|
213
213
|
- !ruby/object:Gem::Version
|
214
214
|
version: '0'
|
215
215
|
- !ruby/object:Gem::Dependency
|
216
|
-
name: pry
|
216
|
+
name: pry-byebug
|
217
217
|
requirement: !ruby/object:Gem::Requirement
|
218
218
|
requirements:
|
219
|
-
- - "
|
219
|
+
- - ">="
|
220
220
|
- !ruby/object:Gem::Version
|
221
|
-
version: 0
|
221
|
+
version: '0'
|
222
222
|
type: :development
|
223
223
|
prerelease: false
|
224
224
|
version_requirements: !ruby/object:Gem::Requirement
|
225
225
|
requirements:
|
226
|
-
- - "
|
226
|
+
- - ">="
|
227
227
|
- !ruby/object:Gem::Version
|
228
|
-
version: 0
|
228
|
+
version: '0'
|
229
229
|
- !ruby/object:Gem::Dependency
|
230
230
|
name: awesome_print
|
231
231
|
requirement: !ruby/object:Gem::Requirement
|