html-proofer 3.8.0 → 3.9.0
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 +4 -4
- data/bin/htmlproofer +1 -0
- data/lib/html-proofer.rb +0 -2
- data/lib/html-proofer/check/links.rb +1 -0
- data/lib/html-proofer/configuration.rb +1 -0
- data/lib/html-proofer/element.rb +4 -0
- 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: d6d2dd931b1f249cc7db758f4ebff9416bbb1a3f
|
|
4
|
+
data.tar.gz: e8cc4b3267a2e5b1a7479b164e9570a486797e02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ecdb65f032782248c8ed47fee04332c6fe4753f84ead430cf5f7a7eb27b79021b7db08571e876c8989ae4cc7d14832d1492edc6e6cc6c74431a05f3cc621ecab
|
|
7
|
+
data.tar.gz: 2368c979d01c4e6159a89650b11045e35e73c02e5e2892a5de522cba95b77566030ca80424dbf61ca7c68f819b3bdb8fb218545020050fa7327d4979aee0dfc4
|
data/bin/htmlproofer
CHANGED
|
@@ -13,6 +13,7 @@ Mercenary.program(:htmlproofer) do |p|
|
|
|
13
13
|
|
|
14
14
|
p.description 'Runs the HTML-Proofer suite on the files in PATH. For more details, see the README.'
|
|
15
15
|
|
|
16
|
+
p.option 'allow_missing_href', '--allow-missing-href', 'If `true`, does not flag `a` tags missing `href` (this is the default for HTML5).'
|
|
16
17
|
p.option 'allow_hash_href', '--allow-hash-href', 'If `true`, ignores the `href` `#`'
|
|
17
18
|
p.option 'as_links', '--as-links', 'Assumes that `PATH` is a comma-separated array of links to check.'
|
|
18
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'
|
data/lib/html-proofer.rb
CHANGED
|
@@ -30,6 +30,7 @@ class LinkCheck < ::HTMLProofer::Check
|
|
|
30
30
|
|
|
31
31
|
# is there even an href?
|
|
32
32
|
if missing_href?
|
|
33
|
+
next if @link.allow_missing_href?
|
|
33
34
|
# HTML5 allows dropping the href: http://git.io/vBX0z
|
|
34
35
|
next if @html.internal_subset.name == 'html' && @html.internal_subset.external_id.nil?
|
|
35
36
|
add_issue('anchor has no href attribute', line: line, content: content)
|
data/lib/html-proofer/element.rb
CHANGED
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.
|
|
4
|
+
version: 3.9.0
|
|
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-05-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mercenary
|