site_validator 1.3.10 → 1.3.11

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: 2e82c301e6d3b77cb88a25f7df84bfe0b6f3c19d
4
- data.tar.gz: 87c4dbe4deb6ac9efedd88a34f6fb64439dad5fd
3
+ metadata.gz: 4d8979aa04b3d9835efa8ae8410f6f4b98177f74
4
+ data.tar.gz: cbace4f93f945fdb5b5bbbb62e81d664ee775c24
5
5
  SHA512:
6
- metadata.gz: 5dd31f40cd774140c9ed3799019ccd226208920b6f8df9c0bed66739c51777653fb139178efd14783e25f1bb6a590678016083eefa47c3d74ade6938267c3d4a
7
- data.tar.gz: c41869c1796ea3d194098202fd360c9962090b78f6e31b3f4a3cb30d31ddf78ed6d61bad2f6980b5a5d3ab20e1305bddcc0e3b1024d9511e37a74d0777aa15e5
6
+ metadata.gz: 0e0c6d61a6b17421a410ca31dfad0ba8317b8be76cee97a64fed6c21b39902c959292e34829b4f809f9e204d6df2dc54b67f6012c2a5027b964d5c8c399db201
7
+ data.tar.gz: f7a33d646cdea51c4411187554180be943f05f691f4d3d70aa7a0cc3f45db0857953dd9ee3d5ef431ed5f4ffae5ce237bc4f7835b5e2f097d88c80e42ebc8b82
@@ -62,7 +62,13 @@ module SiteValidator
62
62
  ##
63
63
  # Gets the validations for this page, ensuring it times out soon
64
64
  def validations
65
- @validations ||= Timeout::timeout(timeout) { markup_validator.validate_uri(url) }
65
+ @validations ||= Timeout::timeout(timeout) {
66
+ results = markup_validator.validate_uri(url)
67
+
68
+ raise "Could not validate page" if results.checked_by.empty?
69
+
70
+ results
71
+ }
66
72
  end
67
73
 
68
74
  ##
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  module SiteValidator
4
- VERSION = "1.3.10"
4
+ VERSION = "1.3.11"
5
5
  end
@@ -6,6 +6,10 @@ module SiteValidator
6
6
  @errors, @warnings = [], []
7
7
  end
8
8
 
9
+ def checked_by
10
+ "w3c_validator"
11
+ end
12
+
9
13
  def add_error(message_id, line, col, message, source, explanation)
10
14
  @errors << SiteValidator::MockedMessage.new(message_id, line, col, message, source, explanation)
11
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.10
4
+ version: 1.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaime Iniesta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-14 00:00:00.000000000 Z
11
+ date: 2014-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: w3c_validators