html-proofer 1.3.0 → 1.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
  SHA1:
3
- metadata.gz: 65597a503b7fc561c9dae5377f36dd3860581a92
4
- data.tar.gz: 44f24659044b6122d43476be9f41c3be1f8633b1
3
+ metadata.gz: f86b1bb51c378fa083af98206f3b186ad5bf3995
4
+ data.tar.gz: d1a67153090c5e6d717b52f70cef1eda4dd86974
5
5
  SHA512:
6
- metadata.gz: 06b4ec0986dc6cd27575d65f73a29d00c2166b0e4b8c15e4b15d345a90ea382f4b6710d8cc67ff476debee80867e0489181bf65bb9f22e4b2ae2eb6eff958425
7
- data.tar.gz: a14622a437b34deee71d3a6c0daf42f466d35a980531993d505a5c72c736c7a640da2ff9992d46063b5674334bf28e3d5422a9ce1e800b1533d863be05b99e97
6
+ metadata.gz: ec18fbd1deb47ff870205c66b7001546ebefab29f1a124ddfaa30841d76dcb22c3a2839c3e8fe26e286d04279ba9a4dd36561ea1e9048076d248bdc69c9d1b6e
7
+ data.tar.gz: aced2bade22a244cd8c9dd499e48aeda7fdea8cbdc5cc14378977fd509f53bf48dc16083d14b757673d5d04baddda01dad653c62d9503cf8bdc10df0fa447215
data/html-proofer.gemspec CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = "html-proofer"
6
- gem.version = "1.3.0"
6
+ gem.version = "1.3.1"
7
7
  gem.authors = ["Garen Torikian"]
8
8
  gem.email = ["gjtorikian@gmail.com"]
9
9
  gem.description = %q{Test your rendered HTML files to make sure they're accurate.}
data/lib/html/proofer.rb CHANGED
@@ -43,11 +43,11 @@ module HTML
43
43
  :followlocation => true
44
44
  }
45
45
 
46
- # Typhoeus won't let you pass any non-Typhoeus option
46
+ # Typhoeus won't let you pass in any non-Typhoeus option; if the option is not
47
+ # a proofer_opt, it must be for Typhoeus
47
48
  opts.keys.each do |key|
48
- unless @typhoeus_opts[key].nil?
49
+ if @proofer_opts[key].nil?
49
50
  @typhoeus_opts[key] = opts[key]
50
- @proofer_opts[key] = opts[key]
51
51
  end
52
52
  end
53
53
 
@@ -0,0 +1 @@
1
+ <a href="https://blog.patternsinthevoid.net/">Some link</a>
@@ -215,4 +215,11 @@ describe "Links test" do
215
215
  output = capture_stderr { HTML::Proofer.new(link_pointing_to_directory, options).run }
216
216
  output.should == ""
217
217
  end
218
+
219
+ it "ensures Typhoeus options are passed" do
220
+ options = { ssl_verifypeer: false }
221
+ typhoeus_options_link = "#{FIXTURES_DIR}/links/ensure_typhoeus_options.html"
222
+ output = capture_stderr { HTML::Proofer.new(typhoeus_options_link, options).run }
223
+ output.should == ""
224
+ end
218
225
  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: 1.3.0
4
+ version: 1.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: 2014-08-22 00:00:00.000000000 Z
11
+ date: 2014-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mercenary
@@ -195,6 +195,7 @@ files:
195
195
  - spec/html/proofer/fixtures/links/brokenLinkWithNumber.html
196
196
  - spec/html/proofer/fixtures/links/broken_hash_with_query.html
197
197
  - spec/html/proofer/fixtures/links/checkSSLLinks.html
198
+ - spec/html/proofer/fixtures/links/ensure_typhoeus_options.html
198
199
  - spec/html/proofer/fixtures/links/escape_pipes.html
199
200
  - spec/html/proofer/fixtures/links/folder/anchorLink.html
200
201
  - spec/html/proofer/fixtures/links/folder/assets/barrel.png
@@ -304,6 +305,7 @@ test_files:
304
305
  - spec/html/proofer/fixtures/links/brokenLinkWithNumber.html
305
306
  - spec/html/proofer/fixtures/links/broken_hash_with_query.html
306
307
  - spec/html/proofer/fixtures/links/checkSSLLinks.html
308
+ - spec/html/proofer/fixtures/links/ensure_typhoeus_options.html
307
309
  - spec/html/proofer/fixtures/links/escape_pipes.html
308
310
  - spec/html/proofer/fixtures/links/folder/anchorLink.html
309
311
  - spec/html/proofer/fixtures/links/folder/assets/barrel.png