html-proofer 0.4.0 → 0.4.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: 96ef995058e63021380229872126e11c18216d4a
4
- data.tar.gz: 97f17a39a973e7819f52cbb0611f9f64f0152f94
3
+ metadata.gz: 59729987eddc86b73a5542fe3def694fb034fa0a
4
+ data.tar.gz: 8a80c231b5e22970b8ca08b6d632c71c86f970ad
5
5
  SHA512:
6
- metadata.gz: 459bf3c2a753d660993f17ba982367a2ae395a04d3866bacb590f687c82b5929138fa596282d2ecac95f7644128777fceaa2fbeb2967737beb3d02cdd9d37c5d
7
- data.tar.gz: 953d20ddcd61d8af3bec8eb7b9ffc2c8f532a16f9241960ee7040255b87079a4c8b72ba0210c411fbd4597833bf8f94d0d3f65c57870f88471d29bbf3c284838
6
+ metadata.gz: 97b8b71c017a4b188cb3c4275f9c8f94e0337142d90f0e395460e7335c205bff28d38602049e77eaab0d8e8901c2651eeca907be29c37d4b71c593b9b04e3187
7
+ data.tar.gz: e98f82d67408b22c19ac87ebb10c02a4649b95acf38b2867cc343bb7b809fae5d8d44828b9a888498650298333176fdab8c64215d0be95a42fe7aa3c60aa7166
data/lib/html/proofer.rb CHANGED
@@ -83,7 +83,7 @@ module HTML
83
83
  elsif response_code == 404 && method == :head
84
84
  next_response = Typhoeus.get(href, @options)
85
85
  response_handler(next_response, filenames)
86
- elsif (response_code == 420 || response_code == 503) && method == :head
86
+ elsif (response_code == 405 || response_code == 420 || response_code == 503) && method == :head
87
87
  # 420s usually come from rate limiting; let's ignore the query and try just the path with a GET
88
88
  uri = URI(href)
89
89
  next_response = Typhoeus.get(uri.scheme + "://" + uri.host + uri.path, @options)
@@ -1,5 +1,5 @@
1
1
  module HTML
2
2
  class Proofer
3
- VERSION = "0.4.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-proofer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian