site_validator 1.3.7 → 1.3.8

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: 2e8adab0890c252808900bd12dc4ae23e556a4ed
4
- data.tar.gz: d58c26ff836e00bc03dbf97ebb40eb0e84ce4579
3
+ metadata.gz: 53e164913dd0e4a8261a3de68add6ba6ff0b6fe9
4
+ data.tar.gz: ce98faa02cfd46eb35f306b9ee7b3da2ae587be3
5
5
  SHA512:
6
- metadata.gz: 987a578afa4b34fe6fb7d64c746cdb8ce9a740ac7700d4839ea30db173d75668fbbaa77744417f4d809bc1662a5616b8333455997baf0328b36dac0d555fc8d8
7
- data.tar.gz: ed64907573bd88f536c7ff4eba16e31c6cd4f1b32a0058d120d8d1d18f56325349d5bc7ec70ff255569c263fc4ce6a187b3353e28eb1e5e3490b5016dca215a3
6
+ metadata.gz: 7853f2a4cff549101bf61109c30c457500f5c0736c783b352cb633b62af8fab40d8519d3fc137f9d8488ac701da4c2b24b3bb75d839fb83c63c89e76c2abd192
7
+ data.tar.gz: bf8ed8717aa493c6ccb17febbda5a99df8af5a7d0cdea58d9a85538dd94e7ecb90902312b1444f6227a422a17298b97350cbfb3980b2fb9d1f5fa4c4e06de1a9
@@ -90,7 +90,8 @@ module SiteValidator
90
90
 
91
91
  def remove_feedback_link(explanation)
92
92
  fragment = Nokogiri::HTML.fragment(explanation)
93
- fragment.at_css('p.helpwanted').remove
93
+ fragment.at_css('p.helpwanted').remove if fragment.at_css('p.helpwanted')
94
+
94
95
  fragment.to_html
95
96
  end
96
97
  end
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  module SiteValidator
4
- VERSION = "1.3.7"
4
+ VERSION = "1.3.8"
5
5
  end
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
7
7
  gem.description = %q{command-line tool to validate the markup of a whole site against the W3C validator}
8
8
  gem.summary = %q{command-line tool to validate the markup of a whole site against the W3C validator}
9
9
  gem.homepage = "http://gem.sitevalidator.com/"
10
+ gem.license = "MIT"
10
11
 
11
12
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
12
13
  gem.files = `git ls-files`.split("\n")
data/spec/spec_helper.rb CHANGED
@@ -37,15 +37,15 @@ def stubbed_validator_results(with_errors=true, with_warnings=true)
37
37
  fake_validator = SiteValidator::MockedValidator.new
38
38
 
39
39
  if with_errors
40
- fake_validator.add_error('25', '92', '22', message_text('25'), 'a code snippet for line 92', 'an explanation for error 25')
41
- fake_validator.add_error('325', '92', '22', message_text('325'), 'another code snippet for line 92', 'an explanation for error 325')
42
- fake_validator.add_error('325', '224', '17', message_text('325'), 'another code snippet for line 325', 'an explanation for error 325')
40
+ fake_validator.add_error('25', '92', '22', message_text('25'), 'a code snippet for line 92', "an explanation for error 25 <p class='helpwanted'><a href='#'>feedback</a></p>")
41
+ fake_validator.add_error('325', '92', '22', message_text('325'), 'another code snippet for line 92', "an explanation for error 325 <p class='helpwanted'><a href='#'>feedback</a></p>")
42
+ fake_validator.add_error('325', '224', '17', message_text('325'), 'another code snippet for line 325', "an explanation for error 325 <p class='helpwanted'><a href='#'>feedback</a></p>")
43
43
  end
44
44
 
45
45
  if with_warnings
46
- fake_validator.add_warning('338', '92', '22', message_text('338'), 'a code snippet for line 338', 'an explanation for warning 338')
47
- fake_validator.add_warning('247', '112', '18', message_text('247'), 'another code snippet for line 247', 'an explanation for warning 247')
48
- fake_validator.add_warning('247', '202', '47', message_text('247'), 'another code snippet for line 247', 'an explanation for warning 247')
46
+ fake_validator.add_warning('338', '92', '22', message_text('338'), 'a code snippet for line 338', "an explanation for warning 338 <p class='helpwanted'><a href='#'>feedback</a></p>")
47
+ fake_validator.add_warning('247', '112', '18', message_text('247'), 'another code snippet for line 247', "an explanation for warning 247 <p class='helpwanted'><a href='#'>feedback</a></p>")
48
+ fake_validator.add_warning('247', '202', '47', message_text('247'), 'another code snippet for line 247', "an explanation for warning 247 <p class='helpwanted'><a href='#'>feedback</a></p>")
49
49
  end
50
50
 
51
51
  fake_validator
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.7
4
+ version: 1.3.8
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-11-14 00:00:00.000000000 Z
11
+ date: 2013-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: w3c_validators
@@ -155,7 +155,8 @@ files:
155
155
  - spec/sitemap_spec.rb
156
156
  - spec/spec_helper.rb
157
157
  homepage: http://gem.sitevalidator.com/
158
- licenses: []
158
+ licenses:
159
+ - MIT
159
160
  metadata: {}
160
161
  post_install_message:
161
162
  rdoc_options: []