gli 2.19.1 → 2.21.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 (71) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +28 -0
  3. data/.gitignore +1 -3
  4. data/CONTRIBUTING.md +1 -3
  5. data/Gemfile +0 -6
  6. data/README.rdoc +7 -17
  7. data/Rakefile +22 -38
  8. data/bin/ci +29 -0
  9. data/bin/gli +25 -64
  10. data/bin/rake +29 -0
  11. data/bin/setup +5 -0
  12. data/exe/gli +68 -0
  13. data/gli.gemspec +19 -21
  14. data/gli.rdoc +2 -2
  15. data/lib/gli/app_support.rb +3 -1
  16. data/lib/gli/command_support.rb +2 -6
  17. data/lib/gli/commands/help_modules/command_help_format.rb +1 -1
  18. data/lib/gli/commands/help_modules/global_help_format.rb +1 -1
  19. data/lib/gli/commands/scaffold.rb +9 -93
  20. data/lib/gli/dsl.rb +5 -0
  21. data/lib/gli/gli_option_parser.rb +19 -4
  22. data/lib/gli/options.rb +2 -2
  23. data/lib/gli/version.rb +1 -1
  24. data/object-model.dot +29 -0
  25. data/object-model.png +0 -0
  26. data/test/apps/todo/Gemfile +1 -1
  27. data/test/apps/todo/bin/todo +1 -1
  28. data/test/integration/gli_cli_test.rb +69 -0
  29. data/test/integration/gli_powered_app_test.rb +52 -0
  30. data/test/integration/scaffold_test.rb +30 -0
  31. data/test/integration/test_helper.rb +52 -0
  32. data/test/{tc_command_finder.rb → unit/command_finder_test.rb} +6 -6
  33. data/test/{tc_command.rb → unit/command_test.rb} +4 -4
  34. data/test/unit/compound_command_test.rb +17 -0
  35. data/test/{tc_doc.rb → unit/doc_test.rb} +38 -51
  36. data/test/{tc_flag.rb → unit/flag_test.rb} +19 -25
  37. data/test/{tc_gli.rb → unit/gli_test.rb} +58 -47
  38. data/test/{tc_help.rb → unit/help_test.rb} +48 -107
  39. data/test/{init_simplecov.rb → unit/init_simplecov.rb} +0 -0
  40. data/test/{tc_options.rb → unit/options_test.rb} +4 -4
  41. data/test/unit/subcommand_parsing_test.rb +263 -0
  42. data/test/unit/subcommands_test.rb +245 -0
  43. data/test/{fake_std_out.rb → unit/support/fake_std_out.rb} +0 -0
  44. data/test/{config.yaml → unit/support/gli_test_config.yml} +0 -0
  45. data/test/unit/switch_test.rb +49 -0
  46. data/test/{tc_terminal.rb → unit/terminal_test.rb} +4 -3
  47. data/test/unit/test_helper.rb +13 -0
  48. data/test/unit/verbatim_wrapper_test.rb +24 -0
  49. metadata +73 -140
  50. data/.ruby-gemset +0 -1
  51. data/.ruby-version +0 -1
  52. data/.travis.yml +0 -11
  53. data/ObjectModel.graffle +0 -1191
  54. data/bin/report_on_rake_results +0 -10
  55. data/bin/test_all_rubies.sh +0 -6
  56. data/features/gli_executable.feature +0 -90
  57. data/features/gli_init.feature +0 -236
  58. data/features/step_definitions/gli_executable_steps.rb +0 -18
  59. data/features/step_definitions/gli_init_steps.rb +0 -11
  60. data/features/step_definitions/todo_steps.rb +0 -100
  61. data/features/support/env.rb +0 -54
  62. data/features/support/hooks.rb +0 -5
  63. data/features/todo.feature +0 -579
  64. data/features/todo_legacy.feature +0 -130
  65. data/test/option_test_helper.rb +0 -13
  66. data/test/tc_compound_command.rb +0 -22
  67. data/test/tc_subcommand_parsing.rb +0 -280
  68. data/test/tc_subcommands.rb +0 -259
  69. data/test/tc_switch.rb +0 -55
  70. data/test/tc_verbatim_wrapper.rb +0 -36
  71. 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.19.1
4
+ version: 2.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Copeland
8
- autorequire:
9
- bindir: bin
8
+ autorequire:
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-31 00:00:00.000000000 Z
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.9.2.2
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.9.2.2
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: '4.2'
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: '4.2'
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.4'
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.4'
74
+ version: '0'
131
75
  - !ruby/object:Gem::Dependency
132
- name: faker
76
+ name: minitest
133
77
  requirement: !ruby/object:Gem::Requirement
134
78
  requirements:
135
- - - "~>"
79
+ - - ">="
136
80
  - !ruby/object:Gem::Version
137
- version: 1.9.1
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: 1.9.1
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/report_on_rake_results
169
- - bin/test_all_rubies.sh
170
- - features/gli_executable.feature
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/config.yaml
248
- - test/fake_std_out.rb
249
- - test/init_simplecov.rb
250
- - test/option_test_helper.rb
251
- - test/tc_command.rb
252
- - test/tc_command_finder.rb
253
- - test/tc_compound_command.rb
254
- - test/tc_doc.rb
255
- - test/tc_flag.rb
256
- - test/tc_gli.rb
257
- - test/tc_help.rb
258
- - test/tc_options.rb
259
- - test/tc_subcommand_parsing.rb
260
- - test/tc_subcommands.rb
261
- - test/tc_switch.rb
262
- - test/tc_terminal.rb
263
- - test/tc_verbatim_wrapper.rb
264
- - test/test_helper.rb
265
- homepage: http://davetron5000.github.com/gli
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/config.yaml
328
- - test/fake_std_out.rb
329
- - test/init_simplecov.rb
330
- - test/option_test_helper.rb
331
- - test/tc_command.rb
332
- - test/tc_command_finder.rb
333
- - test/tc_compound_command.rb
334
- - test/tc_doc.rb
335
- - test/tc_flag.rb
336
- - test/tc_gli.rb
337
- - test/tc_help.rb
338
- - test/tc_options.rb
339
- - test/tc_subcommand_parsing.rb
340
- - test/tc_subcommands.rb
341
- - test/tc_switch.rb
342
- - test/tc_terminal.rb
343
- - test/tc_verbatim_wrapper.rb
344
- - test/test_helper.rb
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
data/.travis.yml DELETED
@@ -1,11 +0,0 @@
1
- notifications:
2
- email:
3
- on_success: always
4
- script: 'bundle exec rake test features'
5
- rvm:
6
- - 2.2.6
7
- - 2.3.3
8
- - 2.4.2
9
- branches:
10
- only:
11
- - 'gli-2'