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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fee07b8be455d3d0318f758e61428056a07572cd
4
- data.tar.gz: 4f1b1776e48f4fe41c63d5bcf0ddbc52ab301d00
3
+ metadata.gz: bb78c07ea46c99e7e763ee0a6e283ce82c5623eb
4
+ data.tar.gz: b978e20e49c1da740faf32af61ee45364f343e90
5
5
  SHA512:
6
- metadata.gz: f07a68c126ea8e2586def4c98af909b0ed90ede44aeee435672de06f06f2374176efbe8c4684fec52f6b91c9b7f1d37357d8bec9b05cad13f2d1b688fe849dec
7
- data.tar.gz: 23f1ae3a9f1f7b93798b2bcfcf7f8ba61e479e16194512ad86f942ca68d7d01bb34deb5a995330b35bfcb3db0158e1e92ad7893eeb1a5e0fc72dbf4a99f08acf
6
+ metadata.gz: 57c2748da2642f8dcb604d86f112cdb5119b1553ec491bcf5f996853f5d27a6ddcdd12bf6744c092225d8e7910548f3531e70b5464529dc6efd4146ec9d56d90
7
+ data.tar.gz: a7929074fa4fe9172df82a51c7430b12da95461a75c6c323883bc1166b768e81fec6c6f18a3db5730a5f39c941c5d43e390e37630bacae33a7c4d6274703bec0
@@ -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`).'
@@ -14,7 +14,7 @@ require 'fileutils'
14
14
 
15
15
  begin
16
16
  require 'awesome_print'
17
- require 'pry'
17
+ require 'pry-byebug'
18
18
  rescue LoadError; end
19
19
  module HTMLProofer
20
20
  def check_file(file, options = {})
@@ -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 == 'canonical' || @link.rel == 'alternate')
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)
@@ -1,3 +1,3 @@
1
1
  module HTMLProofer
2
- VERSION = '3.9.1'.freeze
2
+ VERSION = '3.9.2'.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.9.1
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-05-28 00:00:00.000000000 Z
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.10.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.10.0
228
+ version: '0'
229
229
  - !ruby/object:Gem::Dependency
230
230
  name: awesome_print
231
231
  requirement: !ruby/object:Gem::Requirement