ruby-getoptions 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/lib/ruby-getoptions.rb +1 -2
- metadata +22 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 191c3698f4c3883666210421afcdfbe7a6e2c904
|
4
|
+
data.tar.gz: 4d5d296ebdc4f9dfb9012580b3c8220b5196a807
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0a7bef2c3518bd10edf510b753156996871fe039bd89886a99843095e49994640718a87dec13b528b569556f632b44a18336d55184f1dc87dd957a766a214734
|
7
|
+
data.tar.gz: 9efb629675196d862332a45d0fe589f56064eb8e554892d54b92e4771ce2ad2c013f384ddaf2968a391acc4864cbd967f7ef23209d765ee0c9c9d0a1c6443dd9
|
data/lib/ruby-getoptions.rb
CHANGED
@@ -125,11 +125,10 @@ private
|
|
125
125
|
end
|
126
126
|
|
127
127
|
def self.fail_on_duplicate_definitions(definition_list)
|
128
|
-
definition_list.map!{ |x| x.downcase }
|
129
128
|
unless definition_list.uniq.length == definition_list.length
|
130
129
|
duplicate_elements = definition_list.find { |e| definition_list.count(e) > 1 }
|
131
130
|
fail ArgumentError,
|
132
|
-
|
131
|
+
"GetOptions option_map requires unique options. Duplicates found: '#{duplicate_elements}'"
|
133
132
|
end
|
134
133
|
true
|
135
134
|
end
|
metadata
CHANGED
@@ -1,52 +1,45 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-getoptions
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
|
-
authors:
|
6
|
+
authors:
|
7
7
|
- David Gamba
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
|
12
|
-
date: 2015-06-27 00:00:00 Z
|
11
|
+
date: 2016-09-21 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
|
-
|
15
|
-
description: The best looking option parser out there
|
13
|
+
description: Ruby option parser based on Perl’s Getopt::Long
|
16
14
|
email: davidgamba@gmail.com
|
17
15
|
executables: []
|
18
|
-
|
19
16
|
extensions: []
|
20
|
-
|
21
17
|
extra_rdoc_files: []
|
22
|
-
|
23
|
-
files:
|
18
|
+
files:
|
24
19
|
- lib/ruby-getoptions.rb
|
25
20
|
homepage: https://github.com/DavidGamba/ruby-getoptions
|
26
|
-
licenses:
|
21
|
+
licenses:
|
27
22
|
- MIT
|
28
23
|
metadata: {}
|
29
|
-
|
30
24
|
post_install_message:
|
31
25
|
rdoc_options: []
|
32
|
-
|
33
|
-
require_paths:
|
26
|
+
require_paths:
|
34
27
|
- lib
|
35
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
-
requirements:
|
37
|
-
-
|
38
|
-
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
44
38
|
requirements: []
|
45
|
-
|
46
39
|
rubyforge_project:
|
47
|
-
rubygems_version: 2.
|
40
|
+
rubygems_version: 2.5.1
|
48
41
|
signing_key:
|
49
42
|
specification_version: 4
|
50
|
-
summary:
|
43
|
+
summary: Ruby option parser based on Perl’s Getopt::Long
|
51
44
|
test_files: []
|
52
|
-
|
45
|
+
has_rdoc:
|