como 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 -0
- data/CHANGELOG.rdoc +7 -0
- data/doc/Como/ArgsParseState.html +52 -52
- data/doc/Como/ComoCommon.html +128 -33
- data/doc/Como/MainOpt.html +52 -55
- data/doc/Como/Opt/ErrorWithData.html +15 -15
- data/doc/Como/Opt/InvalidOption.html +1 -1
- data/doc/Como/Opt/MissingArgument.html +1 -1
- data/doc/Como/Opt.html +1211 -821
- data/doc/Como/RuleCheck.html +143 -92
- data/doc/Como/RuleDisplay.html +96 -92
- data/doc/Como/Spec.html +636 -273
- data/doc/Como.html +56 -36
- data/doc/_index.html +1 -1
- data/doc/file.CHANGELOG.html +12 -2
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +113 -71
- data/doc/top-level-namespace.html +1 -1
- data/lib/como.rb +217 -102
- data/lib/version.rb +2 -7
- metadata +60 -67
- data/Rakefile +0 -59
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,23 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: como
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Tero Isannainen
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-11-22 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
|
-
description:
|
15
|
-
The command line options are described in compact table format and option values
|
16
|
-
|
17
|
-
based on the option
|
18
|
-
|
19
|
-
table (+ generic program info) and displays it automatically if necessary. Como
|
20
|
-
supports also subcommands and checking for option combinations using a simple DSL.'
|
13
|
+
description: |-
|
14
|
+
Como provides low manifest command line option parsing and deployment. The command line options are described in compact table format and option values are stored to conveniently named properties. Como builds command usage information based on the option
|
15
|
+
table (+ generic program info) and displays it automatically if necessary. Como supports also subcommands and checking for option combinations using a simple DSL.
|
21
16
|
email: tero.isannainen@gmail.com
|
22
17
|
executables: []
|
23
18
|
extensions: []
|
@@ -25,94 +20,92 @@ extra_rdoc_files:
|
|
25
20
|
- README.rdoc
|
26
21
|
- CHANGELOG.rdoc
|
27
22
|
files:
|
28
|
-
- README.rdoc
|
29
23
|
- CHANGELOG.rdoc
|
30
24
|
- LICENSE
|
31
|
-
-
|
32
|
-
- lib/como.rb
|
33
|
-
- lib/version.rb
|
34
|
-
- test/test_subcmd
|
35
|
-
- test/como_subcmd_rule
|
36
|
-
- test/test_como.rb
|
37
|
-
- test/como_rule_2
|
38
|
-
- test/test_config
|
39
|
-
- test/test_rule_1
|
40
|
-
- test/como_config
|
41
|
-
- test/test_subcmd_config
|
42
|
-
- test/test_compatible
|
43
|
-
- test/test_rule_2
|
44
|
-
- test/como_queries
|
45
|
-
- test/como_subcmd
|
46
|
-
- test/test_subcmd_rule
|
47
|
-
- test/test_options
|
48
|
-
- test/como_subcmd_config
|
49
|
-
- test/como_rule_1
|
50
|
-
- test/test_queries
|
51
|
-
- test/como_options
|
52
|
-
- test/como_compatible
|
53
|
-
- test/golden/rule_1.txt
|
54
|
-
- test/golden/queries.txt
|
55
|
-
- test/golden/subcmd_config.txt
|
56
|
-
- test/golden/subcmd_rule.txt
|
57
|
-
- test/golden/subcmd.txt
|
58
|
-
- test/golden/rule_2.txt
|
59
|
-
- test/golden/compatible.txt
|
60
|
-
- test/golden/config.txt
|
61
|
-
- test/golden/options.txt
|
62
|
-
- doc/top-level-namespace.html
|
63
|
-
- doc/js/full_list.js
|
64
|
-
- doc/js/app.js
|
65
|
-
- doc/js/jquery.js
|
66
|
-
- doc/index.html
|
67
|
-
- doc/css/common.css
|
68
|
-
- doc/css/full_list.css
|
69
|
-
- doc/css/style.css
|
25
|
+
- README.rdoc
|
70
26
|
- doc/Como.html
|
71
|
-
- doc/
|
72
|
-
- doc/
|
73
|
-
- doc/file_list.html
|
74
|
-
- doc/class_list.html
|
75
|
-
- doc/file.como.html
|
76
|
-
- doc/_index.html
|
77
|
-
- doc/Como/RuleCheck.html
|
27
|
+
- doc/Como/ArgsParseState.html
|
28
|
+
- doc/Como/ComoCommon.html
|
78
29
|
- doc/Como/MainOpt.html
|
79
30
|
- doc/Como/MasterOpt.html
|
80
|
-
- doc/Como/RuleDisplay.html
|
81
31
|
- doc/Como/Opt.html
|
82
|
-
- doc/Como/ComoCommon.html
|
83
|
-
- doc/Como/Opt/MissingArgument.html
|
84
32
|
- doc/Como/Opt/ErrorWithData.html
|
85
33
|
- doc/Como/Opt/InvalidOption.html
|
86
|
-
- doc/Como/
|
34
|
+
- doc/Como/Opt/MissingArgument.html
|
35
|
+
- doc/Como/RuleCheck.html
|
36
|
+
- doc/Como/RuleDisplay.html
|
87
37
|
- doc/Como/Spec.html
|
38
|
+
- doc/_index.html
|
39
|
+
- doc/class_list.html
|
40
|
+
- doc/css/common.css
|
41
|
+
- doc/css/full_list.css
|
42
|
+
- doc/css/style.css
|
88
43
|
- doc/file.CHANGELOG.html
|
44
|
+
- doc/file.README.html
|
45
|
+
- doc/file.como.html
|
46
|
+
- doc/file_list.html
|
89
47
|
- doc/frames.html
|
48
|
+
- doc/index.html
|
49
|
+
- doc/js/app.js
|
50
|
+
- doc/js/full_list.js
|
51
|
+
- doc/js/jquery.js
|
52
|
+
- doc/method_list.html
|
53
|
+
- doc/top-level-namespace.html
|
90
54
|
- examples/como_simple
|
91
55
|
- examples/como_subcmd
|
56
|
+
- lib/como.rb
|
57
|
+
- lib/version.rb
|
58
|
+
- test/como_compatible
|
59
|
+
- test/como_config
|
60
|
+
- test/como_options
|
61
|
+
- test/como_queries
|
62
|
+
- test/como_rule_1
|
63
|
+
- test/como_rule_2
|
64
|
+
- test/como_subcmd
|
65
|
+
- test/como_subcmd_config
|
66
|
+
- test/como_subcmd_rule
|
67
|
+
- test/golden/compatible.txt
|
68
|
+
- test/golden/config.txt
|
69
|
+
- test/golden/options.txt
|
70
|
+
- test/golden/queries.txt
|
71
|
+
- test/golden/rule_1.txt
|
72
|
+
- test/golden/rule_2.txt
|
73
|
+
- test/golden/subcmd.txt
|
74
|
+
- test/golden/subcmd_config.txt
|
75
|
+
- test/golden/subcmd_rule.txt
|
76
|
+
- test/test_como.rb
|
77
|
+
- test/test_compatible
|
78
|
+
- test/test_config
|
79
|
+
- test/test_options
|
80
|
+
- test/test_queries
|
81
|
+
- test/test_rule_1
|
82
|
+
- test/test_rule_2
|
83
|
+
- test/test_subcmd
|
84
|
+
- test/test_subcmd_config
|
85
|
+
- test/test_subcmd_rule
|
92
86
|
homepage:
|
93
87
|
licenses:
|
94
88
|
- Ruby
|
89
|
+
metadata: {}
|
95
90
|
post_install_message: Check README...
|
96
91
|
rdoc_options: []
|
97
92
|
require_paths:
|
98
93
|
- lib
|
99
94
|
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
-
none: false
|
101
95
|
requirements:
|
102
|
-
- -
|
96
|
+
- - ">="
|
103
97
|
- !ruby/object:Gem::Version
|
104
98
|
version: 1.9.3
|
105
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
|
-
none: false
|
107
100
|
requirements:
|
108
|
-
- -
|
101
|
+
- - ">="
|
109
102
|
- !ruby/object:Gem::Version
|
110
103
|
version: '0'
|
111
104
|
requirements: []
|
112
105
|
rubyforge_project:
|
113
|
-
rubygems_version:
|
106
|
+
rubygems_version: 2.2.2
|
114
107
|
signing_key:
|
115
|
-
specification_version:
|
108
|
+
specification_version: 4
|
116
109
|
summary: Compact command line option parser utility.
|
117
110
|
test_files: []
|
118
111
|
has_rdoc:
|
data/Rakefile
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
require 'rake/testtask'
|
2
|
-
|
3
|
-
Rake::TestTask.new do |t|
|
4
|
-
t.libs << 'test'
|
5
|
-
t.libs << 'lib'
|
6
|
-
end
|
7
|
-
|
8
|
-
desc "Run tests"
|
9
|
-
task :default => :test
|
10
|
-
|
11
|
-
task :cleanup_test do
|
12
|
-
sh "rm -rf test/test"
|
13
|
-
end
|
14
|
-
|
15
|
-
task :build => :doc do
|
16
|
-
sh "gem build como.gemspec"
|
17
|
-
end
|
18
|
-
|
19
|
-
task :doc do
|
20
|
-
sh "yardoc lib/* - README.rdoc CHANGELOG.rdoc"
|
21
|
-
end
|
22
|
-
|
23
|
-
task :publish do
|
24
|
-
if Dir.glob('como-*gem').length == 1
|
25
|
-
sh "gem push como*.gem"
|
26
|
-
else
|
27
|
-
raise "Multiple gems in the directory..."
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
|
32
|
-
# Create como.gemspec with current version and date fields.
|
33
|
-
file 'como.gemspec' => [:version, 'como.rx.gemspec'] do
|
34
|
-
sh "mucgly -i como.rx.gemspec -o como.gemspec"
|
35
|
-
sh "ruvermgr -f .version -i build"
|
36
|
-
# sh "ruvermgr -f .version"
|
37
|
-
end
|
38
|
-
|
39
|
-
|
40
|
-
# Create 'lib/version.rb' file including 'Como.version' method.
|
41
|
-
# :version task is usually executed indirectly by 'como.gemspec'.
|
42
|
-
task :version do
|
43
|
-
version = %x{ruvermgr -f .version -o ruby}.chomp
|
44
|
-
File.open( "lib/version.rb", 'w' ) do |fh|
|
45
|
-
fh.puts "\
|
46
|
-
module Como
|
47
|
-
|
48
|
-
def Como.version
|
49
|
-
ComoCommon::VERSION
|
50
|
-
end
|
51
|
-
|
52
|
-
class ComoCommon
|
53
|
-
VERSION=\"#{version}\"
|
54
|
-
end
|
55
|
-
|
56
|
-
end
|
57
|
-
"
|
58
|
-
end
|
59
|
-
end
|