site_validator 1.3.1 → 1.3.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: 25992d13a54dd912f8ad338f5608eb8463b0b4e3
4
- data.tar.gz: cdcd311e318ed5ce3b27eaf624f131a1a0e72cfe
3
+ metadata.gz: cc616d5770611aca9729f66ac9cf3a4e9781d6bb
4
+ data.tar.gz: 62bfa7eb209fc3a356cc7d76d6c32f57aa583e59
5
5
  SHA512:
6
- metadata.gz: 7117a27f0442f6a6a518d1c05840ba88e46967ccd21cf86acb69541c51f55116bb0f36e7c9c507c35cc4e6dd3383f41182ac9b288a2399dd1833f14df99be74d
7
- data.tar.gz: 3cb1c9fefeaf0a57efe345e8980593fb67e48a2ce1b51d3bb861b1467d45ea79741a8206c22b75e384d7ebaf51033be210e6cb1f3bac7f9f7e614cb7a58e1e8f
6
+ metadata.gz: 355cc16d196abc23a89af15da3caa703ca2e5de1614da5052ec860b97dad7bb4783440b02de9f0b6930fa64ef4a1f3af3d3b1d18e0c2f9239f224e36b13c084f
7
+ data.tar.gz: 68f10548d59b322c9274ac15c3ee28ac799c5a1bffccf5d798c79cf88cceca6d76639fe274f9ef40ef29c77b1e5025ed6f6e83e502281887decabebcf421846c
@@ -73,14 +73,14 @@ module SiteValidator
73
73
  end
74
74
 
75
75
  ##
76
- # Fixes the link to give feedback to the W3C
76
+ # Prepares the error message explanation, removing the feedback link
77
77
  def prepare_w3c_explanation(message)
78
78
  explanation = message.explanation
79
79
 
80
80
  if explanation
81
+ explanation.gsub!(/<p class="helpwanted">(.*)<\/p>/im, "")
81
82
  explanation.strip!
82
- explanation.gsub!("our feedback channels", "the W3C feedback channels")
83
- explanation.gsub!("feedback.html", "http://validator.w3.org/feedback.html")
83
+ explanation = nil if explanation.size == 0
84
84
  end
85
85
 
86
86
  explanation
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  module SiteValidator
4
- VERSION = "1.3.1"
4
+ VERSION = "1.3.2"
5
5
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  gem.add_dependency 'w3c_validators', '~> 1.2'
19
19
  gem.add_dependency 'nokogiri', '~> 1.5.3'
20
- gem.add_dependency 'metainspector', '~> 1.16.1'
20
+ gem.add_dependency 'metainspector', '~> 1.17.0'
21
21
 
22
22
  gem.add_development_dependency 'rspec', '~> 2.5.0'
23
23
  gem.add_development_dependency 'mocha', '~> 0.11.4'
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.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jaime Iniesta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-01 00:00:00.000000000 Z
11
+ date: 2013-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: w3c_validators
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 1.16.1
47
+ version: 1.17.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 1.16.1
54
+ version: 1.17.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement