html-proofer 3.19.0 → 3.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/htmlproofer +2 -2
- data/lib/html-proofer/configuration.rb +2 -2
- 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: 2e18991c07a3b31ae78293fc8dc2a9392211f8609ed494ed5cad87158747cde2
|
4
|
+
data.tar.gz: d9551668e860b1055a640be9ba597cb9fca8822849a7b000d251086e8eadb023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e9187bcd157c8c69cb8dc7f47e9ef6908e7ccb06b56fd2fd241e8c3cbb245874a9776e5405c9aa5328a01e7038880f173d205efb2c925c7c5787e3c46d3389d
|
7
|
+
data.tar.gz: 76afe0c48983344c1ebfb86075458d71b05163fb051ff0fbcbfa2104b324d520bbf7213ff262ec437d3ddeb6265d4454056d66a50d4c68ab02a3c6626a9633e0
|
data/bin/htmlproofer
CHANGED
@@ -88,8 +88,8 @@ Mercenary.program(:htmlproofer) do |p|
|
|
88
88
|
options[:validation][:report_eof_tags] = opts['report_eof_tags'] unless opts['report_eof_tags'].nil?
|
89
89
|
options[:validation][:report_mismatched_tags] = opts['report_mismatched_tags'] unless opts['report_mismatched_tags'].nil?
|
90
90
|
|
91
|
-
options[:typhoeus] = HTMLProofer::Configuration.parse_json_option('typhoeus_config', opts['typhoeus_config']) unless opts['typhoeus_config'].nil?
|
92
|
-
options[:hydra] = HTMLProofer::Configuration.parse_json_option('hydra_config', opts['hydra_config']) unless opts['hydra_config'].nil?
|
91
|
+
options[:typhoeus] = HTMLProofer::Configuration.parse_json_option('typhoeus_config', opts['typhoeus_config'], symbolize_names: false) unless opts['typhoeus_config'].nil?
|
92
|
+
options[:hydra] = HTMLProofer::Configuration.parse_json_option('hydra_config', opts['hydra_config'], symbolize_names: false) unless opts['hydra_config'].nil?
|
93
93
|
|
94
94
|
unless opts['timeframe'].nil?
|
95
95
|
options[:cache] ||= {}
|
@@ -67,7 +67,7 @@ module HTMLProofer
|
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
|
-
def self.parse_json_option(option_name, config)
|
70
|
+
def self.parse_json_option(option_name, config, symbolize_names: true)
|
71
71
|
raise ArgumentError, 'Must provide an option name in string format.' unless option_name.is_a?(String)
|
72
72
|
raise ArgumentError, 'Must provide an option name in string format.' if option_name.strip.empty?
|
73
73
|
|
@@ -78,7 +78,7 @@ module HTMLProofer
|
|
78
78
|
return {} if config.strip.empty?
|
79
79
|
|
80
80
|
begin
|
81
|
-
JSON.parse(config, { symbolize_names:
|
81
|
+
JSON.parse(config, { symbolize_names: symbolize_names })
|
82
82
|
rescue StandardError
|
83
83
|
raise ArgumentError, "Option '#{option_name} did not contain valid JSON."
|
84
84
|
end
|
data/lib/html-proofer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html-proofer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.19.
|
4
|
+
version: 3.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|