html-proofer 3.19.0 → 3.19.1

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: 9554ba6e2a558aa2c50d217cc3996fb877ce4454709bbc7ed958fbb8429b9202
4
- data.tar.gz: 33fcc756e9a84dccc46aba14ab93be1d41ccc3fcc78b082eeb326232cc3523d0
3
+ metadata.gz: 2e18991c07a3b31ae78293fc8dc2a9392211f8609ed494ed5cad87158747cde2
4
+ data.tar.gz: d9551668e860b1055a640be9ba597cb9fca8822849a7b000d251086e8eadb023
5
5
  SHA512:
6
- metadata.gz: dc1167a2a4f3216ad005f241184e9178bfbfc3961cf3cd4beec0bf5f01bd7c7977f56c5c7b443ae70b50da83698bed01c99cf30140182ce0b064d167a526c8b5
7
- data.tar.gz: 922bc03fc6116744461f22b5a8376a977dca59e1c141f6ef26e7b73374a9c691207d99a71a0abb82871b4ba0276073c8767356395ad0942b6632238d54ec92cf
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: true })
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HTMLProofer
4
- VERSION = '3.19.0'
4
+ VERSION = '3.19.1'
5
5
  end
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.0
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 00:00:00.000000000 Z
11
+ date: 2021-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable