html-proofer 5.2.2 → 5.2.3
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/lib/html_proofer/configuration.rb +6 -1
- data/lib/html_proofer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 790a2d85799d1eabf612baaa435540d67a449ade2af656c22fc58d813d081b5e
|
|
4
|
+
data.tar.gz: 127c4cd687755bd7c127e026f9b613ae7b1a7c718eb02787fe9cffa71f414c74
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 355f909f5fc9f857d12420373d0a9cd6bddfa9d8c7afc929057dd9202d7919c4b481e4361bb14d2417d7da8f202a50f4b5052db95b038fe827848991bbec0996
|
|
7
|
+
data.tar.gz: c3e69468b15a43e1ff7e910d1a5c57435a91e9ecb1e59a47ad9fa79ab2e4609977481e20feccc7ad6bbd6f5d88dd4fd88fceca1b2b55862aad401d28857b7506
|
|
@@ -281,7 +281,12 @@ module HTMLProofer
|
|
|
281
281
|
return {} if config.strip.empty?
|
|
282
282
|
|
|
283
283
|
begin
|
|
284
|
-
JSON.
|
|
284
|
+
# JSON 3 takes keywords. JSON 2 still takes a positional Hash.
|
|
285
|
+
if Gem::Version.new(JSON::VERSION) >= Gem::Version.new("3")
|
|
286
|
+
JSON.parse(config, symbolize_names: symbolize_names)
|
|
287
|
+
else
|
|
288
|
+
JSON.parse(config, { symbolize_names: symbolize_names })
|
|
289
|
+
end
|
|
285
290
|
rescue StandardError
|
|
286
291
|
raise ArgumentError, "Option '#{option_name} did not contain valid JSON."
|
|
287
292
|
end
|
data/lib/html_proofer/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: html-proofer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.2.
|
|
4
|
+
version: 5.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Garen Torikian
|
|
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
192
192
|
- !ruby/object:Gem::Version
|
|
193
193
|
version: '0'
|
|
194
194
|
requirements: []
|
|
195
|
-
rubygems_version: 4.0.
|
|
195
|
+
rubygems_version: 4.0.20
|
|
196
196
|
specification_version: 4
|
|
197
197
|
summary: A set of tests to validate your HTML output. These tests check if your image
|
|
198
198
|
references are legitimate, if they have alt tags, if your internal links are working,
|