plain_option_parser 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/plain_option_parser.rb +1 -1
- metadata +27 -12
- data/.gitignore +0 -21
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/plain_option_parser.rb
CHANGED
@@ -5,7 +5,7 @@ class PlainOptionParser
|
|
5
5
|
@commands = []
|
6
6
|
desc "Prints help text for your command"
|
7
7
|
cmd "help" do
|
8
|
-
viable, remaining = commands_for_args(args[1, args.length])
|
8
|
+
viable, remaining = commands_for_args(args[1, args.length] || [])
|
9
9
|
if viable.length == 0
|
10
10
|
no_match
|
11
11
|
else
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plain_option_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 25
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Kyle Maxwell
|
@@ -9,19 +15,23 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date:
|
18
|
+
date: 2011-03-12 00:00:00 -08:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: rspec
|
17
|
-
|
18
|
-
|
19
|
-
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
20
26
|
requirements:
|
21
27
|
- - ">="
|
22
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 0
|
23
32
|
version: "0"
|
24
|
-
|
33
|
+
type: :development
|
34
|
+
version_requirements: *id001
|
25
35
|
description: Parse command-line options in style
|
26
36
|
email: kyle@kylemaxwell.com
|
27
37
|
executables: []
|
@@ -33,7 +43,6 @@ extra_rdoc_files:
|
|
33
43
|
- README.rdoc
|
34
44
|
files:
|
35
45
|
- .document
|
36
|
-
- .gitignore
|
37
46
|
- LICENSE
|
38
47
|
- README.rdoc
|
39
48
|
- Rakefile
|
@@ -46,26 +55,32 @@ homepage: http://github.com/fizx/plain_option_parser
|
|
46
55
|
licenses: []
|
47
56
|
|
48
57
|
post_install_message:
|
49
|
-
rdoc_options:
|
50
|
-
|
58
|
+
rdoc_options: []
|
59
|
+
|
51
60
|
require_paths:
|
52
61
|
- lib
|
53
62
|
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
54
64
|
requirements:
|
55
65
|
- - ">="
|
56
66
|
- !ruby/object:Gem::Version
|
67
|
+
hash: 3
|
68
|
+
segments:
|
69
|
+
- 0
|
57
70
|
version: "0"
|
58
|
-
version:
|
59
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
60
73
|
requirements:
|
61
74
|
- - ">="
|
62
75
|
- !ruby/object:Gem::Version
|
76
|
+
hash: 3
|
77
|
+
segments:
|
78
|
+
- 0
|
63
79
|
version: "0"
|
64
|
-
version:
|
65
80
|
requirements: []
|
66
81
|
|
67
82
|
rubyforge_project:
|
68
|
-
rubygems_version: 1.
|
83
|
+
rubygems_version: 1.5.0
|
69
84
|
signing_key:
|
70
85
|
specification_version: 3
|
71
86
|
summary: a heroku-like option parser
|