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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8afbf9c7f55055c38b77971166e852d6f7180481d1e9fb27f84e071c582d1a7
4
- data.tar.gz: 88db5f8e0bb8059ff3f6c50c8fcb4320bf0f6a4e1ef6fc053671591ff44a529f
3
+ metadata.gz: 285bb041bc95bc47d55de09a492e5d802a4c2a5dadf539bb7742f0d8138e2e23
4
+ data.tar.gz: dddc7a66aab15685917621d28600133b4824ce0c27ad204d7750252f717fe33e
5
5
  SHA512:
6
- metadata.gz: 3f765689616f7884c1a33685dceb08a0786c851839d4ec612023d3ed746ed7c7b7e9087bd91d8360d795fd54a2077fdbf9af9df2c0b25d246a9cc0a064579501
7
- data.tar.gz: 441a4f2b13e237505f9402a53fee5713a68d680824e6a976da42f26bfe1f57a0bdf661f6c3cafc45cb0fa28623c56d679c75044b10dd69db64ac824b7d911885
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HTMLProofer
4
- VERSION = "4.3.0"
4
+ VERSION = "4.3.1"
5
5
  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: 4.3.0
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-26 00:00:00.000000000 Z
11
+ date: 2022-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable