html-proofer 0.6.1 → 0.6.2
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/checks/images.rb +4 -4
- data/lib/html/proofer/checks/links.rb +1 -1
- 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: 4dd1152d26b4295d0064e188fedb3f03ed29a657
|
4
|
+
data.tar.gz: 66cd7fdb07654bdc25d88072e22ee6d1515cae5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88184097748aa9fc7fd4dbc168666be062fa08c70964634df86b874db8e0496f6b9db66f5b31a66fc544accfa3b16f6079fbe8a5aa0f9f9c849313700497d0c7
|
7
|
+
data.tar.gz: 3fa6a17cbf9d5cd99c05514184ad4017550fc170ec53e2977b2721788af857671a539358b283b0e66b179affcd7bfd6d53be69e5f63e206eba1c32d32f87b619
|
@@ -28,16 +28,16 @@ class Images < ::HTML::Proofer::Checks::Check
|
|
28
28
|
img = Image.new i, "image", self
|
29
29
|
|
30
30
|
# screenshot filenames should return because of terrible names
|
31
|
-
|
31
|
+
next self.add_issue "image has a terrible filename (#{img.src})" if img.terrible_filename?
|
32
32
|
|
33
33
|
# does the image exist?
|
34
34
|
if img.missing_src?
|
35
35
|
self.add_issue "image has no src attribute"
|
36
36
|
elsif img.remote?
|
37
|
-
|
37
|
+
next if img.ignore?
|
38
38
|
add_to_external_urls img.src
|
39
39
|
else
|
40
|
-
|
40
|
+
next if img.ignore?
|
41
41
|
self.add_issue("internal image #{img.src} does not exist") unless img.exists?
|
42
42
|
end
|
43
43
|
|
@@ -45,6 +45,6 @@ class Images < ::HTML::Proofer::Checks::Check
|
|
45
45
|
self.add_issue "image #{img.src} does not have an alt attribute" unless img.valid_alt_tag?
|
46
46
|
end
|
47
47
|
|
48
|
-
|
48
|
+
external_urls
|
49
49
|
end
|
50
50
|
end
|
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: 0.6.
|
4
|
+
version: 0.6.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: 2014-03-
|
11
|
+
date: 2014-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mercenary
|