gli 2.7.0 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 666451391ad713115e9ba13f823bbee821811525
4
+ data.tar.gz: 50875aafe4a71c2e9e7dd6ecbcb2a99ea2992396
5
+ SHA512:
6
+ metadata.gz: 6a4feba7b6340bc64fb2c607ec070dfb6214a59febe12b7e5aae1a56e29c61ff40a034fcfb802a27c65bffbf473c09a6e4165d95845c01fc0371a26d1d201052
7
+ data.tar.gz: 0830df47d635fceb3ea347a073bac03322c7c71cd4ea46453d6455743f3841e69767fd82b30e967dc8b40a0ada1ab278159ee6918b46e3a5b7e843c5544a2a7b
@@ -0,0 +1 @@
1
+ gli-dev
@@ -0,0 +1 @@
1
+ ruby-1.9.3-p448
@@ -26,6 +26,7 @@ spec = Gem::Specification.new do |s|
26
26
  s.add_development_dependency('rainbow', '~> 1.1.1')
27
27
  s.add_development_dependency('clean_test')
28
28
  s.add_development_dependency('cucumber', '1.2.3')
29
+ s.add_development_dependency('gherkin', '<= 2.11.6')
29
30
  s.add_development_dependency('aruba', '0.5.1') # 0.5.3 randomly breaks with "LaunchError: no such file or directory" and only sometimes.
30
31
  s.add_development_dependency('sdoc')
31
32
  s.add_development_dependency('faker','1.0.0')
@@ -208,7 +208,8 @@ module GLI
208
208
  output_error_message(ex)
209
209
  if ex.kind_of?(OptionParser::ParseError) || ex.kind_of?(BadCommandLine)
210
210
  if commands[:help]
211
- commands[:help].execute({},{},command.nil? ? [] : [command.name.to_s])
211
+ command_for_help = command.nil? ? [] : command.name_for_help
212
+ commands[:help].execute({},{},command_for_help)
212
213
  end
213
214
  end
214
215
  elsif ENV['GLI_DEBUG'] == 'true'
@@ -143,6 +143,27 @@ module GLI
143
143
  (switches.values.map { |_| [_.name,_.aliases] })).flatten.map(&:to_s).include?(option)
144
144
  end
145
145
 
146
+ # Returns full name for help command including parents
147
+ #
148
+ # Example
149
+ #
150
+ # command :remote do |t|
151
+ # t.command :add do |global,options,args|
152
+ # end
153
+ # end
154
+ #
155
+ # @add_command.name_for_help # => ["remote", "add"]
156
+ #
157
+ def name_for_help
158
+ name_array = [name.to_s]
159
+ command_parent = parent
160
+ while(command_parent.is_a?(GLI::Command)) do
161
+ name_array.unshift(command_parent.name.to_s)
162
+ command_parent = command_parent.parent
163
+ end
164
+ name_array
165
+ end
166
+
146
167
  def self.name_as_string(name,negatable=false) #:nodoc:
147
168
  name.to_s
148
169
  end
@@ -1,5 +1,5 @@
1
1
  module GLI
2
2
  unless const_defined? :VERSION
3
- VERSION = '2.7.0'
3
+ VERSION = '2.8.0'
4
4
  end
5
5
  end
@@ -401,6 +401,34 @@ class TC_testCommand < Clean::Test::TestCase
401
401
  assert_equal '',@fake_stdout.to_s
402
402
  end
403
403
 
404
+ def test_name_for_help_with_top_command
405
+ @app.subcommand_option_handling :normal
406
+ @app.command :remote do |c|; end
407
+ command = @app.commands[:remote]
408
+ assert_equal ["remote"], command.name_for_help
409
+ end
410
+
411
+ def test_name_for_help_with_sub_command
412
+ @app.subcommand_option_handling :normal
413
+ @app.command :remote do |c|
414
+ c.command :add do |s|; end
415
+ end
416
+ sub_command = @app.commands[:remote].commands[:add]
417
+ assert_equal ["remote", "add"], sub_command.name_for_help
418
+ end
419
+
420
+
421
+ def test_name_for_help_with_sub_sub_command
422
+ @app.subcommand_option_handling :normal
423
+ @app.command :remote do |c|
424
+ c.command :add do |s|
425
+ s.command :sub do |ss|; end
426
+ end
427
+ end
428
+ sub_command = @app.commands[:remote].commands[:add].commands[:sub]
429
+ assert_equal ["remote", "add", "sub"], sub_command.name_for_help
430
+ end
431
+
404
432
  private
405
433
 
406
434
  def assert_contained(output,regexp)
@@ -45,6 +45,20 @@ class TC_testSubCommand < Clean::Test::TestCase
45
45
  :args => ['bar'])
46
46
  end
47
47
 
48
+ test_that "--help works for subcommands in :normal handling mode" do
49
+ Given { @app.subcommand_option_handling :normal }
50
+ And we_have_a_command_with_two_subcommands
51
+ When { @app.run(["remote", "add", "--help"]) rescue nil }
52
+ Then { assert_no_match /^error/, @fake_stderr.to_s, "should not output an error message" }
53
+ end
54
+
55
+ test_that "--help works for subcommands in :legacy handling mode" do
56
+ Given { @app.subcommand_option_handling :legacy }
57
+ And we_have_a_command_with_two_subcommands
58
+ When { @app.run(["remote", "add", "--help"]) rescue nil }
59
+ Then { assert_no_match /^error/, @fake_stderr.to_s, "should not output an error message" }
60
+ end
61
+
48
62
  test_that "we can reopen commands to add new subcommands" do
49
63
  Given {
50
64
  @app.command :remote do |p|
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
5
- prerelease:
4
+ version: 2.8.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - David Copeland
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-06 00:00:00.000000000 Z
11
+ date: 2013-09-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rdoc
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rainbow
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -62,23 +55,20 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: clean_test
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: cucumber
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - '='
84
74
  - !ruby/object:Gem::Version
@@ -86,15 +76,27 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - '='
92
81
  - !ruby/object:Gem::Version
93
82
  version: 1.2.3
83
+ - !ruby/object:Gem::Dependency
84
+ name: gherkin
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - <=
88
+ - !ruby/object:Gem::Version
89
+ version: 2.11.6
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - <=
95
+ - !ruby/object:Gem::Version
96
+ version: 2.11.6
94
97
  - !ruby/object:Gem::Dependency
95
98
  name: aruba
96
99
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
100
  requirements:
99
101
  - - '='
100
102
  - !ruby/object:Gem::Version
@@ -102,7 +104,6 @@ dependencies:
102
104
  type: :development
103
105
  prerelease: false
104
106
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
107
  requirements:
107
108
  - - '='
108
109
  - !ruby/object:Gem::Version
@@ -110,23 +111,20 @@ dependencies:
110
111
  - !ruby/object:Gem::Dependency
111
112
  name: sdoc
112
113
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
114
  requirements:
115
- - - ! '>='
115
+ - - '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
121
  requirements:
123
- - - ! '>='
122
+ - - '>='
124
123
  - !ruby/object:Gem::Version
125
124
  version: '0'
126
125
  - !ruby/object:Gem::Dependency
127
126
  name: faker
128
127
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
128
  requirements:
131
129
  - - '='
132
130
  - !ruby/object:Gem::Version
@@ -134,7 +132,6 @@ dependencies:
134
132
  type: :development
135
133
  prerelease: false
136
134
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
135
  requirements:
139
136
  - - '='
140
137
  - !ruby/object:Gem::Version
@@ -150,223 +147,111 @@ extra_rdoc_files:
150
147
  - README.rdoc
151
148
  - gli.rdoc
152
149
  files:
153
- - !binary |-
154
- LmdpdGlnbm9yZQ==
155
- - !binary |-
156
- LnJ2bXJj
157
- - !binary |-
158
- LnRyYXZpcy55bWw=
159
- - !binary |-
160
- Q09OVFJJQlVUSU5HLm1k
161
- - !binary |-
162
- R2VtZmlsZQ==
163
- - !binary |-
164
- TElDRU5TRS50eHQ=
165
- - !binary |-
166
- T2JqZWN0TW9kZWwuZ3JhZmZsZQ==
167
- - !binary |-
168
- UkVBRE1FLnJkb2M=
169
- - !binary |-
170
- UmFrZWZpbGU=
171
- - !binary |-
172
- YmluL2dsaQ==
173
- - !binary |-
174
- YmluL3JlcG9ydF9vbl9yYWtlX3Jlc3VsdHM=
175
- - !binary |-
176
- YmluL3Rlc3RfYWxsX3J1Ymllcy5zaA==
177
- - !binary |-
178
- ZmVhdHVyZXMvZ2xpX2V4ZWN1dGFibGUuZmVhdHVyZQ==
179
- - !binary |-
180
- ZmVhdHVyZXMvZ2xpX2luaXQuZmVhdHVyZQ==
181
- - !binary |-
182
- ZmVhdHVyZXMvc3RlcF9kZWZpbml0aW9ucy9nbGlfZXhlY3V0YWJsZV9zdGVw
183
- cy5yYg==
184
- - !binary |-
185
- ZmVhdHVyZXMvc3RlcF9kZWZpbml0aW9ucy9nbGlfaW5pdF9zdGVwcy5yYg==
186
- - !binary |-
187
- ZmVhdHVyZXMvc3RlcF9kZWZpbml0aW9ucy90b2RvX3N0ZXBzLnJi
188
- - !binary |-
189
- ZmVhdHVyZXMvc3VwcG9ydC9lbnYucmI=
190
- - !binary |-
191
- ZmVhdHVyZXMvdG9kby5mZWF0dXJl
192
- - !binary |-
193
- ZmVhdHVyZXMvdG9kb19sZWdhY3kuZmVhdHVyZQ==
194
- - !binary |-
195
- Z2xpLmNoZWF0
196
- - !binary |-
197
- Z2xpLmdlbXNwZWM=
198
- - !binary |-
199
- Z2xpLnJkb2M=
200
- - !binary |-
201
- bGliL2dsaS5yYg==
202
- - !binary |-
203
- bGliL2dsaS9hcHAucmI=
204
- - !binary |-
205
- bGliL2dsaS9hcHBfc3VwcG9ydC5yYg==
206
- - !binary |-
207
- bGliL2dsaS9jb21tYW5kLnJi
208
- - !binary |-
209
- bGliL2dsaS9jb21tYW5kX2ZpbmRlci5yYg==
210
- - !binary |-
211
- bGliL2dsaS9jb21tYW5kX2xpbmVfb3B0aW9uLnJi
212
- - !binary |-
213
- bGliL2dsaS9jb21tYW5kX2xpbmVfdG9rZW4ucmI=
214
- - !binary |-
215
- bGliL2dsaS9jb21tYW5kX3N1cHBvcnQucmI=
216
- - !binary |-
217
- bGliL2dsaS9jb21tYW5kcy9jb21wb3VuZF9jb21tYW5kLnJi
218
- - !binary |-
219
- bGliL2dsaS9jb21tYW5kcy9kb2MucmI=
220
- - !binary |-
221
- bGliL2dsaS9jb21tYW5kcy9oZWxwLnJi
222
- - !binary |-
223
- bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvYXJnX25hbWVfZm9ybWF0
224
- dGVyLnJi
225
- - !binary |-
226
- bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvY29tbWFuZF9maW5kZXIu
227
- cmI=
228
- - !binary |-
229
- bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvY29tbWFuZF9oZWxwX2Zv
230
- cm1hdC5yYg==
231
- - !binary |-
232
- bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvZ2xvYmFsX2hlbHBfZm9y
233
- bWF0LnJi
234
- - !binary |-
235
- bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvaGVscF9jb21wbGV0aW9u
236
- X2Zvcm1hdC5yYg==
237
- - !binary |-
238
- bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvbGlzdF9mb3JtYXR0ZXIu
239
- cmI=
240
- - !binary |-
241
- bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvb25lX2xpbmVfd3JhcHBl
242
- ci5yYg==
243
- - !binary |-
244
- bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvb3B0aW9uc19mb3JtYXR0
245
- ZXIucmI=
246
- - !binary |-
247
- bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvdGV4dF93cmFwcGVyLnJi
248
- - !binary |-
249
- bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvdHR5X29ubHlfd3JhcHBl
250
- ci5yYg==
251
- - !binary |-
252
- bGliL2dsaS9jb21tYW5kcy9oZWxwX21vZHVsZXMvdmVyYmF0aW1fd3JhcHBl
253
- ci5yYg==
254
- - !binary |-
255
- bGliL2dsaS9jb21tYW5kcy9pbml0Y29uZmlnLnJi
256
- - !binary |-
257
- bGliL2dsaS9jb21tYW5kcy9yZG9jX2RvY3VtZW50X2xpc3RlbmVyLnJi
258
- - !binary |-
259
- bGliL2dsaS9jb21tYW5kcy9zY2FmZm9sZC5yYg==
260
- - !binary |-
261
- bGliL2dsaS9kc2wucmI=
262
- - !binary |-
263
- bGliL2dsaS9leGNlcHRpb25zLnJi
264
- - !binary |-
265
- bGliL2dsaS9mbGFnLnJi
266
- - !binary |-
267
- bGliL2dsaS9nbGlfb3B0aW9uX2Jsb2NrX3BhcnNlci5yYg==
268
- - !binary |-
269
- bGliL2dsaS9nbGlfb3B0aW9uX3BhcnNlci5yYg==
270
- - !binary |-
271
- bGliL2dsaS9vcHRpb25fcGFyc2VyX2ZhY3RvcnkucmI=
272
- - !binary |-
273
- bGliL2dsaS9vcHRpb25fcGFyc2luZ19yZXN1bHQucmI=
274
- - !binary |-
275
- bGliL2dsaS9vcHRpb25zLnJi
276
- - !binary |-
277
- bGliL2dsaS9zd2l0Y2gucmI=
278
- - !binary |-
279
- bGliL2dsaS90ZXJtaW5hbC5yYg==
280
- - !binary |-
281
- bGliL2dsaS92ZXJzaW9uLnJi
282
- - !binary |-
283
- dGVzdC9hcHBzL1JFQURNRS5tZA==
284
- - !binary |-
285
- dGVzdC9hcHBzL3RvZG8vR2VtZmlsZQ==
286
- - !binary |-
287
- dGVzdC9hcHBzL3RvZG8vUkVBRE1FLnJkb2M=
288
- - !binary |-
289
- dGVzdC9hcHBzL3RvZG8vUmFrZWZpbGU=
290
- - !binary |-
291
- dGVzdC9hcHBzL3RvZG8vYmluL3RvZG8=
292
- - !binary |-
293
- dGVzdC9hcHBzL3RvZG8vbGliL3RvZG8vY29tbWFuZHMvY3JlYXRlLnJi
294
- - !binary |-
295
- dGVzdC9hcHBzL3RvZG8vbGliL3RvZG8vY29tbWFuZHMvbGlzdC5yYg==
296
- - !binary |-
297
- dGVzdC9hcHBzL3RvZG8vbGliL3RvZG8vY29tbWFuZHMvbHMucmI=
298
- - !binary |-
299
- dGVzdC9hcHBzL3RvZG8vbGliL3RvZG8vY29tbWFuZHMvbWFrZS5yYg==
300
- - !binary |-
301
- dGVzdC9hcHBzL3RvZG8vbGliL3RvZG8vdmVyc2lvbi5yYg==
302
- - !binary |-
303
- dGVzdC9hcHBzL3RvZG8vdGVzdC90Y19ub3RoaW5nLnJi
304
- - !binary |-
305
- dGVzdC9hcHBzL3RvZG8vdG9kby5nZW1zcGVj
306
- - !binary |-
307
- dGVzdC9hcHBzL3RvZG8vdG9kby5yZG9j
308
- - !binary |-
309
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L0dlbWZpbGU=
310
- - !binary |-
311
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L1JFQURNRS5yZG9j
312
- - !binary |-
313
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L1Jha2VmaWxl
314
- - !binary |-
315
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L2Jpbi90b2Rv
316
- - !binary |-
317
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L2xpYi90b2RvL2NvbW1hbmRzL2NyZWF0
318
- ZS5yYg==
319
- - !binary |-
320
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L2xpYi90b2RvL2NvbW1hbmRzL2xpc3Qu
321
- cmI=
322
- - !binary |-
323
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L2xpYi90b2RvL2NvbW1hbmRzL2xzLnJi
324
- - !binary |-
325
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L2xpYi90b2RvL3ZlcnNpb24ucmI=
326
- - !binary |-
327
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L3Rlc3QvdGNfbm90aGluZy5yYg==
328
- - !binary |-
329
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L3RvZG8uZ2Vtc3BlYw==
330
- - !binary |-
331
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L3RvZG8ucmRvYw==
332
- - !binary |-
333
- dGVzdC9hcHBzL3RvZG9fcGx1Z2lucy9jb21tYW5kcy90aGlyZC5yYg==
334
- - !binary |-
335
- dGVzdC9jb25maWcueWFtbA==
336
- - !binary |-
337
- dGVzdC9mYWtlX3N0ZF9vdXQucmI=
338
- - !binary |-
339
- dGVzdC9pbml0X3NpbXBsZWNvdi5yYg==
340
- - !binary |-
341
- dGVzdC9vcHRpb25fdGVzdF9oZWxwZXIucmI=
342
- - !binary |-
343
- dGVzdC90Y19jb21tYW5kLnJi
344
- - !binary |-
345
- dGVzdC90Y19jb21wb3VuZF9jb21tYW5kLnJi
346
- - !binary |-
347
- dGVzdC90Y19kb2MucmI=
348
- - !binary |-
349
- dGVzdC90Y19mbGFnLnJi
350
- - !binary |-
351
- dGVzdC90Y19nbGkucmI=
352
- - !binary |-
353
- dGVzdC90Y19oZWxwLnJi
354
- - !binary |-
355
- dGVzdC90Y19vcHRpb25zLnJi
356
- - !binary |-
357
- dGVzdC90Y19zdWJjb21tYW5kX3BhcnNpbmcucmI=
358
- - !binary |-
359
- dGVzdC90Y19zdWJjb21tYW5kcy5yYg==
360
- - !binary |-
361
- dGVzdC90Y19zd2l0Y2gucmI=
362
- - !binary |-
363
- dGVzdC90Y190ZXJtaW5hbC5yYg==
364
- - !binary |-
365
- dGVzdC90Y192ZXJiYXRpbV93cmFwcGVyLnJi
366
- - !binary |-
367
- dGVzdC90ZXN0X2hlbHBlci5yYg==
150
+ - .gitignore
151
+ - .ruby-gemset
152
+ - .ruby-version
153
+ - .travis.yml
154
+ - CONTRIBUTING.md
155
+ - Gemfile
156
+ - LICENSE.txt
157
+ - ObjectModel.graffle
158
+ - README.rdoc
159
+ - Rakefile
160
+ - bin/gli
161
+ - bin/report_on_rake_results
162
+ - bin/test_all_rubies.sh
163
+ - features/gli_executable.feature
164
+ - features/gli_init.feature
165
+ - features/step_definitions/gli_executable_steps.rb
166
+ - features/step_definitions/gli_init_steps.rb
167
+ - features/step_definitions/todo_steps.rb
168
+ - features/support/env.rb
169
+ - features/todo.feature
170
+ - features/todo_legacy.feature
171
+ - gli.cheat
172
+ - gli.gemspec
173
+ - gli.rdoc
174
+ - lib/gli.rb
175
+ - lib/gli/app.rb
176
+ - lib/gli/app_support.rb
177
+ - lib/gli/command.rb
178
+ - lib/gli/command_finder.rb
179
+ - lib/gli/command_line_option.rb
180
+ - lib/gli/command_line_token.rb
181
+ - lib/gli/command_support.rb
182
+ - lib/gli/commands/compound_command.rb
183
+ - lib/gli/commands/doc.rb
184
+ - lib/gli/commands/help.rb
185
+ - lib/gli/commands/help_modules/arg_name_formatter.rb
186
+ - lib/gli/commands/help_modules/command_finder.rb
187
+ - lib/gli/commands/help_modules/command_help_format.rb
188
+ - lib/gli/commands/help_modules/global_help_format.rb
189
+ - lib/gli/commands/help_modules/help_completion_format.rb
190
+ - lib/gli/commands/help_modules/list_formatter.rb
191
+ - lib/gli/commands/help_modules/one_line_wrapper.rb
192
+ - lib/gli/commands/help_modules/options_formatter.rb
193
+ - lib/gli/commands/help_modules/text_wrapper.rb
194
+ - lib/gli/commands/help_modules/tty_only_wrapper.rb
195
+ - lib/gli/commands/help_modules/verbatim_wrapper.rb
196
+ - lib/gli/commands/initconfig.rb
197
+ - lib/gli/commands/rdoc_document_listener.rb
198
+ - lib/gli/commands/scaffold.rb
199
+ - lib/gli/dsl.rb
200
+ - lib/gli/exceptions.rb
201
+ - lib/gli/flag.rb
202
+ - lib/gli/gli_option_block_parser.rb
203
+ - lib/gli/gli_option_parser.rb
204
+ - lib/gli/option_parser_factory.rb
205
+ - lib/gli/option_parsing_result.rb
206
+ - lib/gli/options.rb
207
+ - lib/gli/switch.rb
208
+ - lib/gli/terminal.rb
209
+ - lib/gli/version.rb
210
+ - test/apps/README.md
211
+ - test/apps/todo/Gemfile
212
+ - test/apps/todo/README.rdoc
213
+ - test/apps/todo/Rakefile
214
+ - test/apps/todo/bin/todo
215
+ - test/apps/todo/lib/todo/commands/create.rb
216
+ - test/apps/todo/lib/todo/commands/list.rb
217
+ - test/apps/todo/lib/todo/commands/ls.rb
218
+ - test/apps/todo/lib/todo/commands/make.rb
219
+ - test/apps/todo/lib/todo/version.rb
220
+ - test/apps/todo/test/tc_nothing.rb
221
+ - test/apps/todo/todo.gemspec
222
+ - test/apps/todo/todo.rdoc
223
+ - test/apps/todo_legacy/Gemfile
224
+ - test/apps/todo_legacy/README.rdoc
225
+ - test/apps/todo_legacy/Rakefile
226
+ - test/apps/todo_legacy/bin/todo
227
+ - test/apps/todo_legacy/lib/todo/commands/create.rb
228
+ - test/apps/todo_legacy/lib/todo/commands/list.rb
229
+ - test/apps/todo_legacy/lib/todo/commands/ls.rb
230
+ - test/apps/todo_legacy/lib/todo/version.rb
231
+ - test/apps/todo_legacy/test/tc_nothing.rb
232
+ - test/apps/todo_legacy/todo.gemspec
233
+ - test/apps/todo_legacy/todo.rdoc
234
+ - test/apps/todo_plugins/commands/third.rb
235
+ - test/config.yaml
236
+ - test/fake_std_out.rb
237
+ - test/init_simplecov.rb
238
+ - test/option_test_helper.rb
239
+ - test/tc_command.rb
240
+ - test/tc_compound_command.rb
241
+ - test/tc_doc.rb
242
+ - test/tc_flag.rb
243
+ - test/tc_gli.rb
244
+ - test/tc_help.rb
245
+ - test/tc_options.rb
246
+ - test/tc_subcommand_parsing.rb
247
+ - test/tc_subcommands.rb
248
+ - test/tc_switch.rb
249
+ - test/tc_terminal.rb
250
+ - test/tc_verbatim_wrapper.rb
251
+ - test/test_helper.rb
368
252
  homepage: http://davetron5000.github.com/gli
369
253
  licenses: []
254
+ metadata: {}
370
255
  post_install_message:
371
256
  rdoc_options:
372
257
  - --title
@@ -376,124 +261,69 @@ rdoc_options:
376
261
  require_paths:
377
262
  - lib
378
263
  required_ruby_version: !ruby/object:Gem::Requirement
379
- none: false
380
264
  requirements:
381
- - - ! '>='
265
+ - - '>='
382
266
  - !ruby/object:Gem::Version
383
267
  version: '0'
384
268
  required_rubygems_version: !ruby/object:Gem::Requirement
385
- none: false
386
269
  requirements:
387
- - - ! '>='
270
+ - - '>='
388
271
  - !ruby/object:Gem::Version
389
272
  version: '0'
390
273
  requirements: []
391
274
  rubyforge_project: gli
392
- rubygems_version: 1.8.25
275
+ rubygems_version: 2.0.3
393
276
  signing_key:
394
- specification_version: 3
277
+ specification_version: 4
395
278
  summary: Build command-suite CLI apps that are awesome.
396
279
  test_files:
397
- - !binary |-
398
- ZmVhdHVyZXMvZ2xpX2V4ZWN1dGFibGUuZmVhdHVyZQ==
399
- - !binary |-
400
- ZmVhdHVyZXMvZ2xpX2luaXQuZmVhdHVyZQ==
401
- - !binary |-
402
- ZmVhdHVyZXMvc3RlcF9kZWZpbml0aW9ucy9nbGlfZXhlY3V0YWJsZV9zdGVw
403
- cy5yYg==
404
- - !binary |-
405
- ZmVhdHVyZXMvc3RlcF9kZWZpbml0aW9ucy9nbGlfaW5pdF9zdGVwcy5yYg==
406
- - !binary |-
407
- ZmVhdHVyZXMvc3RlcF9kZWZpbml0aW9ucy90b2RvX3N0ZXBzLnJi
408
- - !binary |-
409
- ZmVhdHVyZXMvc3VwcG9ydC9lbnYucmI=
410
- - !binary |-
411
- ZmVhdHVyZXMvdG9kby5mZWF0dXJl
412
- - !binary |-
413
- ZmVhdHVyZXMvdG9kb19sZWdhY3kuZmVhdHVyZQ==
414
- - !binary |-
415
- dGVzdC9hcHBzL1JFQURNRS5tZA==
416
- - !binary |-
417
- dGVzdC9hcHBzL3RvZG8vR2VtZmlsZQ==
418
- - !binary |-
419
- dGVzdC9hcHBzL3RvZG8vUkVBRE1FLnJkb2M=
420
- - !binary |-
421
- dGVzdC9hcHBzL3RvZG8vUmFrZWZpbGU=
422
- - !binary |-
423
- dGVzdC9hcHBzL3RvZG8vYmluL3RvZG8=
424
- - !binary |-
425
- dGVzdC9hcHBzL3RvZG8vbGliL3RvZG8vY29tbWFuZHMvY3JlYXRlLnJi
426
- - !binary |-
427
- dGVzdC9hcHBzL3RvZG8vbGliL3RvZG8vY29tbWFuZHMvbGlzdC5yYg==
428
- - !binary |-
429
- dGVzdC9hcHBzL3RvZG8vbGliL3RvZG8vY29tbWFuZHMvbHMucmI=
430
- - !binary |-
431
- dGVzdC9hcHBzL3RvZG8vbGliL3RvZG8vY29tbWFuZHMvbWFrZS5yYg==
432
- - !binary |-
433
- dGVzdC9hcHBzL3RvZG8vbGliL3RvZG8vdmVyc2lvbi5yYg==
434
- - !binary |-
435
- dGVzdC9hcHBzL3RvZG8vdGVzdC90Y19ub3RoaW5nLnJi
436
- - !binary |-
437
- dGVzdC9hcHBzL3RvZG8vdG9kby5nZW1zcGVj
438
- - !binary |-
439
- dGVzdC9hcHBzL3RvZG8vdG9kby5yZG9j
440
- - !binary |-
441
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L0dlbWZpbGU=
442
- - !binary |-
443
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L1JFQURNRS5yZG9j
444
- - !binary |-
445
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L1Jha2VmaWxl
446
- - !binary |-
447
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L2Jpbi90b2Rv
448
- - !binary |-
449
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L2xpYi90b2RvL2NvbW1hbmRzL2NyZWF0
450
- ZS5yYg==
451
- - !binary |-
452
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L2xpYi90b2RvL2NvbW1hbmRzL2xpc3Qu
453
- cmI=
454
- - !binary |-
455
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L2xpYi90b2RvL2NvbW1hbmRzL2xzLnJi
456
- - !binary |-
457
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L2xpYi90b2RvL3ZlcnNpb24ucmI=
458
- - !binary |-
459
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L3Rlc3QvdGNfbm90aGluZy5yYg==
460
- - !binary |-
461
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L3RvZG8uZ2Vtc3BlYw==
462
- - !binary |-
463
- dGVzdC9hcHBzL3RvZG9fbGVnYWN5L3RvZG8ucmRvYw==
464
- - !binary |-
465
- dGVzdC9hcHBzL3RvZG9fcGx1Z2lucy9jb21tYW5kcy90aGlyZC5yYg==
466
- - !binary |-
467
- dGVzdC9jb25maWcueWFtbA==
468
- - !binary |-
469
- dGVzdC9mYWtlX3N0ZF9vdXQucmI=
470
- - !binary |-
471
- dGVzdC9pbml0X3NpbXBsZWNvdi5yYg==
472
- - !binary |-
473
- dGVzdC9vcHRpb25fdGVzdF9oZWxwZXIucmI=
474
- - !binary |-
475
- dGVzdC90Y19jb21tYW5kLnJi
476
- - !binary |-
477
- dGVzdC90Y19jb21wb3VuZF9jb21tYW5kLnJi
478
- - !binary |-
479
- dGVzdC90Y19kb2MucmI=
480
- - !binary |-
481
- dGVzdC90Y19mbGFnLnJi
482
- - !binary |-
483
- dGVzdC90Y19nbGkucmI=
484
- - !binary |-
485
- dGVzdC90Y19oZWxwLnJi
486
- - !binary |-
487
- dGVzdC90Y19vcHRpb25zLnJi
488
- - !binary |-
489
- dGVzdC90Y19zdWJjb21tYW5kX3BhcnNpbmcucmI=
490
- - !binary |-
491
- dGVzdC90Y19zdWJjb21tYW5kcy5yYg==
492
- - !binary |-
493
- dGVzdC90Y19zd2l0Y2gucmI=
494
- - !binary |-
495
- dGVzdC90Y190ZXJtaW5hbC5yYg==
496
- - !binary |-
497
- dGVzdC90Y192ZXJiYXRpbV93cmFwcGVyLnJi
498
- - !binary |-
499
- dGVzdC90ZXN0X2hlbHBlci5yYg==
280
+ - features/gli_executable.feature
281
+ - features/gli_init.feature
282
+ - features/step_definitions/gli_executable_steps.rb
283
+ - features/step_definitions/gli_init_steps.rb
284
+ - features/step_definitions/todo_steps.rb
285
+ - features/support/env.rb
286
+ - features/todo.feature
287
+ - features/todo_legacy.feature
288
+ - test/apps/README.md
289
+ - test/apps/todo/Gemfile
290
+ - test/apps/todo/README.rdoc
291
+ - test/apps/todo/Rakefile
292
+ - test/apps/todo/bin/todo
293
+ - test/apps/todo/lib/todo/commands/create.rb
294
+ - test/apps/todo/lib/todo/commands/list.rb
295
+ - test/apps/todo/lib/todo/commands/ls.rb
296
+ - test/apps/todo/lib/todo/commands/make.rb
297
+ - test/apps/todo/lib/todo/version.rb
298
+ - test/apps/todo/test/tc_nothing.rb
299
+ - test/apps/todo/todo.gemspec
300
+ - test/apps/todo/todo.rdoc
301
+ - test/apps/todo_legacy/Gemfile
302
+ - test/apps/todo_legacy/README.rdoc
303
+ - test/apps/todo_legacy/Rakefile
304
+ - test/apps/todo_legacy/bin/todo
305
+ - test/apps/todo_legacy/lib/todo/commands/create.rb
306
+ - test/apps/todo_legacy/lib/todo/commands/list.rb
307
+ - test/apps/todo_legacy/lib/todo/commands/ls.rb
308
+ - test/apps/todo_legacy/lib/todo/version.rb
309
+ - test/apps/todo_legacy/test/tc_nothing.rb
310
+ - test/apps/todo_legacy/todo.gemspec
311
+ - test/apps/todo_legacy/todo.rdoc
312
+ - test/apps/todo_plugins/commands/third.rb
313
+ - test/config.yaml
314
+ - test/fake_std_out.rb
315
+ - test/init_simplecov.rb
316
+ - test/option_test_helper.rb
317
+ - test/tc_command.rb
318
+ - test/tc_compound_command.rb
319
+ - test/tc_doc.rb
320
+ - test/tc_flag.rb
321
+ - test/tc_gli.rb
322
+ - test/tc_help.rb
323
+ - test/tc_options.rb
324
+ - test/tc_subcommand_parsing.rb
325
+ - test/tc_subcommands.rb
326
+ - test/tc_switch.rb
327
+ - test/tc_terminal.rb
328
+ - test/tc_verbatim_wrapper.rb
329
+ - test/test_helper.rb
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm use 1.9.3@gli-dev --create