w3c_validators 1.2 → 1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +4 -0
- data/.travis.yml +7 -0
- data/CHANGELOG +14 -2
- data/Gemfile +3 -0
- data/Gemfile.lock +43 -0
- data/{README.rdoc → README.md} +41 -29
- data/Rakefile +64 -0
- data/lib/w3c_validators.rb +2 -1
- data/lib/w3c_validators/css_validator.rb +23 -16
- data/lib/w3c_validators/feed_validator.rb +4 -4
- data/lib/w3c_validators/markup_validator.rb +29 -29
- data/lib/w3c_validators/message.rb +6 -2
- data/lib/w3c_validators/nu_validator.rb +2 -2
- data/lib/w3c_validators/validator.rb +48 -43
- data/lib/w3c_validators/version.rb +3 -0
- data/test/fixtures/bootstrap.min.css +6 -0
- data/test/fixtures/invalid_css.css +2 -0
- data/test/fixtures/invalid_encoding.html +10 -0
- data/test/fixtures/invalid_feed.xml +19 -0
- data/test/fixtures/invalid_html5.html +16 -0
- data/test/fixtures/invalid_markup.html +11 -0
- data/test/fixtures/valid_css.css +2 -0
- data/test/fixtures/valid_feed.xml +20 -0
- data/test/fixtures/valid_html5.html +16 -0
- data/test/fixtures/valid_markup.html +11 -0
- data/test/http_recording/css_context.yml +72 -0
- data/test/http_recording/css_overriding_css_profile.yml +66 -0
- data/test/http_recording/css_skippedstring.yml +72 -0
- data/test/http_recording/css_validating_big_file.yml +1423 -0
- data/test/http_recording/css_validating_file.yml +72 -0
- data/test/http_recording/css_validating_text.yml +66 -0
- data/test/http_recording/css_validating_text_via_file.yml +72 -0
- data/test/http_recording/css_validating_uri.yml +65 -0
- data/test/http_recording/css_vendor_extensions_as_errors.yml +65 -0
- data/test/http_recording/css_vendor_extensions_as_warnings.yml +62 -0
- data/test/http_recording/css_vendor_extensions_default.yml +62 -0
- data/test/http_recording/feed_validating_file.yml +49 -0
- data/test/http_recording/feed_validating_text.yml +46 -0
- data/test/http_recording/feed_validating_text_via_file.yml +49 -0
- data/test/http_recording/feed_validating_uri_with_soap.yml +50 -0
- data/test/http_recording/html5_getting_request_data.yml +51 -0
- data/test/http_recording/html5_validating_uri.yml +74 -0
- data/test/http_recording/markup_debugging_uri.yml +83 -0
- data/test/http_recording/markup_overriding_charset.yml +125 -0
- data/test/http_recording/markup_overriding_charset_for_fallback_only.yml +76 -0
- data/test/http_recording/markup_overriding_doctype.yml +208 -0
- data/test/http_recording/markup_overriding_doctype_for_fallback_only.yml +84 -0
- data/test/http_recording/markup_validating_file.yml +93 -0
- data/test/http_recording/markup_validating_text.yml +67 -0
- data/test/http_recording/markup_validating_text_via_file.yml +93 -0
- data/test/http_recording/markup_validating_uri_with_head_request.yml +38 -0
- data/test/http_recording/markup_validating_uri_with_soap.yml +76 -0
- data/test/http_recording/markup_validator_abort.yml +50 -0
- data/test/http_recording/markup_validator_contains_details_of_error_conditions.yml +76 -0
- data/test/test_css_validator.rb +78 -17
- data/test/test_exceptions.rb +11 -8
- data/test/test_feed_validator.rb +42 -39
- data/test/test_helper.rb +7 -2
- data/test/test_html5_validator.rb +42 -34
- data/test/test_markup_validator.rb +75 -52
- data/test/test_proxy.rb +5 -2
- data/w3c_validators.gemspec +24 -0
- metadata +154 -68
metadata
CHANGED
@@ -1,50 +1,114 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: w3c_validators
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: "1.2"
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '1.3'
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- Alex Dunae
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2016-11-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
16
14
|
name: nokogiri
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: "0"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
24
20
|
type: :runtime
|
25
|
-
|
26
|
-
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
27
28
|
name: json
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.0'
|
34
|
+
type: :runtime
|
28
35
|
prerelease: false
|
29
|
-
|
30
|
-
|
31
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
32
45
|
- - ">="
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version:
|
35
|
-
type: :
|
36
|
-
|
37
|
-
|
38
|
-
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: vcr
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: test-unit
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description:
|
98
|
+
email:
|
39
99
|
executables: []
|
40
|
-
|
41
100
|
extensions: []
|
42
|
-
|
43
|
-
|
44
|
-
-
|
101
|
+
extra_rdoc_files: []
|
102
|
+
files:
|
103
|
+
- ".gitignore"
|
104
|
+
- ".travis.yml"
|
45
105
|
- CHANGELOG
|
106
|
+
- Gemfile
|
107
|
+
- Gemfile.lock
|
46
108
|
- LICENSE
|
47
|
-
|
109
|
+
- README.md
|
110
|
+
- Rakefile
|
111
|
+
- lib/w3c_validators.rb
|
48
112
|
- lib/w3c_validators/constants.rb
|
49
113
|
- lib/w3c_validators/css_validator.rb
|
50
114
|
- lib/w3c_validators/exceptions.rb
|
@@ -54,10 +118,46 @@ files:
|
|
54
118
|
- lib/w3c_validators/nu_validator.rb
|
55
119
|
- lib/w3c_validators/results.rb
|
56
120
|
- lib/w3c_validators/validator.rb
|
57
|
-
- lib/w3c_validators.rb
|
58
|
-
-
|
59
|
-
-
|
60
|
-
-
|
121
|
+
- lib/w3c_validators/version.rb
|
122
|
+
- test/fixtures/bootstrap.min.css
|
123
|
+
- test/fixtures/invalid_css.css
|
124
|
+
- test/fixtures/invalid_encoding.html
|
125
|
+
- test/fixtures/invalid_feed.xml
|
126
|
+
- test/fixtures/invalid_html5.html
|
127
|
+
- test/fixtures/invalid_markup.html
|
128
|
+
- test/fixtures/valid_css.css
|
129
|
+
- test/fixtures/valid_feed.xml
|
130
|
+
- test/fixtures/valid_html5.html
|
131
|
+
- test/fixtures/valid_markup.html
|
132
|
+
- test/http_recording/css_context.yml
|
133
|
+
- test/http_recording/css_overriding_css_profile.yml
|
134
|
+
- test/http_recording/css_skippedstring.yml
|
135
|
+
- test/http_recording/css_validating_big_file.yml
|
136
|
+
- test/http_recording/css_validating_file.yml
|
137
|
+
- test/http_recording/css_validating_text.yml
|
138
|
+
- test/http_recording/css_validating_text_via_file.yml
|
139
|
+
- test/http_recording/css_validating_uri.yml
|
140
|
+
- test/http_recording/css_vendor_extensions_as_errors.yml
|
141
|
+
- test/http_recording/css_vendor_extensions_as_warnings.yml
|
142
|
+
- test/http_recording/css_vendor_extensions_default.yml
|
143
|
+
- test/http_recording/feed_validating_file.yml
|
144
|
+
- test/http_recording/feed_validating_text.yml
|
145
|
+
- test/http_recording/feed_validating_text_via_file.yml
|
146
|
+
- test/http_recording/feed_validating_uri_with_soap.yml
|
147
|
+
- test/http_recording/html5_getting_request_data.yml
|
148
|
+
- test/http_recording/html5_validating_uri.yml
|
149
|
+
- test/http_recording/markup_debugging_uri.yml
|
150
|
+
- test/http_recording/markup_overriding_charset.yml
|
151
|
+
- test/http_recording/markup_overriding_charset_for_fallback_only.yml
|
152
|
+
- test/http_recording/markup_overriding_doctype.yml
|
153
|
+
- test/http_recording/markup_overriding_doctype_for_fallback_only.yml
|
154
|
+
- test/http_recording/markup_validating_file.yml
|
155
|
+
- test/http_recording/markup_validating_text.yml
|
156
|
+
- test/http_recording/markup_validating_text_via_file.yml
|
157
|
+
- test/http_recording/markup_validating_uri_with_head_request.yml
|
158
|
+
- test/http_recording/markup_validating_uri_with_soap.yml
|
159
|
+
- test/http_recording/markup_validator_abort.yml
|
160
|
+
- test/http_recording/markup_validator_contains_details_of_error_conditions.yml
|
61
161
|
- test/test_css_validator.rb
|
62
162
|
- test/test_exceptions.rb
|
63
163
|
- test/test_feed_validator.rb
|
@@ -65,42 +165,28 @@ files:
|
|
65
165
|
- test/test_html5_validator.rb
|
66
166
|
- test/test_markup_validator.rb
|
67
167
|
- test/test_proxy.rb
|
68
|
-
|
168
|
+
- w3c_validators.gemspec
|
169
|
+
homepage: https://github.com/w3c-validators/w3c_validators
|
69
170
|
licenses: []
|
70
|
-
|
171
|
+
metadata: {}
|
71
172
|
post_install_message:
|
72
|
-
rdoc_options:
|
73
|
-
|
74
|
-
- --inline-source
|
75
|
-
- --line-numbers
|
76
|
-
- --charset
|
77
|
-
- utf-8
|
78
|
-
require_paths:
|
173
|
+
rdoc_options: []
|
174
|
+
require_paths:
|
79
175
|
- lib
|
80
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
none: false
|
88
|
-
requirements:
|
176
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '2.0'
|
181
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
89
183
|
- - ">="
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version:
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '0'
|
92
186
|
requirements: []
|
93
|
-
|
94
187
|
rubyforge_project:
|
95
|
-
rubygems_version:
|
188
|
+
rubygems_version: 2.4.8
|
96
189
|
signing_key:
|
97
|
-
specification_version:
|
98
|
-
summary:
|
99
|
-
test_files:
|
100
|
-
- test/test_css_validator.rb
|
101
|
-
- test/test_exceptions.rb
|
102
|
-
- test/test_feed_validator.rb
|
103
|
-
- test/test_helper.rb
|
104
|
-
- test/test_html5_validator.rb
|
105
|
-
- test/test_markup_validator.rb
|
106
|
-
- test/test_proxy.rb
|
190
|
+
specification_version: 4
|
191
|
+
summary: A Ruby wrapper for the World Wide Web Consortium’s online validation services.
|
192
|
+
test_files: []
|