opt_parse_validator 1.9.2 → 1.9.3

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: c43f0910f92116c9ca579acf742f97a5332dbc3cdca9e1eb03b849d639fbece8
4
- data.tar.gz: '09e75a1d637a901c41c31061e38c1fb98d62e0032f8acab291e123a1e140f426'
3
+ metadata.gz: c53dffe78ba9cd4449e9eb13eadd1c322bed9e9bb49576436cafc38850662de5
4
+ data.tar.gz: db5ffda29561522244c2b85408581356f987d982304e193e3befe71b4c6d9085
5
5
  SHA512:
6
- metadata.gz: '019c6bd0baa66f1b60fdd11a21151aa0caa2cbb09f10e5dc1811d7e0d59d953f75bc17feca7ffef543a6bf933a8234a21c076576d3ac050404ac4ee58fef1203'
7
- data.tar.gz: 5bf3da88e65c5ffece6b31e41d527186aba8de7596d288a9093ec0e41a07d4832052bd534469b259bbc1e9d9d231e790ef333692e13a18add70b54be0c3a19d6
6
+ metadata.gz: e9318bb95835631324f8d95f6a179d771699faf6542d38b725ebb0a500fa9dec7f4047139b0e91144106981b40fc212a51b513a596665799745c2718a6fa8ced
7
+ data.tar.gz: b66fca4ecda2254ae42f8fec9d5875a0cdcaa2639bc58331998477872ec0768f516f8837c9e12f0796c1bec2e0e8d309182cde0b714c20347b519ff76249f97a
@@ -109,7 +109,7 @@ module OptParseValidator
109
109
  def register_callback(opt)
110
110
  on(*opt.option) do |arg|
111
111
  if opt.alias?
112
- parse!(opt.alias_for.split(' '))
112
+ parse!(opt.alias_for.split)
113
113
  else
114
114
  @results[opt.to_sym] = opt.normalize(opt.validate(arg))
115
115
  end
@@ -51,7 +51,7 @@ module OptParseValidator
51
51
 
52
52
  each { |config_file| result.deep_merge!(config_file.parse) }
53
53
 
54
- result = result.dig(result_key) || {} if result_key
54
+ result = result[result_key] || {} if result_key
55
55
 
56
56
  result.deep_symbolize_keys
57
57
  end
@@ -8,10 +8,12 @@ class OptionParser
8
8
  class << self
9
9
  alias original_candidate candidate
10
10
 
11
+ # rubocop:disable Style/OptionalBooleanParameter
11
12
  def candidate(key, icase = false, pat = nil, &block)
12
13
  # Maybe also do this for -v/--version ?
13
14
  key == 'h' ? original_candidate('help', icase, pat, &block) : []
14
15
  end
16
+ # rubocop:enable Style/OptionalBooleanParameter
15
17
  end
16
18
  end
17
19
  end
@@ -5,5 +5,5 @@
5
5
  path file_path directory_path array integer_range multi_choices regexp headers
6
6
  smart_list alias
7
7
  ].each do |opt|
8
- require 'opt_parse_validator/opts/' + opt
8
+ require "opt_parse_validator/opts/#{opt}"
9
9
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Gem Version
4
4
  module OptParseValidator
5
- VERSION = '1.9.2'
5
+ VERSION = '1.9.3'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opt_parse_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.2
4
+ version: 1.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - WPScanTeam
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-24 00:00:00.000000000 Z
11
+ date: 2021-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 6.1.0
22
+ version: 6.2.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '5.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 6.1.0
32
+ version: 6.2.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: addressable
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -84,14 +84,14 @@ dependencies:
84
84
  requirements:
85
85
  - - "~>"
86
86
  - !ruby/object:Gem::Version
87
- version: 3.9.0
87
+ version: 3.10.0
88
88
  type: :development
89
89
  prerelease: false
90
90
  version_requirements: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
- version: 3.9.0
94
+ version: 3.10.0
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: rspec-its
97
97
  requirement: !ruby/object:Gem::Requirement
@@ -112,42 +112,42 @@ dependencies:
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: 0.88.0
115
+ version: 1.7.0
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: 0.88.0
122
+ version: 1.7.0
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: rubocop-performance
125
125
  requirement: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - "~>"
128
128
  - !ruby/object:Gem::Version
129
- version: 1.7.0
129
+ version: 1.9.0
130
130
  type: :development
131
131
  prerelease: false
132
132
  version_requirements: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - "~>"
135
135
  - !ruby/object:Gem::Version
136
- version: 1.7.0
136
+ version: 1.9.0
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: simplecov
139
139
  requirement: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - - "~>"
142
142
  - !ruby/object:Gem::Version
143
- version: 0.18.2
143
+ version: 0.21.0
144
144
  type: :development
145
145
  prerelease: false
146
146
  version_requirements: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - "~>"
149
149
  - !ruby/object:Gem::Version
150
- version: 0.18.2
150
+ version: 0.21.0
151
151
  - !ruby/object:Gem::Dependency
152
152
  name: simplecov-lcov
153
153
  requirement: !ruby/object:Gem::Requirement