cri 2.11.0 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/NEWS.md +6 -0
- data/README.md +27 -0
- data/lib/cri.rb +3 -0
- data/lib/cri/argument_list.rb +73 -0
- data/lib/cri/command.rb +24 -11
- data/lib/cri/command_dsl.rb +18 -25
- data/lib/cri/help_renderer.rb +24 -24
- data/lib/cri/option_definition.rb +54 -0
- data/lib/cri/option_parser.rb +45 -63
- data/lib/cri/param_definition.rb +12 -0
- data/lib/cri/version.rb +1 -1
- data/test/test_argument_list.rb +79 -0
- data/test/test_command.rb +19 -2
- data/test/test_command_dsl.rb +32 -4
- data/test/test_option_parser.rb +257 -175
- metadata +6 -2
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Defreyne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colored
|
@@ -57,17 +57,21 @@ files:
|
|
57
57
|
- Rakefile
|
58
58
|
- cri.gemspec
|
59
59
|
- lib/cri.rb
|
60
|
+
- lib/cri/argument_list.rb
|
60
61
|
- lib/cri/command.rb
|
61
62
|
- lib/cri/command_dsl.rb
|
62
63
|
- lib/cri/command_runner.rb
|
63
64
|
- lib/cri/commands/basic_help.rb
|
64
65
|
- lib/cri/commands/basic_root.rb
|
65
66
|
- lib/cri/help_renderer.rb
|
67
|
+
- lib/cri/option_definition.rb
|
66
68
|
- lib/cri/option_parser.rb
|
69
|
+
- lib/cri/param_definition.rb
|
67
70
|
- lib/cri/platform.rb
|
68
71
|
- lib/cri/string_formatter.rb
|
69
72
|
- lib/cri/version.rb
|
70
73
|
- test/helper.rb
|
74
|
+
- test/test_argument_list.rb
|
71
75
|
- test/test_base.rb
|
72
76
|
- test/test_basic_help.rb
|
73
77
|
- test/test_basic_root.rb
|