opt_parse_validator 0.0.13.3 → 0.0.13.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opt_parse_validator/opts/choice.rb +4 -2
- data/lib/opt_parse_validator/version.rb +1 -1
- data/opt_parse_validator.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 358cadd16a371cdbcc053c4325b253261f316488
|
4
|
+
data.tar.gz: f8f4cf87df88827ffb125319e00653c0ecf1da26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83c124fde9eebaa49c928cca4cce49c0d1944886f28b2f343b09cbbe2c1fa8622258bc25bfd794ca3e949b6d1ffb5e9a01661834338fab38a5df7feabea0ea56
|
7
|
+
data.tar.gz: 5b50c9090349801aa328ad5680939977b88c926c09399de05717d314f7ff1845d26046fa66a43e3e41e8bb1d67d2296635037e753fdb305b58d2dfa688119eb5
|
@@ -34,8 +34,10 @@ module OptParseValidator
|
|
34
34
|
choices.map!(&:downcase)
|
35
35
|
end
|
36
36
|
|
37
|
-
|
38
|
-
|
37
|
+
unless choices.include?(value)
|
38
|
+
fail Error, "'#{value}' is not a valid choice, expected one " \
|
39
|
+
"of the followings: #{choices.join(',')}"
|
40
|
+
end
|
39
41
|
|
40
42
|
value
|
41
43
|
end
|
data/opt_parse_validator.gemspec
CHANGED
@@ -32,13 +32,13 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
33
33
|
s.require_paths = ['lib']
|
34
34
|
|
35
|
-
s.add_dependency 'addressable', '~> 2.
|
35
|
+
s.add_dependency 'addressable', '~> 2.5.0'
|
36
36
|
s.add_dependency 'activesupport', '~> 5.0.0.0'
|
37
37
|
|
38
38
|
s.add_development_dependency 'rake', '~> 11.3.0'
|
39
39
|
s.add_development_dependency 'rspec', '~> 3.5.0'
|
40
40
|
s.add_development_dependency 'rspec-its', '~> 1.2.0'
|
41
41
|
s.add_development_dependency 'bundler', '~> 1.6'
|
42
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
42
|
+
s.add_development_dependency 'rubocop', '~> 0.45.0'
|
43
43
|
s.add_development_dependency 'simplecov', '~> 0.12.0'
|
44
44
|
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: 0.0.13.
|
4
|
+
version: 0.0.13.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WPScanTeam
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.5.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.5.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.45.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.45.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|