html-proofer 4.3.0 → 4.3.1
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/images.rb +1 -11
- data/lib/html_proofer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 285bb041bc95bc47d55de09a492e5d802a4c2a5dadf539bb7742f0d8138e2e23
|
4
|
+
data.tar.gz: dddc7a66aab15685917621d28600133b4824ce0c27ad204d7750252f717fe33e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd983c2df18c4def1ded8f6caadc5917142d34021b9e873091a7040bd596b8efc05cee56b3fb3330ceab441f601d7c305e6b7e28a821fbb8d20ee7a85ccbf7a4
|
7
|
+
data.tar.gz: 966a38245a5bb725838b5c63214b5abc133c53e90fb927118b64a4da2a383d3c993e32994fd7eff0df473e15e8d23788737d716b00c8931977e82acb33114e58
|
@@ -23,17 +23,7 @@ module HTMLProofer
|
|
23
23
|
elsif !@img.url.exists? && !@img.multiple_srcsets? && !@img.multiple_sizes?
|
24
24
|
add_failure("internal image #{@img.url.raw_attribute} does not exist", line: @img.line,
|
25
25
|
content: @img.content)
|
26
|
-
elsif @img.multiple_srcsets?
|
27
|
-
@img.srcsets.each do |srcset|
|
28
|
-
srcset_url = HTMLProofer::Attribute::Url.new(@runner, srcset, base_url: @img.base_url, extract_size: true)
|
29
|
-
|
30
|
-
if srcset_url.remote?
|
31
|
-
add_to_external_urls(srcset_url.url, @img.line)
|
32
|
-
elsif !srcset_url.exists?
|
33
|
-
add_failure("internal image #{srcset} does not exist", line: @img.line, content: @img.content)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
elsif @img.multiple_sizes?
|
26
|
+
elsif @img.multiple_srcsets? || @img.multiple_sizes?
|
37
27
|
@img.srcsets_wo_sizes.each do |srcset|
|
38
28
|
srcset_url = HTMLProofer::Attribute::Url.new(@runner, srcset, base_url: @img.base_url, extract_size: true)
|
39
29
|
|
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: 4.3.
|
4
|
+
version: 4.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|