subcommand 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +2 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/subcommand.rb +8 -0
- data/subcommand.gemspec +34 -37
- metadata +10 -20
- data/.gitignore +0 -21
data/README.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -6,7 +6,7 @@ begin
|
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
7
|
gem.name = "subcommand"
|
8
8
|
gem.summary = %Q{A tiny wrapper over OptionParser giving simple, elegant subcommand facility}
|
9
|
-
gem.description = %Q{Subcommand and alias facility for command line programs with elegant help printing}
|
9
|
+
gem.description = %Q{Subcommand and alias facility (wrapping OptionParser) for command line programs with elegant help printing}
|
10
10
|
gem.email = "sentinel.1879@gmail.com"
|
11
11
|
gem.homepage = "http://github.com/rkumar/subcommand"
|
12
12
|
gem.authors = ["Rahul Kumar"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.6
|
data/lib/subcommand.rb
CHANGED
@@ -90,6 +90,14 @@ module Subcommands
|
|
90
90
|
yield @global
|
91
91
|
end
|
92
92
|
end
|
93
|
+
|
94
|
+
# Added so applications can print out a bare listing of top level commands
|
95
|
+
# for dynamic custom completion.
|
96
|
+
def list_actions
|
97
|
+
@commands.each_pair do |c, opt| puts c
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
93
101
|
def print_actions
|
94
102
|
cmdtext = "Commands are:"
|
95
103
|
@commands.each_pair do |c, opt|
|
data/subcommand.gemspec
CHANGED
@@ -1,62 +1,59 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{subcommand}
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date = %q{
|
13
|
-
s.description = %q{Subcommand and alias facility for command line programs with elegant help printing}
|
11
|
+
s.authors = [%q{Rahul Kumar}]
|
12
|
+
s.date = %q{2011-10-06}
|
13
|
+
s.description = %q{Subcommand and alias facility (wrapping OptionParser) for command line programs with elegant help printing}
|
14
14
|
s.email = %q{sentinel.1879@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
18
|
-
|
17
|
+
"README.rdoc",
|
18
|
+
"TODO"
|
19
19
|
]
|
20
20
|
s.files = [
|
21
21
|
".document",
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
"tests/test1.rb"
|
22
|
+
"CHANGELOG.rdoc",
|
23
|
+
"LICENSE",
|
24
|
+
"Makefile",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION",
|
28
|
+
"lib/subcommand.rb",
|
29
|
+
"subcommand.gemspec",
|
30
|
+
"tests/Makefile",
|
31
|
+
"tests/README",
|
32
|
+
"tests/aggregate-results.sh",
|
33
|
+
"tests/recreate.sh",
|
34
|
+
"tests/rtest2.sh",
|
35
|
+
"tests/t0001-main.sh",
|
36
|
+
"tests/t0002-subcomm.sh",
|
37
|
+
"tests/t0003-inv_comm.sh",
|
38
|
+
"tests/t0004-subcomm.sh",
|
39
|
+
"tests/t0005-alias_goo.sh",
|
40
|
+
"tests/t0006-goo_opt.sh",
|
41
|
+
"tests/t0007-bar_baz.sh",
|
42
|
+
"tests/t0008-boo_zoo.sh",
|
43
|
+
"tests/test-lib.sh",
|
44
|
+
"tests/test.rb",
|
45
|
+
"tests/test1.rb"
|
47
46
|
]
|
48
47
|
s.homepage = %q{http://github.com/rkumar/subcommand}
|
49
|
-
s.
|
50
|
-
s.require_paths = ["lib"]
|
48
|
+
s.require_paths = [%q{lib}]
|
51
49
|
s.rubyforge_project = %q{subcommand}
|
52
|
-
s.rubygems_version = %q{1.
|
50
|
+
s.rubygems_version = %q{1.8.8}
|
53
51
|
s.summary = %q{A tiny wrapper over OptionParser giving simple, elegant subcommand facility}
|
54
52
|
|
55
53
|
if s.respond_to? :specification_version then
|
56
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
57
54
|
s.specification_version = 3
|
58
55
|
|
59
|
-
if Gem::Version.new(Gem::
|
56
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
60
57
|
s.add_development_dependency(%q<yard>, [">= 0"])
|
61
58
|
else
|
62
59
|
s.add_dependency(%q<yard>, [">= 0"])
|
metadata
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subcommand
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 5
|
9
|
-
version: 1.0.5
|
4
|
+
prerelease:
|
5
|
+
version: 1.0.6
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
8
|
- Rahul Kumar
|
@@ -14,22 +10,20 @@ autorequire:
|
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date:
|
18
|
-
default_executable:
|
13
|
+
date: 2011-10-06 00:00:00 Z
|
19
14
|
dependencies:
|
20
15
|
- !ruby/object:Gem::Dependency
|
21
16
|
name: yard
|
22
17
|
prerelease: false
|
23
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
24
20
|
requirements:
|
25
21
|
- - ">="
|
26
22
|
- !ruby/object:Gem::Version
|
27
|
-
segments:
|
28
|
-
- 0
|
29
23
|
version: "0"
|
30
24
|
type: :development
|
31
25
|
version_requirements: *id001
|
32
|
-
description: Subcommand and alias facility for command line programs with elegant help printing
|
26
|
+
description: Subcommand and alias facility (wrapping OptionParser) for command line programs with elegant help printing
|
33
27
|
email: sentinel.1879@gmail.com
|
34
28
|
executables: []
|
35
29
|
|
@@ -41,7 +35,6 @@ extra_rdoc_files:
|
|
41
35
|
- TODO
|
42
36
|
files:
|
43
37
|
- .document
|
44
|
-
- .gitignore
|
45
38
|
- CHANGELOG.rdoc
|
46
39
|
- LICENSE
|
47
40
|
- Makefile
|
@@ -67,33 +60,30 @@ files:
|
|
67
60
|
- tests/test.rb
|
68
61
|
- tests/test1.rb
|
69
62
|
- TODO
|
70
|
-
has_rdoc: true
|
71
63
|
homepage: http://github.com/rkumar/subcommand
|
72
64
|
licenses: []
|
73
65
|
|
74
66
|
post_install_message:
|
75
|
-
rdoc_options:
|
76
|
-
|
67
|
+
rdoc_options: []
|
68
|
+
|
77
69
|
require_paths:
|
78
70
|
- lib
|
79
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
80
73
|
requirements:
|
81
74
|
- - ">="
|
82
75
|
- !ruby/object:Gem::Version
|
83
|
-
segments:
|
84
|
-
- 0
|
85
76
|
version: "0"
|
86
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
|
+
none: false
|
87
79
|
requirements:
|
88
80
|
- - ">="
|
89
81
|
- !ruby/object:Gem::Version
|
90
|
-
segments:
|
91
|
-
- 0
|
92
82
|
version: "0"
|
93
83
|
requirements: []
|
94
84
|
|
95
85
|
rubyforge_project: subcommand
|
96
|
-
rubygems_version: 1.
|
86
|
+
rubygems_version: 1.8.8
|
97
87
|
signing_key:
|
98
88
|
specification_version: 3
|
99
89
|
summary: A tiny wrapper over OptionParser giving simple, elegant subcommand facility
|