w3c_validators 1.3.5 → 1.3.6
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 +4 -4
- data/.travis.yml +5 -3
- data/CHANGELOG +3 -0
- data/README.md +30 -0
- data/lib/w3c_validators/version.rb +1 -1
- data/w3c_validators.gemspec +2 -1
- metadata +18 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93c24630d8eff576b83949a26d71d048d5a126bc17829576c3fbe00f7715239f
|
4
|
+
data.tar.gz: 25513e9917618bdc76488ffe559a5366c2ebe87f465d53babedcac4467fe4d81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60350bd80921cabf33d2b7407b89c9f42cf141df15089549f4a7d088a78be6fbf6393506c4ca0d65b497558eb41c3e93407d130430b493834853244386b55b05
|
7
|
+
data.tar.gz: 6a135e36f46733b84ccfae834a7e1c4ac69734bc69735ff9ee81ac2af72225df823651e05655d6836993afc48ab42377f5f91c3c0357b186795dc777e4dd5c8a
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
@@ -73,3 +73,6 @@
|
|
73
73
|
* fix bad indentation of rescue in validators classes
|
74
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
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
|
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
|
data/w3c_validators.gemspec
CHANGED
@@ -12,10 +12,11 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.require_paths = ["lib"]
|
13
13
|
gem.version = W3CValidators::VERSION
|
14
14
|
|
15
|
-
gem.required_ruby_version = '
|
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'
|
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
|
+
version: 1.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Dunae
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-20 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
|
@@ -179,7 +193,7 @@ require_paths:
|
|
179
193
|
- lib
|
180
194
|
required_ruby_version: !ruby/object:Gem::Requirement
|
181
195
|
requirements:
|
182
|
-
- - "
|
196
|
+
- - ">="
|
183
197
|
- !ruby/object:Gem::Version
|
184
198
|
version: '2.0'
|
185
199
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -188,8 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
188
202
|
- !ruby/object:Gem::Version
|
189
203
|
version: '0'
|
190
204
|
requirements: []
|
191
|
-
|
192
|
-
rubygems_version: 2.7.6
|
205
|
+
rubygems_version: 3.0.8
|
193
206
|
signing_key:
|
194
207
|
specification_version: 4
|
195
208
|
summary: A Ruby wrapper for the World Wide Web Consortium’s online validation services.
|