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 +4 -4
- data/lib/site_validator/page.rb +2 -1
- data/lib/site_validator/version.rb +1 -1
- data/site_validator.gemspec +1 -0
- data/spec/spec_helper.rb +6 -6
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53e164913dd0e4a8261a3de68add6ba6ff0b6fe9
|
4
|
+
data.tar.gz: ce98faa02cfd46eb35f306b9ee7b3da2ae587be3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7853f2a4cff549101bf61109c30c457500f5c0736c783b352cb633b62af8fab40d8519d3fc137f9d8488ac701da4c2b24b3bb75d839fb83c63c89e76c2abd192
|
7
|
+
data.tar.gz: bf8ed8717aa493c6ccb17febbda5a99df8af5a7d0cdea58d9a85538dd94e7ecb90902312b1444f6227a422a17298b97350cbfb3980b2fb9d1f5fa4c4e06de1a9
|
data/lib/site_validator/page.rb
CHANGED
@@ -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
|
data/site_validator.gemspec
CHANGED
@@ -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',
|
41
|
-
fake_validator.add_error('325', '92', '22', message_text('325'), 'another code snippet for line 92',
|
42
|
-
fake_validator.add_error('325', '224', '17', message_text('325'), 'another code snippet for line 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',
|
47
|
-
fake_validator.add_warning('247', '112', '18', message_text('247'), 'another code snippet for line 247',
|
48
|
-
fake_validator.add_warning('247', '202', '47', message_text('247'), 'another code snippet for line 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.
|
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-
|
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: []
|