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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 301f92856184797608bb768aad054c717bb349ff
4
- data.tar.gz: f4e2a2c8c4e8267dc2f287bd411e53f95d9454ba
3
+ metadata.gz: dd8c9b9b6e13d8640b6f1aceef5c79084998e7fb
4
+ data.tar.gz: 38e95179da955afdcfd783e39de7f7bbea792ca3
5
5
  SHA512:
6
- metadata.gz: 4a11c32e6aba302074bef75174ac36921273c6e69173fe66a419035b2fc37610b8a8351dfabfc0e7830a3081b1e004529c5cffaefb9e8cde5d574b74f8481ef6
7
- data.tar.gz: 4cc636be64d8a4646c6305cfd9885a4d0d249bf062bbd739efa9af6fe230c4d57a994c071e9f17120416957bebc3453d7d566ddec001305e5d457ff535546402
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?
@@ -1,3 +1,3 @@
1
1
  module HTMLProofer
2
- VERSION = '3.7.3'.freeze
2
+ VERSION = '3.7.4'.freeze
3
3
  end
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.3
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-09-22 00:00:00.000000000 Z
11
+ date: 2017-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mercenary