html-proofer 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92d3a9b5a60fa16dbdf3fbb0509293481adbb1a8
4
- data.tar.gz: 49e79fc314857d7e11107559494f5594c19343a3
3
+ metadata.gz: 1395f1c270193837678339b6d5645735e7b69785
4
+ data.tar.gz: 5bef8183e8449c9a333ecc4e0220a42c7f2f1373
5
5
  SHA512:
6
- metadata.gz: e92076d0ffb93e6c1d22f14867382d2aacdc320993fa97227736293a37c0f372d0043498e0bb0e51fe6f13e2d5798e29d7c9ddbb684d758221da40aa1497d6a4
7
- data.tar.gz: 51a0029c8f6ba3d930dfae9d5502c6834764fa4beb2898991593c45e615430d4fdf63b6385381ff76bfe14ecf9783ccc56d9805029c0e323684de8cd29458216
6
+ metadata.gz: b1478e26b1e413b085e057f75978e8b66dc861e2066ce38ca4c78e57b8d810bc701083a476687601bf9a5a8560e0c6d94244b79261ad75eec76463edb9b87ec8
7
+ data.tar.gz: b891a9603b51008fdc188c2de3fc729ecef52b77adf554cbd7b87159a9cac1b18499e1bacfc8d995ee2573a851aa81e09cff9671a3df1755c42f5999eadba497
@@ -89,7 +89,7 @@ class LinkCheck < ::HTML::Proofer::CheckRunner
89
89
 
90
90
  def external_link_check(link)
91
91
  if !link.exists?
92
- add_issue("trying to find hash of #{link.href}, but #{link.absolute_path} does not exist", l.line)
92
+ add_issue("trying to find hash of #{link.href}, but #{link.absolute_path} does not exist", link.line)
93
93
  else
94
94
  target_html = create_nokogiri link.absolute_path
95
95
  unless hash_check target_html, link.hash
@@ -111,7 +111,7 @@ module HTML
111
111
  add_failed_tests filenames, "External link #{href} failed: #{effective_url} exists, but the hash '#{hash}' does not", response.code
112
112
  end
113
113
 
114
- def handle_timeout
114
+ def handle_timeout(filenames, response_code)
115
115
  return if @options[:only_4xx]
116
116
  add_failed_tests filenames, "External link #{href} failed: got a time out", response_code
117
117
  end
@@ -1,5 +1,5 @@
1
1
  module HTML
2
2
  class Proofer
3
- VERSION = '2.0.2'
3
+ VERSION = '2.0.3'
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: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-30 00:00:00.000000000 Z
11
+ date: 2015-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mercenary