w3c_validators 1.3.4 → 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 808e0ab1a06eeddb2fdddc48b8561b0af6131543ec831f6e8116f1bfac116a80
4
- data.tar.gz: 3fbbfdd0e7c20abbd969199ddb9b5b9a8c753b54bdd75d39e4afc0a0a048c0c8
3
+ metadata.gz: 9972fa2cd74536e3359bc0f0526fe0f58fd0d23aaf3688df72d76ab0d1869a0c
4
+ data.tar.gz: fc6a6c89130cf1b0b10db31a5a98413994b12c86e48e7e1cd2104d410675c2aa
5
5
  SHA512:
6
- metadata.gz: d4612201b2274705ba738ac9825c7bfce3b70b93b266c93ac46460cf6d55e02d236c950bf7b7a4f84c569cc1993f7c55bcddb11f07d2074fd26491e64892b989
7
- data.tar.gz: 3f98f9ec4200b52cc75d66b4a9aec62dbeefacf28cff95f965b11fe7f8ba2112a5d7975a8963fb4f15606164bfc7ddc406990af1d769a0eca1c54924d8d24625
6
+ metadata.gz: b2f1d2c6fea7896217e50750e2a938a4716e27c0372f31776626fcd0c9629eaa60ae343ea331f15aef3043f4f10908eef159e23bdc0d8453d29c2a0f57b094db
7
+ data.tar.gz: 38c578baacc761f14cb9a1eff320577c46b3933d5a3b5dec66e75eb4c0c84b3d4c696ba8d9f951d3f8d4fd5929f6f2a1204577188223e73377ad966210cc519f
data/CHANGELOG CHANGED
@@ -68,3 +68,16 @@
68
68
  * add test of ruby 2.5
69
69
  * remove unused variable in nu validator code
70
70
 
71
+ == Version 1.3.5
72
+ * replace Net::HTTPServerException (deprecated) by Net::HTTPClientException
73
+ * fix bad indentation of rescue in validators classes
74
+ * add test for ruby 2.6, update 2.5, 2.4, 2.3 tested version and remove 2.2 and 2.1 versions
75
+
76
+ == Version 1.3.6
77
+ * update README to clarify usage with Ruby frameworks
78
+ * update dependencies to be ready for ruby 3.0
79
+
80
+ == Version 1.3.7
81
+ * Fix FFeed validator URL (move to HTTPS as HTTP is not supported anymore)
82
+ * remove travis-ci test (no more support for open source projects)
83
+
data/README.md CHANGED
@@ -148,6 +148,36 @@ You can use a proxy server by passing in its information in the contructor.
148
148
  puts "#{key}: #{value}"
149
149
  end
150
150
  ```
151
+
152
+ ### Examples with Ruby Frameworks
153
+
154
+ ```
155
+ # you can easily incorporate this in your ruby based frameworks:
156
+
157
+ # Gemfile
158
+ group :test do
159
+ gem 'w3c_validators'
160
+ end
161
+
162
+ # And in your relevant test file:
163
+
164
+ require 'w3c_validators'
165
+
166
+ class FoosControllerTest < ActionDispatch::IntegrationTest
167
+ setup do
168
+ @validator = W3CValidators::NuValidator.new
169
+ end
170
+
171
+ test "index" do
172
+ get foos_url
173
+ assert_equal 0, @validator.validate_text(response.body).errors.length
174
+ end
175
+ end
176
+
177
+ # granted it's not perfect, but hopefully that will at least get you going
178
+ # you might want to customise things so that it delivers a particular output in case an error shows up.
179
+ ```
180
+
151
181
  ### Tests
152
182
 
153
183
  Run unit tests using <tt>rake test</tt>. Note that there is a one second delay
@@ -1,6 +1,6 @@
1
1
  module W3CValidators
2
2
  class FeedValidator < Validator
3
- FEED_VALIDATOR_URI = 'http://validator.w3.org/feed/check.cgi'
3
+ FEED_VALIDATOR_URI = 'https://validator.w3.org/feed/check.cgi'
4
4
 
5
5
  # Create a new instance of the FeedValidator.
6
6
  #
@@ -202,8 +202,8 @@ protected
202
202
  end
203
203
  return results
204
204
 
205
- rescue Exception => e
206
- handle_exception e
205
+ rescue Exception => e
206
+ handle_exception e
207
207
  end
208
208
 
209
209
  # Parse the HEAD response into HTMLValidator::Results.
@@ -140,8 +140,8 @@ protected
140
140
 
141
141
  return results
142
142
 
143
- rescue Exception => e
144
- handle_exception e
143
+ rescue Exception => e
144
+ handle_exception e
145
145
  end
146
146
  end
147
147
  end
@@ -16,6 +16,7 @@ module W3CValidators
16
16
  HEAD_STATUS_HEADER = 'X-W3C-Validator-Status'
17
17
  HEAD_ERROR_COUNT_HEADER = 'X-W3C-Validator-Errors'
18
18
  SOAP_OUTPUT_PARAM = 'soap12'
19
+ USE_NEW_EXCEPTION = Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.6')
19
20
 
20
21
  attr_reader :results, :validator_uri
21
22
 
@@ -112,8 +113,8 @@ module W3CValidators
112
113
  response.value
113
114
  return response
114
115
 
115
- rescue Exception => e
116
- handle_exception e
116
+ rescue Exception => e
117
+ handle_exception e
117
118
  end
118
119
 
119
120
  def create_multipart_data(options) # :nodoc:
@@ -173,8 +174,13 @@ module W3CValidators
173
174
  # Big thanks to ara.t.howard and Joel VanderWerf on Ruby-Talk for the exception handling help.
174
175
  #++
175
176
  def handle_exception(e, msg = '') # :nodoc:
177
+ if USE_NEW_EXCEPTION
178
+ http_exception = Net::HTTPClientException
179
+ else
180
+ http_exception = Net::HTTPServerException
181
+ end
176
182
  case e
177
- when Net::HTTPServerException, SocketError, Errno::ECONNREFUSED
183
+ when http_exception, SocketError, Errno::ECONNREFUSED
178
184
  msg = "unable to connect to the validator at #{@validator_uri} (response was #{e.message})."
179
185
  raise ValidatorUnavailable, msg, caller
180
186
  when JSON::ParserError, Nokogiri::XML::SyntaxError
@@ -1,3 +1,3 @@
1
1
  module W3CValidators
2
- VERSION = "1.3.4"
2
+ VERSION = "1.3.7"
3
3
  end
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://validator.w3.org/feed/check.cgi
5
+ uri: https://validator.w3.org/feed/check.cgi
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: rawdata=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E%0A%3Cfeed+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2005%2FAtom%22%3E%0A+%3Ctitle%3EExample+Feed%3C%2Ftitle%3E%0A+%3Csubtitle%3EA+subtitle.%3C%2Fsubtitle%3E%0A+%3Clink+href%3D%22http%3A%2F%2Fexample.org%2Ffeed%2F%22+rel%3D%22self%22%2F%3E%0A+%3Clink+href%3D%22http%3A%2F%2Fexample.org%2F%22%2F%3E%0A+%3Cupdated%3E2003-12-13T18%3A30%3A02Z%3C%2Fupdated%3E%0A+%3Cauthor%3E%0A+++%3Cemail%3Ejohndoe%40example.com%3C%2Femail%3E%0A+%3C%2Fauthor%3E%0A+%3Cid%3Eurn%3Auuid%3A60a76c80-d399-11d9-b91C-0003939e0af6%3C%2Fid%3E%0A+%3Centry%3E%0A+++%3Ctitle%3EAtom-Powered+Robots+Run+Amok%3C%2Ftitle%3E%0A+++%3Clink+href%3D%22http%3A%2F%2Fexample.org%2F2003%2F12%2F13%2Fatom03%22%2F%3E%0A+++%3Cid%3Eurn%3Auuid%3A1225c695-cfb8-4ebb-aaaa-80da344efa6a%3C%2Fid%3E%0A+++%3Cupdated%3E2003-12-13T18%3A30%3A02Z%3C%2Fupdated%3E%0A+++%3Csummary%3ESome+text.%3C%2Fsummary%3E%0A+%3C%2Fentry%3E%0A%3C%2Ffeed%3E%0A&output=soap12&
@@ -19,19 +19,40 @@ http_interactions:
19
19
  message: OK
20
20
  headers:
21
21
  Date:
22
- - Sun, 30 Oct 2016 19:24:57 GMT
23
- Server:
24
- - Apache/2.4.10 (Debian)
25
- Transfer-Encoding:
26
- - chunked
22
+ - Sat, 19 Mar 2022 18:36:43 GMT
27
23
  Content-Type:
28
24
  - application/soap+xml; charset=UTF-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Strict-Transport-Security:
30
+ - max-age=15552015; preload
31
+ Public-Key-Pins:
32
+ - pin-sha256="cN0QSpPIkuwpT6iP2YjEo1bEwGpH/yiUn6yhdy+HNto="; pin-sha256="WGJkyYjx1QMdMe0UqlyOKXtydPDVrk7sl2fV+nNm1r4=";
33
+ pin-sha256="LrKdTxZLRTvyHM4/atX2nquX9BeHRZMCxg3cf4rhc2I="; max-age=864000
34
+ X-Frame-Options:
35
+ - deny
36
+ X-Xss-Protection:
37
+ - 1; mode=block
38
+ X-Request-Id:
39
+ - 6ee850b2fac4ee64
40
+ Cf-Cache-Status:
41
+ - DYNAMIC
42
+ Expect-Ct:
43
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
44
+ Server:
45
+ - cloudflare
46
+ Cf-Ray:
47
+ - 6ee850b2fac4ee64-CDG
48
+ Alt-Svc:
49
+ - h3=":443"; ma=86400, h3-29=":443"; ma=86400
29
50
  body:
30
51
  encoding: UTF-8
31
52
  string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\">\n<env:Body>\n<m:feedvalidationresponse
32
53
  env:encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" xmlns:m=\"http://www.w3.org/2005/10/feed-validator\">\n
33
- \ <m:uri></m:uri> \n <m:checkedby>http://validator.w3.org/feed/check.cgi</m:checkedby>\n
34
- \ <m:date>2016-10-30T19:24:57.751195</m:date>\n <m:validity>false</m:validity>\n
54
+ \ <m:uri></m:uri> \n <m:checkedby>http://validator.w3.org/check.cgi</m:checkedby>\n
55
+ \ <m:date>2022-03-19T18:36:43.822625</m:date>\n <m:validity>false</m:validity>\n
35
56
  \ <m:errors>\n <m:errorcount>1</m:errorcount>\n <m:errorlist><error>\n
36
57
  \ <level>error</level>\n <type>MissingElement</type>\n <line>10</line>\n
37
58
  \ <column>1</column>\n <text>Missing author element: name</text>\n <msgcount>1</msgcount>\n
@@ -44,6 +65,5 @@ http_interactions:
44
65
  \ <parent>feed</parent>\n</warning>\n</m:warninglist>\n </m:warnings>\n
45
66
  \ <m:informations>\n\t<m:infocount>0</m:infocount>\n\t<m:infolist></m:infolist>\n
46
67
  \ </m:informations>\n</m:feedvalidationresponse>\n</env:Body>\n</env:Envelope>\n\n"
47
- http_version:
48
- recorded_at: Sun, 30 Oct 2016 19:24:56 GMT
49
- recorded_with: VCR 3.0.3
68
+ recorded_at: Sat, 19 Mar 2022 18:36:43 GMT
69
+ recorded_with: VCR 6.1.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://validator.w3.org/feed/check.cgi
5
+ uri: https://validator.w3.org/feed/check.cgi
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: rawdata=++++++%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E%0A++++++%3Cfeed+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2005%2FAtom%22%3E%0A+++++++%3Ctitle%3EExample+Feed%3C%2Ftitle%3E%0A+++++++%3Csubtitle%3EA+subtitle.%3C%2Fsubtitle%3E%0A+++++++%3Clink+href%3D%22http%3A%2F%2Fexample.org%2Ffeed%2F%22+rel%3D%22self%22%2F%3E%0A+++++++%3Clink+href%3D%22http%3A%2F%2Fexample.org%2F%22%2F%3E%0A+++++++%3Cupdated%3E2003-12-13T18%3A30%3A02Z%3C%2Fupdated%3E%0A+++++++%3Cauthor%3E%0A+++++++++%3Cemail%3Ejohndoe%40example.com%3C%2Femail%3E%0A+++++++%3C%2Fauthor%3E%0A+++++++%3Cid%3Eurn%3Auuid%3A60a76c80-d399-11d9-b91C-0003939e0af6%3C%2Fid%3E%0A+++++++%3Centry%3E%0A+++++++++%3Ctitle%3EAtom-Powered+Robots+Run+Amok%3C%2Ftitle%3E%0A+++++++++%3Clink+href%3D%22http%3A%2F%2Fexample.org%2F2003%2F12%2F13%2Fatom03%22%2F%3E%0A+++++++++%3Cid%3Eurn%3Auuid%3A1225c695-cfb8-4ebb-aaaa-80da344efa6a%3C%2Fid%3E%0A+++++++++%3Cupdated%3E2003-12-13T18%3A30%3A02Z%3C%2Fupdated%3E%0A+++++++++%3Csummary%3ESome+text.%3C%2Fsummary%3E%0A+++++++%3C%2Fentry%3E%0A++++++%3C%2Ffeed%3E%0A&output=soap12&
@@ -19,19 +19,40 @@ http_interactions:
19
19
  message: OK
20
20
  headers:
21
21
  Date:
22
- - Sun, 30 Oct 2016 19:24:58 GMT
23
- Server:
24
- - Apache/2.4.10 (Debian)
25
- Transfer-Encoding:
26
- - chunked
22
+ - Sat, 19 Mar 2022 18:36:45 GMT
27
23
  Content-Type:
28
24
  - application/soap+xml; charset=UTF-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Strict-Transport-Security:
30
+ - max-age=15552015; preload
31
+ Public-Key-Pins:
32
+ - pin-sha256="cN0QSpPIkuwpT6iP2YjEo1bEwGpH/yiUn6yhdy+HNto="; pin-sha256="WGJkyYjx1QMdMe0UqlyOKXtydPDVrk7sl2fV+nNm1r4=";
33
+ pin-sha256="LrKdTxZLRTvyHM4/atX2nquX9BeHRZMCxg3cf4rhc2I="; max-age=864000
34
+ X-Frame-Options:
35
+ - deny
36
+ X-Xss-Protection:
37
+ - 1; mode=block
38
+ X-Request-Id:
39
+ - 6ee850bd2adf0893
40
+ Cf-Cache-Status:
41
+ - DYNAMIC
42
+ Expect-Ct:
43
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
44
+ Server:
45
+ - cloudflare
46
+ Cf-Ray:
47
+ - 6ee850bd2adf0893-CDG
48
+ Alt-Svc:
49
+ - h3=":443"; ma=86400, h3-29=":443"; ma=86400
29
50
  body:
30
51
  encoding: UTF-8
31
52
  string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\">\n<env:Body>\n<m:feedvalidationresponse
32
53
  env:encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" xmlns:m=\"http://www.w3.org/2005/10/feed-validator\">\n
33
- \ <m:uri></m:uri> \n <m:checkedby>http://validator.w3.org/feed/check.cgi</m:checkedby>\n
34
- \ <m:date>2016-10-30T19:24:59.069709</m:date>\n <m:validity>false</m:validity>\n
54
+ \ <m:uri></m:uri> \n <m:checkedby>http://validator.w3.org/check.cgi</m:checkedby>\n
55
+ \ <m:date>2022-03-19T18:36:45.381575</m:date>\n <m:validity>false</m:validity>\n
35
56
  \ <m:errors>\n <m:errorcount>1</m:errorcount>\n <m:errorlist><error>\n
36
57
  \ <level>error</level>\n <type>SAXError</type>\n <line>1</line>\n <column>6</column>\n
37
58
  \ <text>XML parsing error: &lt;unknown&gt;:1:6: XML or text declaration not
@@ -41,6 +62,5 @@ http_interactions:
41
62
  \ </m:errors>\n <m:warnings>\n <m:warningcount>0</m:warningcount>\n\t<m:warninglist></m:warninglist>\n
42
63
  \ </m:warnings>\n <m:informations>\n\t<m:infocount>0</m:infocount>\n\t<m:infolist></m:infolist>\n
43
64
  \ </m:informations>\n</m:feedvalidationresponse>\n</env:Body>\n</env:Envelope>\n\n"
44
- http_version:
45
- recorded_at: Sun, 30 Oct 2016 19:24:58 GMT
46
- recorded_with: VCR 3.0.3
65
+ recorded_at: Sat, 19 Mar 2022 18:36:45 GMT
66
+ recorded_with: VCR 6.1.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: post
5
- uri: http://validator.w3.org/feed/check.cgi
5
+ uri: https://validator.w3.org/feed/check.cgi
6
6
  body:
7
7
  encoding: UTF-8
8
8
  string: rawdata=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E%0A%3Cfeed+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2005%2FAtom%22%3E%0A+%3Ctitle%3EExample+Feed%3C%2Ftitle%3E%0A+%3Csubtitle%3EA+subtitle.%3C%2Fsubtitle%3E%0A+%3Clink+href%3D%22http%3A%2F%2Fexample.org%2Ffeed%2F%22+rel%3D%22self%22%2F%3E%0A+%3Clink+href%3D%22http%3A%2F%2Fexample.org%2F%22%2F%3E%0A+%3Cupdated%3E2003-12-13T18%3A30%3A02Z%3C%2Fupdated%3E%0A+%3Cauthor%3E%0A+++%3Cemail%3Ejohndoe%40example.com%3C%2Femail%3E%0A+%3C%2Fauthor%3E%0A+%3Cid%3Eurn%3Auuid%3A60a76c80-d399-11d9-b91C-0003939e0af6%3C%2Fid%3E%0A+%3Centry%3E%0A+++%3Ctitle%3EAtom-Powered+Robots+Run+Amok%3C%2Ftitle%3E%0A+++%3Clink+href%3D%22http%3A%2F%2Fexample.org%2F2003%2F12%2F13%2Fatom03%22%2F%3E%0A+++%3Cid%3Eurn%3Auuid%3A1225c695-cfb8-4ebb-aaaa-80da344efa6a%3C%2Fid%3E%0A+++%3Cupdated%3E2003-12-13T18%3A30%3A02Z%3C%2Fupdated%3E%0A+++%3Csummary%3ESome+text.%3C%2Fsummary%3E%0A+%3C%2Fentry%3E%0A%3C%2Ffeed%3E%0A&output=soap12&
@@ -19,19 +19,40 @@ http_interactions:
19
19
  message: OK
20
20
  headers:
21
21
  Date:
22
- - Sun, 30 Oct 2016 19:25:00 GMT
23
- Server:
24
- - Apache/2.4.10 (Debian)
25
- Transfer-Encoding:
26
- - chunked
22
+ - Sat, 19 Mar 2022 18:36:47 GMT
27
23
  Content-Type:
28
24
  - application/soap+xml; charset=UTF-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Strict-Transport-Security:
30
+ - max-age=15552015; preload
31
+ Public-Key-Pins:
32
+ - pin-sha256="cN0QSpPIkuwpT6iP2YjEo1bEwGpH/yiUn6yhdy+HNto="; pin-sha256="WGJkyYjx1QMdMe0UqlyOKXtydPDVrk7sl2fV+nNm1r4=";
33
+ pin-sha256="LrKdTxZLRTvyHM4/atX2nquX9BeHRZMCxg3cf4rhc2I="; max-age=864000
34
+ X-Frame-Options:
35
+ - deny
36
+ X-Xss-Protection:
37
+ - 1; mode=block
38
+ X-Request-Id:
39
+ - 6ee850c72ab80883
40
+ Cf-Cache-Status:
41
+ - DYNAMIC
42
+ Expect-Ct:
43
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
44
+ Server:
45
+ - cloudflare
46
+ Cf-Ray:
47
+ - 6ee850c72ab80883-CDG
48
+ Alt-Svc:
49
+ - h3=":443"; ma=86400, h3-29=":443"; ma=86400
29
50
  body:
30
51
  encoding: UTF-8
31
52
  string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\">\n<env:Body>\n<m:feedvalidationresponse
32
53
  env:encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" xmlns:m=\"http://www.w3.org/2005/10/feed-validator\">\n
33
- \ <m:uri></m:uri> \n <m:checkedby>http://validator.w3.org/feed/check.cgi</m:checkedby>\n
34
- \ <m:date>2016-10-30T19:25:00.462764</m:date>\n <m:validity>false</m:validity>\n
54
+ \ <m:uri></m:uri> \n <m:checkedby>http://validator.w3.org/check.cgi</m:checkedby>\n
55
+ \ <m:date>2022-03-19T18:36:47.067732</m:date>\n <m:validity>false</m:validity>\n
35
56
  \ <m:errors>\n <m:errorcount>1</m:errorcount>\n <m:errorlist><error>\n
36
57
  \ <level>error</level>\n <type>MissingElement</type>\n <line>10</line>\n
37
58
  \ <column>1</column>\n <text>Missing author element: name</text>\n <msgcount>1</msgcount>\n
@@ -44,6 +65,5 @@ http_interactions:
44
65
  \ <parent>feed</parent>\n</warning>\n</m:warninglist>\n </m:warnings>\n
45
66
  \ <m:informations>\n\t<m:infocount>0</m:infocount>\n\t<m:infolist></m:infolist>\n
46
67
  \ </m:informations>\n</m:feedvalidationresponse>\n</env:Body>\n</env:Envelope>\n\n"
47
- http_version:
48
- recorded_at: Sun, 30 Oct 2016 19:24:59 GMT
49
- recorded_with: VCR 3.0.3
68
+ recorded_at: Sat, 19 Mar 2022 18:36:47 GMT
69
+ recorded_with: VCR 6.1.0
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://validator.w3.org/feed/check.cgi?output=soap12&url=https://w3c-validators.github.io/w3c_validators/invalid_feed.xml
5
+ uri: https://validator.w3.org/feed/check.cgi?output=soap12&url=https://w3c-validators.github.io/w3c_validators/invalid_feed.xml
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -19,32 +19,51 @@ http_interactions:
19
19
  message: OK
20
20
  headers:
21
21
  Date:
22
- - Sun, 18 Dec 2016 11:11:13 GMT
23
- Server:
24
- - Apache/2.4.10 (Debian)
25
- Transfer-Encoding:
26
- - chunked
22
+ - Sat, 19 Mar 2022 18:36:48 GMT
27
23
  Content-Type:
28
24
  - application/soap+xml; charset=UTF-8
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Connection:
28
+ - keep-alive
29
+ Strict-Transport-Security:
30
+ - max-age=15552015; preload
31
+ Public-Key-Pins:
32
+ - pin-sha256="cN0QSpPIkuwpT6iP2YjEo1bEwGpH/yiUn6yhdy+HNto="; pin-sha256="WGJkyYjx1QMdMe0UqlyOKXtydPDVrk7sl2fV+nNm1r4=";
33
+ pin-sha256="LrKdTxZLRTvyHM4/atX2nquX9BeHRZMCxg3cf4rhc2I="; max-age=864000
34
+ X-Frame-Options:
35
+ - deny
36
+ X-Xss-Protection:
37
+ - 1; mode=block
38
+ X-Request-Id:
39
+ - 6ee850d16fe83aab
40
+ Cf-Cache-Status:
41
+ - DYNAMIC
42
+ Expect-Ct:
43
+ - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
44
+ Server:
45
+ - cloudflare
46
+ Cf-Ray:
47
+ - 6ee850d16fe83aab-CDG
48
+ Alt-Svc:
49
+ - h3=":443"; ma=86400, h3-29=":443"; ma=86400
29
50
  body:
30
51
  encoding: UTF-8
31
52
  string: "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\">\n<env:Body>\n<m:feedvalidationresponse
32
53
  env:encodingStyle=\"http://www.w3.org/2003/05/soap-encoding\" xmlns:m=\"http://www.w3.org/2005/10/feed-validator\">\n
33
54
  \ <m:uri>https://w3c-validators.github.io/w3c_validators/invalid_feed.xml</m:uri>
34
- \n <m:checkedby>http://validator.w3.org/feed/check.cgi</m:checkedby>\n
35
- \ <m:date>2016-12-18T11:11:13.670365</m:date>\n <m:validity>false</m:validity>\n
36
- \ <m:errors>\n <m:errorcount>1</m:errorcount>\n <m:errorlist><error>\n
37
- \ <level>error</level>\n <type>MissingElement</type>\n <line>10</line>\n
38
- \ <column>1</column>\n <text>Missing author element: name</text>\n <msgcount>1</msgcount>\n
39
- \ <backupcolumn>1</backupcolumn>\n <backupline>10</backupline>\n <element>name</element>\n
40
- \ <parent>author</parent>\n</error>\n</m:errorlist>\n </m:errors>\n <m:warnings>\n
41
- \ <m:warningcount>1</m:warningcount>\n\t<m:warninglist><warning>\n <level>warning</level>\n
42
- \ <type>SelfDoesntMatchLocation</type>\n <line>5</line>\n <column>51</column>\n
43
- \ <text>Self reference doesn&apos;t match document location</text>\n <msgcount>1</msgcount>\n
44
- \ <backupcolumn>51</backupcolumn>\n <backupline>5</backupline>\n <element>href</element>\n
45
- \ <parent>feed</parent>\n</warning>\n</m:warninglist>\n </m:warnings>\n
46
- \ <m:informations>\n\t<m:infocount>0</m:infocount>\n\t<m:infolist></m:infolist>\n
55
+ \n <m:checkedby>http://validator.w3.org/check.cgi</m:checkedby>\n <m:date>2022-03-19T18:36:48.810538</m:date>\n
56
+ \ <m:validity>false</m:validity>\n <m:errors>\n <m:errorcount>1</m:errorcount>\n
57
+ \ <m:errorlist><error>\n <level>error</level>\n <type>MissingElement</type>\n
58
+ \ <line>10</line>\n <column>1</column>\n <text>Missing author element: name</text>\n
59
+ \ <msgcount>1</msgcount>\n <backupcolumn>1</backupcolumn>\n <backupline>10</backupline>\n
60
+ \ <element>name</element>\n <parent>author</parent>\n</error>\n</m:errorlist>\n
61
+ \ </m:errors>\n <m:warnings>\n <m:warningcount>1</m:warningcount>\n\t<m:warninglist><warning>\n
62
+ \ <level>warning</level>\n <type>SelfDoesntMatchLocation</type>\n <line>5</line>\n
63
+ \ <column>51</column>\n <text>Self reference doesn&apos;t match document
64
+ location</text>\n <msgcount>1</msgcount>\n <backupcolumn>51</backupcolumn>\n
65
+ \ <backupline>5</backupline>\n <element>href</element>\n <parent>feed</parent>\n</warning>\n</m:warninglist>\n
66
+ \ </m:warnings>\n <m:informations>\n\t<m:infocount>0</m:infocount>\n\t<m:infolist></m:infolist>\n
47
67
  \ </m:informations>\n</m:feedvalidationresponse>\n</env:Body>\n</env:Envelope>\n\n"
48
- http_version:
49
- recorded_at: Sun, 18 Dec 2016 11:11:13 GMT
50
- recorded_with: VCR 3.0.3
68
+ recorded_at: Sat, 19 Mar 2022 18:36:48 GMT
69
+ recorded_with: VCR 6.1.0
@@ -12,13 +12,15 @@ Gem::Specification.new do |gem|
12
12
  gem.require_paths = ["lib"]
13
13
  gem.version = W3CValidators::VERSION
14
14
 
15
- gem.required_ruby_version = '~>2.0'
15
+ gem.required_ruby_version = '>= 2.0'
16
16
 
17
17
  gem.add_dependency 'nokogiri', '~> 1.6'
18
18
  gem.add_dependency 'json', '>= 1.8'
19
+ gem.add_dependency 'rexml', '~> 3.2'
19
20
 
20
21
  gem.add_development_dependency 'rake'
21
22
  gem.add_development_dependency 'vcr'
22
23
  gem.add_development_dependency 'webmock'
23
24
  gem.add_development_dependency 'test-unit'
25
+ gem.add_development_dependency 'webrick'
24
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: w3c_validators
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Dunae
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-13 00:00:00.000000000 Z
11
+ date: 2022-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.8'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rexml
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.2'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.2'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rake
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +108,20 @@ dependencies:
94
108
  - - ">="
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webrick
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
97
125
  description:
98
126
  email:
99
127
  executables: []
@@ -101,7 +129,6 @@ extensions: []
101
129
  extra_rdoc_files: []
102
130
  files:
103
131
  - ".gitignore"
104
- - ".travis.yml"
105
132
  - CHANGELOG
106
133
  - Gemfile
107
134
  - LICENSE
@@ -179,7 +206,7 @@ require_paths:
179
206
  - lib
180
207
  required_ruby_version: !ruby/object:Gem::Requirement
181
208
  requirements:
182
- - - "~>"
209
+ - - ">="
183
210
  - !ruby/object:Gem::Version
184
211
  version: '2.0'
185
212
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -188,8 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
215
  - !ruby/object:Gem::Version
189
216
  version: '0'
190
217
  requirements: []
191
- rubyforge_project:
192
- rubygems_version: 2.7.7
218
+ rubygems_version: 3.3.7
193
219
  signing_key:
194
220
  specification_version: 4
195
221
  summary: A Ruby wrapper for the World Wide Web Consortium’s online validation services.
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.5.1
4
- - 2.4.4
5
- - 2.3.7
6
- - 2.2.10
7
- - 2.1.10
8
-