gli 2.19.1 → 2.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +28 -0
- data/.gitignore +1 -3
- data/CONTRIBUTING.md +1 -3
- data/Gemfile +0 -6
- data/README.rdoc +7 -17
- data/Rakefile +22 -38
- data/bin/ci +29 -0
- data/bin/gli +25 -64
- data/bin/rake +29 -0
- data/bin/setup +5 -0
- data/exe/gli +68 -0
- data/gli.gemspec +19 -21
- data/gli.rdoc +2 -2
- data/lib/gli/app_support.rb +3 -1
- data/lib/gli/command_support.rb +2 -6
- data/lib/gli/commands/help_modules/command_help_format.rb +1 -1
- data/lib/gli/commands/help_modules/global_help_format.rb +1 -1
- data/lib/gli/commands/scaffold.rb +9 -93
- data/lib/gli/dsl.rb +5 -0
- data/lib/gli/gli_option_parser.rb +19 -4
- data/lib/gli/options.rb +2 -2
- data/lib/gli/version.rb +1 -1
- data/object-model.dot +29 -0
- data/object-model.png +0 -0
- data/test/apps/todo/Gemfile +1 -1
- data/test/apps/todo/bin/todo +1 -1
- data/test/integration/gli_cli_test.rb +69 -0
- data/test/integration/gli_powered_app_test.rb +52 -0
- data/test/integration/scaffold_test.rb +30 -0
- data/test/integration/test_helper.rb +52 -0
- data/test/{tc_command_finder.rb → unit/command_finder_test.rb} +6 -6
- data/test/{tc_command.rb → unit/command_test.rb} +4 -4
- data/test/unit/compound_command_test.rb +17 -0
- data/test/{tc_doc.rb → unit/doc_test.rb} +38 -51
- data/test/{tc_flag.rb → unit/flag_test.rb} +19 -25
- data/test/{tc_gli.rb → unit/gli_test.rb} +58 -47
- data/test/{tc_help.rb → unit/help_test.rb} +48 -107
- data/test/{init_simplecov.rb → unit/init_simplecov.rb} +0 -0
- data/test/{tc_options.rb → unit/options_test.rb} +4 -4
- data/test/unit/subcommand_parsing_test.rb +263 -0
- data/test/unit/subcommands_test.rb +245 -0
- data/test/{fake_std_out.rb → unit/support/fake_std_out.rb} +0 -0
- data/test/{config.yaml → unit/support/gli_test_config.yml} +0 -0
- data/test/unit/switch_test.rb +49 -0
- data/test/{tc_terminal.rb → unit/terminal_test.rb} +4 -3
- data/test/unit/test_helper.rb +13 -0
- data/test/unit/verbatim_wrapper_test.rb +24 -0
- metadata +73 -140
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/.travis.yml +0 -11
- data/ObjectModel.graffle +0 -1191
- data/bin/report_on_rake_results +0 -10
- data/bin/test_all_rubies.sh +0 -6
- data/features/gli_executable.feature +0 -90
- data/features/gli_init.feature +0 -236
- data/features/step_definitions/gli_executable_steps.rb +0 -18
- data/features/step_definitions/gli_init_steps.rb +0 -11
- data/features/step_definitions/todo_steps.rb +0 -100
- data/features/support/env.rb +0 -54
- data/features/support/hooks.rb +0 -5
- data/features/todo.feature +0 -579
- data/features/todo_legacy.feature +0 -130
- data/test/option_test_helper.rb +0 -13
- data/test/tc_compound_command.rb +0 -22
- data/test/tc_subcommand_parsing.rb +0 -280
- data/test/tc_subcommands.rb +0 -259
- data/test/tc_switch.rb +0 -55
- data/test/tc_verbatim_wrapper.rb +0 -36
- data/test/test_helper.rb +0 -21
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Copeland
|
8
|
-
autorequire:
|
9
|
-
bindir:
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rdoc
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rainbow
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,90 +58,34 @@ dependencies:
|
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: 1.1.1
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: clean_test
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '1.0'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '1.0'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: cucumber
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: 3.1.2
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: 3.1.2
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: gherkin
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - "~>"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: 5.1.0
|
96
|
-
type: :development
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - "~>"
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: 5.1.0
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: aruba
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 0.7.4
|
110
|
-
type: :development
|
111
|
-
prerelease: false
|
112
|
-
version_requirements: !ruby/object:Gem::Requirement
|
113
|
-
requirements:
|
114
|
-
- - "~>"
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: 0.7.4
|
117
61
|
- !ruby/object:Gem::Dependency
|
118
62
|
name: sdoc
|
119
63
|
requirement: !ruby/object:Gem::Requirement
|
120
64
|
requirements:
|
121
|
-
- - "
|
65
|
+
- - ">="
|
122
66
|
- !ruby/object:Gem::Version
|
123
|
-
version: '0
|
67
|
+
version: '0'
|
124
68
|
type: :development
|
125
69
|
prerelease: false
|
126
70
|
version_requirements: !ruby/object:Gem::Requirement
|
127
71
|
requirements:
|
128
|
-
- - "
|
72
|
+
- - ">="
|
129
73
|
- !ruby/object:Gem::Version
|
130
|
-
version: '0
|
74
|
+
version: '0'
|
131
75
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
76
|
+
name: minitest
|
133
77
|
requirement: !ruby/object:Gem::Requirement
|
134
78
|
requirements:
|
135
|
-
- - "
|
79
|
+
- - ">="
|
136
80
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
81
|
+
version: '0'
|
138
82
|
type: :development
|
139
83
|
prerelease: false
|
140
84
|
version_requirements: !ruby/object:Gem::Requirement
|
141
85
|
requirements:
|
142
|
-
- - "
|
86
|
+
- - ">="
|
143
87
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
88
|
+
version: '0'
|
145
89
|
description: Build command-suite CLI apps that are awesome. Bootstrap your app, add
|
146
90
|
commands, options and documentation while maintaining a well-tested idiomatic command-line
|
147
91
|
app
|
@@ -153,29 +97,19 @@ extra_rdoc_files:
|
|
153
97
|
- README.rdoc
|
154
98
|
- gli.rdoc
|
155
99
|
files:
|
100
|
+
- ".circleci/config.yml"
|
156
101
|
- ".gitignore"
|
157
|
-
- ".ruby-gemset"
|
158
|
-
- ".ruby-version"
|
159
102
|
- ".tool-versions"
|
160
|
-
- ".travis.yml"
|
161
103
|
- CONTRIBUTING.md
|
162
104
|
- Gemfile
|
163
105
|
- LICENSE.txt
|
164
|
-
- ObjectModel.graffle
|
165
106
|
- README.rdoc
|
166
107
|
- Rakefile
|
108
|
+
- bin/ci
|
167
109
|
- bin/gli
|
168
|
-
- bin/
|
169
|
-
- bin/
|
170
|
-
-
|
171
|
-
- features/gli_init.feature
|
172
|
-
- features/step_definitions/gli_executable_steps.rb
|
173
|
-
- features/step_definitions/gli_init_steps.rb
|
174
|
-
- features/step_definitions/todo_steps.rb
|
175
|
-
- features/support/env.rb
|
176
|
-
- features/support/hooks.rb
|
177
|
-
- features/todo.feature
|
178
|
-
- features/todo_legacy.feature
|
110
|
+
- bin/rake
|
111
|
+
- bin/setup
|
112
|
+
- exe/gli
|
179
113
|
- gli.cheat
|
180
114
|
- gli.gemspec
|
181
115
|
- gli.rdoc
|
@@ -219,6 +153,8 @@ files:
|
|
219
153
|
- lib/gli/switch.rb
|
220
154
|
- lib/gli/terminal.rb
|
221
155
|
- lib/gli/version.rb
|
156
|
+
- object-model.dot
|
157
|
+
- object-model.png
|
222
158
|
- test/apps/README.md
|
223
159
|
- test/apps/todo/Gemfile
|
224
160
|
- test/apps/todo/README.rdoc
|
@@ -244,29 +180,32 @@ files:
|
|
244
180
|
- test/apps/todo_legacy/todo.gemspec
|
245
181
|
- test/apps/todo_legacy/todo.rdoc
|
246
182
|
- test/apps/todo_plugins/commands/third.rb
|
247
|
-
- test/
|
248
|
-
- test/
|
249
|
-
- test/
|
250
|
-
- test/
|
251
|
-
- test/
|
252
|
-
- test/
|
253
|
-
- test/
|
254
|
-
- test/
|
255
|
-
- test/
|
256
|
-
- test/
|
257
|
-
- test/
|
258
|
-
- test/
|
259
|
-
- test/
|
260
|
-
- test/
|
261
|
-
- test/
|
262
|
-
- test/
|
263
|
-
- test/
|
264
|
-
- test/
|
265
|
-
|
183
|
+
- test/integration/gli_cli_test.rb
|
184
|
+
- test/integration/gli_powered_app_test.rb
|
185
|
+
- test/integration/scaffold_test.rb
|
186
|
+
- test/integration/test_helper.rb
|
187
|
+
- test/unit/command_finder_test.rb
|
188
|
+
- test/unit/command_test.rb
|
189
|
+
- test/unit/compound_command_test.rb
|
190
|
+
- test/unit/doc_test.rb
|
191
|
+
- test/unit/flag_test.rb
|
192
|
+
- test/unit/gli_test.rb
|
193
|
+
- test/unit/help_test.rb
|
194
|
+
- test/unit/init_simplecov.rb
|
195
|
+
- test/unit/options_test.rb
|
196
|
+
- test/unit/subcommand_parsing_test.rb
|
197
|
+
- test/unit/subcommands_test.rb
|
198
|
+
- test/unit/support/fake_std_out.rb
|
199
|
+
- test/unit/support/gli_test_config.yml
|
200
|
+
- test/unit/switch_test.rb
|
201
|
+
- test/unit/terminal_test.rb
|
202
|
+
- test/unit/test_helper.rb
|
203
|
+
- test/unit/verbatim_wrapper_test.rb
|
204
|
+
homepage: http://davetron5000.github.io/gli
|
266
205
|
licenses:
|
267
206
|
- Apache-2.0
|
268
207
|
metadata: {}
|
269
|
-
post_install_message:
|
208
|
+
post_install_message:
|
270
209
|
rdoc_options:
|
271
210
|
- "--title"
|
272
211
|
- Git Like Interface
|
@@ -286,19 +225,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
286
225
|
version: '0'
|
287
226
|
requirements: []
|
288
227
|
rubygems_version: 3.1.2
|
289
|
-
signing_key:
|
228
|
+
signing_key:
|
290
229
|
specification_version: 4
|
291
230
|
summary: Build command-suite CLI apps that are awesome.
|
292
231
|
test_files:
|
293
|
-
- features/gli_executable.feature
|
294
|
-
- features/gli_init.feature
|
295
|
-
- features/step_definitions/gli_executable_steps.rb
|
296
|
-
- features/step_definitions/gli_init_steps.rb
|
297
|
-
- features/step_definitions/todo_steps.rb
|
298
|
-
- features/support/env.rb
|
299
|
-
- features/support/hooks.rb
|
300
|
-
- features/todo.feature
|
301
|
-
- features/todo_legacy.feature
|
302
232
|
- test/apps/README.md
|
303
233
|
- test/apps/todo/Gemfile
|
304
234
|
- test/apps/todo/README.rdoc
|
@@ -324,21 +254,24 @@ test_files:
|
|
324
254
|
- test/apps/todo_legacy/todo.gemspec
|
325
255
|
- test/apps/todo_legacy/todo.rdoc
|
326
256
|
- test/apps/todo_plugins/commands/third.rb
|
327
|
-
- test/
|
328
|
-
- test/
|
329
|
-
- test/
|
330
|
-
- test/
|
331
|
-
- test/
|
332
|
-
- test/
|
333
|
-
- test/
|
334
|
-
- test/
|
335
|
-
- test/
|
336
|
-
- test/
|
337
|
-
- test/
|
338
|
-
- test/
|
339
|
-
- test/
|
340
|
-
- test/
|
341
|
-
- test/
|
342
|
-
- test/
|
343
|
-
- test/
|
344
|
-
- test/
|
257
|
+
- test/integration/gli_cli_test.rb
|
258
|
+
- test/integration/gli_powered_app_test.rb
|
259
|
+
- test/integration/scaffold_test.rb
|
260
|
+
- test/integration/test_helper.rb
|
261
|
+
- test/unit/command_finder_test.rb
|
262
|
+
- test/unit/command_test.rb
|
263
|
+
- test/unit/compound_command_test.rb
|
264
|
+
- test/unit/doc_test.rb
|
265
|
+
- test/unit/flag_test.rb
|
266
|
+
- test/unit/gli_test.rb
|
267
|
+
- test/unit/help_test.rb
|
268
|
+
- test/unit/init_simplecov.rb
|
269
|
+
- test/unit/options_test.rb
|
270
|
+
- test/unit/subcommand_parsing_test.rb
|
271
|
+
- test/unit/subcommands_test.rb
|
272
|
+
- test/unit/support/fake_std_out.rb
|
273
|
+
- test/unit/support/gli_test_config.yml
|
274
|
+
- test/unit/switch_test.rb
|
275
|
+
- test/unit/terminal_test.rb
|
276
|
+
- test/unit/test_helper.rb
|
277
|
+
- test/unit/verbatim_wrapper_test.rb
|
data/.ruby-gemset
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
gli-dev
|
data/.ruby-version
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.5.1
|