gli_aziz_light 2.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +17 -0
- data/CONTRIBUTING.md +23 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +201 -0
- data/ObjectModel.graffle +1191 -0
- data/README.rdoc +109 -0
- data/Rakefile +126 -0
- data/bin/gli +59 -0
- data/bin/report_on_rake_results +10 -0
- data/bin/test_all_rubies.sh +6 -0
- data/features/gli_executable.feature +90 -0
- data/features/gli_init.feature +232 -0
- data/features/step_definitions/gli_executable_steps.rb +18 -0
- data/features/step_definitions/gli_init_steps.rb +11 -0
- data/features/step_definitions/todo_steps.rb +88 -0
- data/features/support/env.rb +53 -0
- data/features/todo.feature +413 -0
- data/features/todo_legacy.feature +128 -0
- data/gli.cheat +95 -0
- data/gli.gemspec +34 -0
- data/gli.rdoc +73 -0
- data/lib/gli.rb +35 -0
- data/lib/gli/app.rb +286 -0
- data/lib/gli/app_support.rb +341 -0
- data/lib/gli/command.rb +171 -0
- data/lib/gli/command_finder.rb +41 -0
- data/lib/gli/command_line_option.rb +34 -0
- data/lib/gli/command_line_token.rb +63 -0
- data/lib/gli/command_support.rb +181 -0
- data/lib/gli/commands/compound_command.rb +42 -0
- data/lib/gli/commands/doc.rb +231 -0
- data/lib/gli/commands/help.rb +95 -0
- data/lib/gli/commands/help_modules/arg_name_formatter.rb +20 -0
- data/lib/gli/commands/help_modules/command_finder.rb +60 -0
- data/lib/gli/commands/help_modules/command_help_format.rb +156 -0
- data/lib/gli/commands/help_modules/global_help_format.rb +70 -0
- data/lib/gli/commands/help_modules/help_completion_format.rb +31 -0
- data/lib/gli/commands/help_modules/list_formatter.rb +23 -0
- data/lib/gli/commands/help_modules/one_line_wrapper.rb +18 -0
- data/lib/gli/commands/help_modules/options_formatter.rb +49 -0
- data/lib/gli/commands/help_modules/text_wrapper.rb +53 -0
- data/lib/gli/commands/help_modules/tty_only_wrapper.rb +23 -0
- data/lib/gli/commands/help_modules/verbatim_wrapper.rb +16 -0
- data/lib/gli/commands/initconfig.rb +74 -0
- data/lib/gli/commands/rdoc_document_listener.rb +116 -0
- data/lib/gli/commands/scaffold.rb +401 -0
- data/lib/gli/dsl.rb +226 -0
- data/lib/gli/exceptions.rb +71 -0
- data/lib/gli/flag.rb +68 -0
- data/lib/gli/gli_option_block_parser.rb +84 -0
- data/lib/gli/gli_option_parser.rb +156 -0
- data/lib/gli/option_parser_factory.rb +81 -0
- data/lib/gli/option_parsing_result.rb +21 -0
- data/lib/gli/options.rb +23 -0
- data/lib/gli/switch.rb +35 -0
- data/lib/gli/terminal.rb +101 -0
- data/lib/gli/version.rb +5 -0
- data/test/apps/README.md +2 -0
- data/test/apps/todo/Gemfile +2 -0
- data/test/apps/todo/README.rdoc +6 -0
- data/test/apps/todo/Rakefile +23 -0
- data/test/apps/todo/bin/todo +63 -0
- data/test/apps/todo/lib/todo/commands/create.rb +24 -0
- data/test/apps/todo/lib/todo/commands/list.rb +63 -0
- data/test/apps/todo/lib/todo/commands/ls.rb +47 -0
- data/test/apps/todo/lib/todo/commands/make.rb +52 -0
- data/test/apps/todo/lib/todo/version.rb +3 -0
- data/test/apps/todo/test/tc_nothing.rb +14 -0
- data/test/apps/todo/todo.gemspec +23 -0
- data/test/apps/todo/todo.rdoc +5 -0
- data/test/apps/todo_legacy/Gemfile +2 -0
- data/test/apps/todo_legacy/README.rdoc +6 -0
- data/test/apps/todo_legacy/Rakefile +23 -0
- data/test/apps/todo_legacy/bin/todo +61 -0
- data/test/apps/todo_legacy/lib/todo/commands/create.rb +24 -0
- data/test/apps/todo_legacy/lib/todo/commands/list.rb +63 -0
- data/test/apps/todo_legacy/lib/todo/commands/ls.rb +47 -0
- data/test/apps/todo_legacy/lib/todo/version.rb +3 -0
- data/test/apps/todo_legacy/test/tc_nothing.rb +14 -0
- data/test/apps/todo_legacy/todo.gemspec +23 -0
- data/test/apps/todo_legacy/todo.rdoc +5 -0
- data/test/apps/todo_plugins/commands/third.rb +1 -0
- data/test/config.yaml +10 -0
- data/test/fake_std_out.rb +30 -0
- data/test/init_simplecov.rb +8 -0
- data/test/option_test_helper.rb +13 -0
- data/test/tc_command.rb +508 -0
- data/test/tc_compound_command.rb +22 -0
- data/test/tc_doc.rb +325 -0
- data/test/tc_flag.rb +62 -0
- data/test/tc_gli.rb +773 -0
- data/test/tc_help.rb +387 -0
- data/test/tc_options.rb +43 -0
- data/test/tc_subcommand_parsing.rb +104 -0
- data/test/tc_subcommands.rb +260 -0
- data/test/tc_switch.rb +55 -0
- data/test/tc_terminal.rb +100 -0
- data/test/tc_verbatim_wrapper.rb +36 -0
- data/test/test_helper.rb +20 -0
- metadata +330 -0
data/test/test_helper.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'gli.rb'
|
3
|
+
require 'test/unit'
|
4
|
+
require 'clean_test/test_case'
|
5
|
+
require 'fake_std_out'
|
6
|
+
require 'option_test_helper'
|
7
|
+
|
8
|
+
module TestHelper
|
9
|
+
include OptionTestHelper
|
10
|
+
class CLIApp
|
11
|
+
include GLI::App
|
12
|
+
|
13
|
+
def reset
|
14
|
+
super
|
15
|
+
@subcommand_option_handling_strategy = :normal
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
Faker::Config.locale = :en
|
metadata
ADDED
@@ -0,0 +1,330 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gli_aziz_light
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.8.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- David Copeland
|
8
|
+
- Aziz Light
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2014-01-12 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ~>
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 0.9.2.2
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ~>
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: 0.9.2.2
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: rdoc
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '3.11'
|
35
|
+
type: :development
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ~>
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '3.11'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rainbow
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ~>
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 1.1.1
|
49
|
+
type: :development
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ~>
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 1.1.1
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: clean_test
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: cucumber
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - '='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 1.2.3
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - '='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 1.2.3
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: gherkin
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - <=
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 2.11.6
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - <=
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 2.11.6
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: aruba
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - '='
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 0.5.1
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - '='
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: 0.5.1
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: sdoc
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: faker
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - '='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 1.0.0
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - '='
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: 1.0.0
|
140
|
+
description: Build command-suite CLI apps that are awesome. Bootstrap your app, add
|
141
|
+
commands, options and documentation while maintaining a well-tested idiomatic command-line
|
142
|
+
app
|
143
|
+
email: davidcopeland@naildrivin5.com
|
144
|
+
executables:
|
145
|
+
- gli
|
146
|
+
extensions: []
|
147
|
+
extra_rdoc_files:
|
148
|
+
- README.rdoc
|
149
|
+
- gli.rdoc
|
150
|
+
files:
|
151
|
+
- .gitignore
|
152
|
+
- .ruby-gemset
|
153
|
+
- .ruby-version
|
154
|
+
- .travis.yml
|
155
|
+
- CONTRIBUTING.md
|
156
|
+
- Gemfile
|
157
|
+
- LICENSE.txt
|
158
|
+
- ObjectModel.graffle
|
159
|
+
- README.rdoc
|
160
|
+
- Rakefile
|
161
|
+
- bin/gli
|
162
|
+
- bin/report_on_rake_results
|
163
|
+
- bin/test_all_rubies.sh
|
164
|
+
- features/gli_executable.feature
|
165
|
+
- features/gli_init.feature
|
166
|
+
- features/step_definitions/gli_executable_steps.rb
|
167
|
+
- features/step_definitions/gli_init_steps.rb
|
168
|
+
- features/step_definitions/todo_steps.rb
|
169
|
+
- features/support/env.rb
|
170
|
+
- features/todo.feature
|
171
|
+
- features/todo_legacy.feature
|
172
|
+
- gli.cheat
|
173
|
+
- gli.gemspec
|
174
|
+
- gli.rdoc
|
175
|
+
- lib/gli.rb
|
176
|
+
- lib/gli/app.rb
|
177
|
+
- lib/gli/app_support.rb
|
178
|
+
- lib/gli/command.rb
|
179
|
+
- lib/gli/command_finder.rb
|
180
|
+
- lib/gli/command_line_option.rb
|
181
|
+
- lib/gli/command_line_token.rb
|
182
|
+
- lib/gli/command_support.rb
|
183
|
+
- lib/gli/commands/compound_command.rb
|
184
|
+
- lib/gli/commands/doc.rb
|
185
|
+
- lib/gli/commands/help.rb
|
186
|
+
- lib/gli/commands/help_modules/arg_name_formatter.rb
|
187
|
+
- lib/gli/commands/help_modules/command_finder.rb
|
188
|
+
- lib/gli/commands/help_modules/command_help_format.rb
|
189
|
+
- lib/gli/commands/help_modules/global_help_format.rb
|
190
|
+
- lib/gli/commands/help_modules/help_completion_format.rb
|
191
|
+
- lib/gli/commands/help_modules/list_formatter.rb
|
192
|
+
- lib/gli/commands/help_modules/one_line_wrapper.rb
|
193
|
+
- lib/gli/commands/help_modules/options_formatter.rb
|
194
|
+
- lib/gli/commands/help_modules/text_wrapper.rb
|
195
|
+
- lib/gli/commands/help_modules/tty_only_wrapper.rb
|
196
|
+
- lib/gli/commands/help_modules/verbatim_wrapper.rb
|
197
|
+
- lib/gli/commands/initconfig.rb
|
198
|
+
- lib/gli/commands/rdoc_document_listener.rb
|
199
|
+
- lib/gli/commands/scaffold.rb
|
200
|
+
- lib/gli/dsl.rb
|
201
|
+
- lib/gli/exceptions.rb
|
202
|
+
- lib/gli/flag.rb
|
203
|
+
- lib/gli/gli_option_block_parser.rb
|
204
|
+
- lib/gli/gli_option_parser.rb
|
205
|
+
- lib/gli/option_parser_factory.rb
|
206
|
+
- lib/gli/option_parsing_result.rb
|
207
|
+
- lib/gli/options.rb
|
208
|
+
- lib/gli/switch.rb
|
209
|
+
- lib/gli/terminal.rb
|
210
|
+
- lib/gli/version.rb
|
211
|
+
- test/apps/README.md
|
212
|
+
- test/apps/todo/Gemfile
|
213
|
+
- test/apps/todo/README.rdoc
|
214
|
+
- test/apps/todo/Rakefile
|
215
|
+
- test/apps/todo/bin/todo
|
216
|
+
- test/apps/todo/lib/todo/commands/create.rb
|
217
|
+
- test/apps/todo/lib/todo/commands/list.rb
|
218
|
+
- test/apps/todo/lib/todo/commands/ls.rb
|
219
|
+
- test/apps/todo/lib/todo/commands/make.rb
|
220
|
+
- test/apps/todo/lib/todo/version.rb
|
221
|
+
- test/apps/todo/test/tc_nothing.rb
|
222
|
+
- test/apps/todo/todo.gemspec
|
223
|
+
- test/apps/todo/todo.rdoc
|
224
|
+
- test/apps/todo_legacy/Gemfile
|
225
|
+
- test/apps/todo_legacy/README.rdoc
|
226
|
+
- test/apps/todo_legacy/Rakefile
|
227
|
+
- test/apps/todo_legacy/bin/todo
|
228
|
+
- test/apps/todo_legacy/lib/todo/commands/create.rb
|
229
|
+
- test/apps/todo_legacy/lib/todo/commands/list.rb
|
230
|
+
- test/apps/todo_legacy/lib/todo/commands/ls.rb
|
231
|
+
- test/apps/todo_legacy/lib/todo/version.rb
|
232
|
+
- test/apps/todo_legacy/test/tc_nothing.rb
|
233
|
+
- test/apps/todo_legacy/todo.gemspec
|
234
|
+
- test/apps/todo_legacy/todo.rdoc
|
235
|
+
- test/apps/todo_plugins/commands/third.rb
|
236
|
+
- test/config.yaml
|
237
|
+
- test/fake_std_out.rb
|
238
|
+
- test/init_simplecov.rb
|
239
|
+
- test/option_test_helper.rb
|
240
|
+
- test/tc_command.rb
|
241
|
+
- test/tc_compound_command.rb
|
242
|
+
- test/tc_doc.rb
|
243
|
+
- test/tc_flag.rb
|
244
|
+
- test/tc_gli.rb
|
245
|
+
- test/tc_help.rb
|
246
|
+
- test/tc_options.rb
|
247
|
+
- test/tc_subcommand_parsing.rb
|
248
|
+
- test/tc_subcommands.rb
|
249
|
+
- test/tc_switch.rb
|
250
|
+
- test/tc_terminal.rb
|
251
|
+
- test/tc_verbatim_wrapper.rb
|
252
|
+
- test/test_helper.rb
|
253
|
+
homepage: http://davetron5000.github.com/gli
|
254
|
+
licenses: []
|
255
|
+
metadata: {}
|
256
|
+
post_install_message:
|
257
|
+
rdoc_options:
|
258
|
+
- --title
|
259
|
+
- Git Like Interface
|
260
|
+
- --main
|
261
|
+
- README.rdoc
|
262
|
+
require_paths:
|
263
|
+
- lib
|
264
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
265
|
+
requirements:
|
266
|
+
- - '>='
|
267
|
+
- !ruby/object:Gem::Version
|
268
|
+
version: '0'
|
269
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
270
|
+
requirements:
|
271
|
+
- - '>='
|
272
|
+
- !ruby/object:Gem::Version
|
273
|
+
version: '0'
|
274
|
+
requirements: []
|
275
|
+
rubyforge_project: gli
|
276
|
+
rubygems_version: 2.0.14
|
277
|
+
signing_key:
|
278
|
+
specification_version: 4
|
279
|
+
summary: Build command-suite CLI apps that are awesome.
|
280
|
+
test_files:
|
281
|
+
- features/gli_executable.feature
|
282
|
+
- features/gli_init.feature
|
283
|
+
- features/step_definitions/gli_executable_steps.rb
|
284
|
+
- features/step_definitions/gli_init_steps.rb
|
285
|
+
- features/step_definitions/todo_steps.rb
|
286
|
+
- features/support/env.rb
|
287
|
+
- features/todo.feature
|
288
|
+
- features/todo_legacy.feature
|
289
|
+
- test/apps/README.md
|
290
|
+
- test/apps/todo/Gemfile
|
291
|
+
- test/apps/todo/README.rdoc
|
292
|
+
- test/apps/todo/Rakefile
|
293
|
+
- test/apps/todo/bin/todo
|
294
|
+
- test/apps/todo/lib/todo/commands/create.rb
|
295
|
+
- test/apps/todo/lib/todo/commands/list.rb
|
296
|
+
- test/apps/todo/lib/todo/commands/ls.rb
|
297
|
+
- test/apps/todo/lib/todo/commands/make.rb
|
298
|
+
- test/apps/todo/lib/todo/version.rb
|
299
|
+
- test/apps/todo/test/tc_nothing.rb
|
300
|
+
- test/apps/todo/todo.gemspec
|
301
|
+
- test/apps/todo/todo.rdoc
|
302
|
+
- test/apps/todo_legacy/Gemfile
|
303
|
+
- test/apps/todo_legacy/README.rdoc
|
304
|
+
- test/apps/todo_legacy/Rakefile
|
305
|
+
- test/apps/todo_legacy/bin/todo
|
306
|
+
- test/apps/todo_legacy/lib/todo/commands/create.rb
|
307
|
+
- test/apps/todo_legacy/lib/todo/commands/list.rb
|
308
|
+
- test/apps/todo_legacy/lib/todo/commands/ls.rb
|
309
|
+
- test/apps/todo_legacy/lib/todo/version.rb
|
310
|
+
- test/apps/todo_legacy/test/tc_nothing.rb
|
311
|
+
- test/apps/todo_legacy/todo.gemspec
|
312
|
+
- test/apps/todo_legacy/todo.rdoc
|
313
|
+
- test/apps/todo_plugins/commands/third.rb
|
314
|
+
- test/config.yaml
|
315
|
+
- test/fake_std_out.rb
|
316
|
+
- test/init_simplecov.rb
|
317
|
+
- test/option_test_helper.rb
|
318
|
+
- test/tc_command.rb
|
319
|
+
- test/tc_compound_command.rb
|
320
|
+
- test/tc_doc.rb
|
321
|
+
- test/tc_flag.rb
|
322
|
+
- test/tc_gli.rb
|
323
|
+
- test/tc_help.rb
|
324
|
+
- test/tc_options.rb
|
325
|
+
- test/tc_subcommand_parsing.rb
|
326
|
+
- test/tc_subcommands.rb
|
327
|
+
- test/tc_switch.rb
|
328
|
+
- test/tc_terminal.rb
|
329
|
+
- test/tc_verbatim_wrapper.rb
|
330
|
+
- test/test_helper.rb
|