html-proofer 3.7.3 → 3.7.4
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/check/links.rb +1 -0
- data/lib/html-proofer/url_validator.rb +1 -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: dd8c9b9b6e13d8640b6f1aceef5c79084998e7fb
|
4
|
+
data.tar.gz: 38e95179da955afdcfd783e39de7f7bbea792ca3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6b68560cd0d6f294e7c34d3ffa3e32c8d76d4d0a0bac3ef0f4026866269c932ab5f31fcd23d9719e02c6ddee209b247504771192542819cd675814b38d98e63
|
7
|
+
data.tar.gz: e89d635985ca271978b0f939a097afd5c10b8f32cbe29e9db50370457b44ecaaad80b6fc26d49de73efc167f877088e1f01fff3975c0b734e5ddba8c344a9756
|
@@ -126,6 +126,7 @@ class LinkCheck < ::HTMLProofer::Check
|
|
126
126
|
end
|
127
127
|
|
128
128
|
def check_sri(line, content)
|
129
|
+
return if (@link.rel == 'canonical' || @link.rel == 'alternate')
|
129
130
|
if !defined?(@link.integrity) && !defined?(@link.crossorigin)
|
130
131
|
add_issue("SRI and CORS not provided in: #{@link.src}", line: line, content: content)
|
131
132
|
elsif !defined?(@link.integrity)
|
@@ -142,6 +142,7 @@ module HTMLProofer
|
|
142
142
|
href = response.request.base_url.to_s
|
143
143
|
method = response.request.options[:method]
|
144
144
|
response_code = response.code
|
145
|
+
response.body.gsub!("\x00", '')
|
145
146
|
|
146
147
|
debug_msg = "Received a #{response_code} for #{href}"
|
147
148
|
debug_msg << " in #{filenames.join(' ')}" unless filenames.nil?
|
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.7.
|
4
|
+
version: 3.7.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mercenary
|