como 0.0.2 → 0.1.0

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.
Files changed (58) hide show
  1. data/CHANGELOG.rdoc +12 -0
  2. data/README.rdoc +11 -5
  3. data/Rakefile +6 -1
  4. data/doc/Como/ArgsParseState.html +912 -0
  5. data/doc/Como/ComoCommon.html +305 -0
  6. data/doc/Como/MainOpt.html +636 -0
  7. data/doc/Como/MasterOpt.html +636 -0
  8. data/doc/Como/Opt/ErrorWithData.html +304 -0
  9. data/doc/Como/Opt/InvalidOption.html +158 -0
  10. data/doc/Como/Opt/MissingArgument.html +158 -0
  11. data/doc/Como/Opt.html +6098 -0
  12. data/doc/Como/RuleCheck.html +933 -0
  13. data/doc/Como/RuleDisplay.html +1193 -0
  14. data/doc/Como/Spec.html +1750 -0
  15. data/doc/Como.html +625 -0
  16. data/doc/_index.html +242 -0
  17. data/doc/class_list.html +53 -0
  18. data/doc/css/common.css +1 -0
  19. data/doc/css/full_list.css +57 -0
  20. data/doc/css/style.css +338 -0
  21. data/doc/file.CHANGELOG.html +90 -0
  22. data/doc/file.README.html +94 -0
  23. data/doc/file.como.html +1962 -0
  24. data/doc/file_list.html +58 -0
  25. data/doc/frames.html +28 -0
  26. data/doc/index.html +94 -0
  27. data/doc/js/app.js +214 -0
  28. data/doc/js/full_list.js +178 -0
  29. data/doc/js/jquery.js +4 -0
  30. data/doc/method_list.html +838 -0
  31. data/doc/top-level-namespace.html +112 -0
  32. data/lib/como.rb +1660 -661
  33. data/test/como_compatible +37 -0
  34. data/test/como_config +44 -0
  35. data/test/como_options +36 -0
  36. data/test/como_queries +44 -0
  37. data/test/como_rule_1 +28 -0
  38. data/test/como_rule_2 +28 -0
  39. data/test/como_subcmd +72 -0
  40. data/test/como_subcmd_config +88 -0
  41. data/test/golden/compatible.txt +438 -0
  42. data/test/golden/config.txt +319 -0
  43. data/test/golden/options.txt +438 -0
  44. data/test/golden/queries.txt +78 -0
  45. data/test/golden/rule_1.txt +454 -0
  46. data/test/golden/rule_2.txt +476 -0
  47. data/test/golden/subcmd.txt +360 -0
  48. data/test/golden/subcmd_config.txt +534 -0
  49. data/test/test_como.rb +22 -328
  50. data/test/test_compatible +28 -0
  51. data/test/test_config +12 -0
  52. data/test/test_options +28 -0
  53. data/test/test_queries +7 -0
  54. data/test/test_rule_1 +27 -0
  55. data/test/test_rule_2 +27 -0
  56. data/test/test_subcmd +30 -0
  57. data/test/test_subcmd_config +31 -0
  58. 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 provides the command usage information based on the
9
- option table (plus program info) automatically. Como supports also
10
- checking for option combinations using a simple DSL.
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. Test file (in "test"
15
- directory) can be used as an example on how the features are used.
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"