como 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +12 -0
- data/README.rdoc +11 -5
- data/Rakefile +6 -1
- data/doc/Como/ArgsParseState.html +912 -0
- data/doc/Como/ComoCommon.html +305 -0
- data/doc/Como/MainOpt.html +636 -0
- data/doc/Como/MasterOpt.html +636 -0
- data/doc/Como/Opt/ErrorWithData.html +304 -0
- data/doc/Como/Opt/InvalidOption.html +158 -0
- data/doc/Como/Opt/MissingArgument.html +158 -0
- data/doc/Como/Opt.html +6098 -0
- data/doc/Como/RuleCheck.html +933 -0
- data/doc/Como/RuleDisplay.html +1193 -0
- data/doc/Como/Spec.html +1750 -0
- data/doc/Como.html +625 -0
- data/doc/_index.html +242 -0
- data/doc/class_list.html +53 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +338 -0
- data/doc/file.CHANGELOG.html +90 -0
- data/doc/file.README.html +94 -0
- data/doc/file.como.html +1962 -0
- data/doc/file_list.html +58 -0
- data/doc/frames.html +28 -0
- data/doc/index.html +94 -0
- data/doc/js/app.js +214 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +838 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/como.rb +1660 -661
- data/test/como_compatible +37 -0
- data/test/como_config +44 -0
- data/test/como_options +36 -0
- data/test/como_queries +44 -0
- data/test/como_rule_1 +28 -0
- data/test/como_rule_2 +28 -0
- data/test/como_subcmd +72 -0
- data/test/como_subcmd_config +88 -0
- data/test/golden/compatible.txt +438 -0
- data/test/golden/config.txt +319 -0
- data/test/golden/options.txt +438 -0
- data/test/golden/queries.txt +78 -0
- data/test/golden/rule_1.txt +454 -0
- data/test/golden/rule_2.txt +476 -0
- data/test/golden/subcmd.txt +360 -0
- data/test/golden/subcmd_config.txt +534 -0
- data/test/test_como.rb +22 -328
- data/test/test_compatible +28 -0
- data/test/test_config +12 -0
- data/test/test_options +28 -0
- data/test/test_queries +7 -0
- data/test/test_rule_1 +27 -0
- data/test/test_rule_2 +27 -0
- data/test/test_subcmd +30 -0
- data/test/test_subcmd_config +31 -0
- metadata +62 -6
data/CHANGELOG.rdoc
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
= Version history
|
2
|
+
|
3
|
+
[0.1.0] Subcommand feature added along with major refactoring in
|
4
|
+
class' content. Many small changes to usage model, but
|
5
|
+
backwards compatible.
|
6
|
+
|
7
|
+
[0.0.3] Self-value operator "~" added. Parser for options including
|
8
|
+
parameter settings, i.e. the Opt#params method added.
|
9
|
+
|
10
|
+
[0.0.2] Opt#given is allowed an optinal block argument.
|
11
|
+
|
12
|
+
[0.0.1] Initial version.
|
data/README.rdoc
CHANGED
@@ -5,11 +5,17 @@
|
|
5
5
|
Como provides low manifest command line option parsing and
|
6
6
|
deployment. The command line options are described in compact table
|
7
7
|
format and option values are stored to conveniently named
|
8
|
-
properties. Como
|
9
|
-
|
10
|
-
|
8
|
+
properties. Como builds command usage information based on the option
|
9
|
+
table (+ generic program info) and displays it automatically if
|
10
|
+
necessary. Como supports also subcommands and checking for option
|
11
|
+
combinations using a simple DSL.
|
11
12
|
|
12
13
|
== Documentation
|
13
14
|
|
14
|
-
Main documentation is generated from Como source
|
15
|
-
directory) can be used as
|
15
|
+
Main documentation is generated from Como source (See:
|
16
|
+
doc/Como.html). Test files (in "test" directory) can be used as
|
17
|
+
examples on how the features are used.
|
18
|
+
|
19
|
+
== Changes
|
20
|
+
|
21
|
+
See CHANGELOG.rdoc.
|
data/Rakefile
CHANGED
@@ -2,6 +2,7 @@ require 'rake/testtask'
|
|
2
2
|
|
3
3
|
Rake::TestTask.new do |t|
|
4
4
|
t.libs << 'test'
|
5
|
+
t.libs << 'lib'
|
5
6
|
end
|
6
7
|
|
7
8
|
desc "Run tests"
|
@@ -11,10 +12,14 @@ task :cleanup_test do
|
|
11
12
|
sh "rm -rf test/test"
|
12
13
|
end
|
13
14
|
|
14
|
-
task :build do
|
15
|
+
task :build => :doc do
|
15
16
|
sh "gem build como.gemspec"
|
16
17
|
end
|
17
18
|
|
19
|
+
task :doc do
|
20
|
+
sh "yardoc lib/* - README.rdoc CHANGELOG.rdoc"
|
21
|
+
end
|
22
|
+
|
18
23
|
task :publish do
|
19
24
|
if Dir.glob('como-*gem').length == 1
|
20
25
|
sh "gem push como*.gem"
|