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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a64f7619a12b5530d6591a5136c408daa4dcf159
4
- data.tar.gz: a7e55e707f23576b8dbaea564dceb2e0bdf5d214
3
+ metadata.gz: 4dd1152d26b4295d0064e188fedb3f03ed29a657
4
+ data.tar.gz: 66cd7fdb07654bdc25d88072e22ee6d1515cae5d
5
5
  SHA512:
6
- metadata.gz: 37bd1c5bd65c46f6719c450a9016846f3a29d6e4fa94cc0a5fa67e95813ea0081381b73baf64b462e04c9b4bdd505ce3b0cb895a40621c5ea34a4efdf986a29a
7
- data.tar.gz: 5f623b2e311b3045c5b55354991a8e90d9f70f986110b9fe70d18f65a9de8fb8230f762bd5fe4b6eef3f065f1c51e9f0fa014d8ab6c8f30e666bacecc44f2311
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
- return self.add_issue "image has a terrible filename (#{img.src})" if img.terrible_filename?
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
- return if img.ignore?
37
+ next if img.ignore?
38
38
  add_to_external_urls img.src
39
39
  else
40
- return if img.ignore?
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
- return external_urls
48
+ external_urls
49
49
  end
50
50
  end
@@ -55,7 +55,7 @@ class Links < ::HTML::Proofer::Checks::Check
55
55
  end
56
56
  end
57
57
 
58
- return external_urls
58
+ external_urls
59
59
  end
60
60
 
61
61
  def hash_check(html, href_hash)
@@ -1,5 +1,5 @@
1
1
  module HTML
2
2
  class Proofer
3
- VERSION = "0.6.1"
3
+ VERSION = "0.6.2"
4
4
  end
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: 0.6.1
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-24 00:00:00.000000000 Z
11
+ date: 2014-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mercenary