html-proofer 3.18.8 → 3.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d705eda2b6ad497d076f1dfa565e5c98e0769b9cd83ddee56ab04b8d4ad6722f
4
- data.tar.gz: 74d2ca4e6b65e8f1d1467aef9cae90a4804cb285eecf8a5014e8b77c579ef25b
3
+ metadata.gz: 9554ba6e2a558aa2c50d217cc3996fb877ce4454709bbc7ed958fbb8429b9202
4
+ data.tar.gz: 33fcc756e9a84dccc46aba14ab93be1d41ccc3fcc78b082eeb326232cc3523d0
5
5
  SHA512:
6
- metadata.gz: b51003f4125230780bc0335f72148e7b4c964aba772b16cdcfb5bcad941eea7eb0ce428cd8b0d78ebcf08fe2e049b4850fbd4e85f90e57b56b1b854bfb516408
7
- data.tar.gz: 2bc6deafa255f91f210bdfc0df14c8aac36f16bff90e2402b4a0657a1ed68ad7c60b4717bdceaff4a819764104a05da6c95e049c83cb83d3f518e83a6638d14b
6
+ metadata.gz: dc1167a2a4f3216ad005f241184e9178bfbfc3961cf3cd4beec0bf5f01bd7c7977f56c5c7b443ae70b50da83698bed01c99cf30140182ce0b064d167a526c8b5
7
+ data.tar.gz: 922bc03fc6116744461f22b5a8376a977dca59e1c141f6ef26e7b73374a9c691207d99a71a0abb82871b4ba0276073c8767356395ad0942b6632238d54ec92cf
data/bin/htmlproofer CHANGED
@@ -48,6 +48,7 @@ Mercenary.program(:htmlproofer) do |p|
48
48
  p.option 'storage_dir', '--storage-dir PATH', String, 'Directory where to store the cache log (default: "tmp/.htmlproofer")'
49
49
  p.option 'timeframe', '--timeframe <time>', String, 'A string representing the caching timeframe.'
50
50
  p.option 'typhoeus_config', '--typhoeus-config CONFIG', String, 'JSON-formatted string of Typhoeus config. Will override the html-proofer defaults.'
51
+ p.option 'hydra_config', '--hydra-config CONFIG', String, 'JSON-formatted string of Hydra config. Will override the html-proofer defaults.'
51
52
  p.option 'url_ignore', '--url-ignore link1,[link2,...]', Array, 'A comma-separated list of Strings or RegExps containing URLs that are safe to ignore. It affects all HTML attributes. Note that non-HTTP(S) URIs are always ignored'
52
53
  p.option 'url_swap', '--url-swap re:string,[re:string,...]', Array, 'A comma-separated list containing key-value pairs of `RegExp => String`. It transforms URLs that match `RegExp` into `String` via `gsub`. The escape sequences `\\:` should be used to produce literal `:`s.'
53
54
  p.option 'root_dir', '--root-dir PATH', String, 'The absolute path to the directory serving your html-files.'
@@ -88,6 +89,7 @@ Mercenary.program(:htmlproofer) do |p|
88
89
  options[:validation][:report_mismatched_tags] = opts['report_mismatched_tags'] unless opts['report_mismatched_tags'].nil?
89
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
93
 
92
94
  unless opts['timeframe'].nil?
93
95
  options[:cache] ||= {}
@@ -78,7 +78,7 @@ module HTMLProofer
78
78
  return {} if config.strip.empty?
79
79
 
80
80
  begin
81
- JSON.parse(config)
81
+ JSON.parse(config, { symbolize_names: true })
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.18.8'
4
+ VERSION = '3.19.0'
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.18.8
4
+ version: 3.19.0
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-03-04 00:00:00.000000000 Z
11
+ date: 2021-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable