murano-cli-commander 4.4.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +7 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +44 -0
  5. data/.rubocop_todo.yml +77 -0
  6. data/.travis.yml +14 -0
  7. data/DEVELOPMENT +15 -0
  8. data/Gemfile +3 -0
  9. data/History.rdoc +446 -0
  10. data/LICENSE +22 -0
  11. data/Manifest +38 -0
  12. data/README.md +475 -0
  13. data/Rakefile +13 -0
  14. data/bin/murano-cli-commander +104 -0
  15. data/lib/murano-cli-commander.rb +35 -0
  16. data/lib/murano-cli-commander/blank.rb +7 -0
  17. data/lib/murano-cli-commander/command.rb +214 -0
  18. data/lib/murano-cli-commander/configure.rb +14 -0
  19. data/lib/murano-cli-commander/core_ext.rb +2 -0
  20. data/lib/murano-cli-commander/core_ext/array.rb +24 -0
  21. data/lib/murano-cli-commander/core_ext/object.rb +8 -0
  22. data/lib/murano-cli-commander/delegates.rb +25 -0
  23. data/lib/murano-cli-commander/help_formatters.rb +49 -0
  24. data/lib/murano-cli-commander/help_formatters/base.rb +24 -0
  25. data/lib/murano-cli-commander/help_formatters/terminal.rb +19 -0
  26. data/lib/murano-cli-commander/help_formatters/terminal/command_help.erb +35 -0
  27. data/lib/murano-cli-commander/help_formatters/terminal/help.erb +36 -0
  28. data/lib/murano-cli-commander/help_formatters/terminal_compact.rb +11 -0
  29. data/lib/murano-cli-commander/help_formatters/terminal_compact/command_help.erb +27 -0
  30. data/lib/murano-cli-commander/help_formatters/terminal_compact/help.erb +29 -0
  31. data/lib/murano-cli-commander/import.rb +5 -0
  32. data/lib/murano-cli-commander/methods.rb +11 -0
  33. data/lib/murano-cli-commander/platform.rb +7 -0
  34. data/lib/murano-cli-commander/runner.rb +455 -0
  35. data/lib/murano-cli-commander/user_interaction.rb +551 -0
  36. data/lib/murano-cli-commander/version.rb +3 -0
  37. data/murano-cli-commander.gemspec +36 -0
  38. data/spec/command_spec.rb +169 -0
  39. data/spec/configure_spec.rb +37 -0
  40. data/spec/core_ext/array_spec.rb +18 -0
  41. data/spec/core_ext/object_spec.rb +19 -0
  42. data/spec/help_formatters/terminal_compact_spec.rb +69 -0
  43. data/spec/help_formatters/terminal_spec.rb +67 -0
  44. data/spec/methods_spec.rb +61 -0
  45. data/spec/runner_spec.rb +646 -0
  46. data/spec/spec_helper.rb +78 -0
  47. data/spec/ui_spec.rb +30 -0
  48. metadata +163 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: fde923e3eb614071f07bd5ec52d6e2481db397450017d2c2a6feecd05628d44e
4
+ data.tar.gz: 1a66c2bb89e0a52bec8d16354fe46ea61437995671da12dda63226d6beb6d926
5
+ SHA512:
6
+ metadata.gz: c5caf3a26aaf70cff7560f831de4aff101c6a0a9de41eea047b46d34fc372d8b485927c687e7a48d6b6928466ae61647c9fb963f2ccf883e0ded97f548d443a7
7
+ data.tar.gz: 30196a101caa7d858340d79c895f350a73d2ecd1aa646b9b1bc473acfd1ed4831d73b9b5a9a3774fad1080e93930405ed3ff35ae7be97913bb0f8ee95dc6b2af
data/.gitignore ADDED
@@ -0,0 +1,7 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
5
+ .rvmrc
6
+ .ruby-version
7
+ coverage/*
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,44 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 1.9
5
+
6
+ # not Ruby 1.9.3 compatible
7
+ Style/PercentLiteralDelimiters:
8
+ Enabled: false
9
+
10
+ # Offense count: 5
11
+ Encoding:
12
+ Enabled: false
13
+
14
+ # Enforce trailing comma after last item of multiline hashes.
15
+ Style/TrailingCommaInLiteral:
16
+ EnforcedStyleForMultiline: comma
17
+
18
+ Metrics/BlockLength:
19
+ Enabled: false
20
+
21
+ Style/SignalException:
22
+ EnforcedStyle: only_fail
23
+
24
+ Style/ParallelAssignment:
25
+ Enabled: false
26
+
27
+ Style/NumericLiteralPrefix:
28
+ EnforcedOctalStyle: zero_only
29
+
30
+ Style/MethodMissing:
31
+ Enabled: false
32
+
33
+ Layout/SpaceInsideStringInterpolation:
34
+ Enabled: false
35
+
36
+ Layout/MultilineOperationIndentation:
37
+ Enabled: false
38
+
39
+ Style/EmptyMethod:
40
+ EnforcedStyle: expanded
41
+
42
+ Metrics/ModuleLength:
43
+ CountComments: false # count full line comments?
44
+ Max: 150
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,77 @@
1
+ # This configuration was generated by `rubocop --auto-gen-config`
2
+ # on 2015-02-16 16:08:54 -0800 using RuboCop version 0.29.0.
3
+ # The point is for the user to remove these configuration records
4
+ # one by one as the offenses are removed from the code base.
5
+ # Note that changes in the inspected code, or installation of new
6
+ # versions of RuboCop, may require this file to be generated again.
7
+
8
+ # Offense count: 2
9
+ Security/Eval:
10
+ Enabled: false
11
+
12
+ # Offense count: 2
13
+ Lint/HandleExceptions:
14
+ Enabled: false
15
+
16
+ # Offense count: 5
17
+ Metrics/AbcSize:
18
+ Max: 29
19
+
20
+ # Offense count: 1
21
+ # Configuration parameters: CountComments.
22
+ Metrics/ClassLength:
23
+ Enabled: false
24
+
25
+ # Offense count: 4
26
+ Metrics/CyclomaticComplexity:
27
+ Max: 13
28
+
29
+ # Offense count: 89
30
+ # Configuration parameters: AllowURI, URISchemes.
31
+ Metrics/LineLength:
32
+ Max: 242
33
+
34
+ # Offense count: 7
35
+ # Configuration parameters: CountComments.
36
+ Metrics/MethodLength:
37
+ Max: 36
38
+
39
+ # Offense count: 4
40
+ Metrics/PerceivedComplexity:
41
+ Max: 14
42
+
43
+ # Offense count: 1
44
+ Style/AccessorMethodName:
45
+ Enabled: false
46
+
47
+ # Offense count: 18
48
+ Style/Documentation:
49
+ Enabled: false
50
+
51
+ # Offense count: 12
52
+ # Configuration parameters: AllowedVariables.
53
+ Style/GlobalVars:
54
+ Enabled: false
55
+
56
+ # Offense count: 1
57
+ # Configuration parameters: MaxLineLength.
58
+ Style/IfUnlessModifier:
59
+ Enabled: false
60
+
61
+ # Offense count: 1
62
+ Style/MultilineBlockChain:
63
+ Enabled: false
64
+
65
+ # Offense count: 1
66
+ Style/MultilineTernaryOperator:
67
+ Enabled: false
68
+
69
+ # Offense count: 5
70
+ Style/RescueModifier:
71
+ Enabled: false
72
+
73
+ # Offense count: 2
74
+ # Cop supports --auto-correct.
75
+ # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, Whitelist.
76
+ Style/TrivialAccessors:
77
+ Enabled: false
data/.travis.yml ADDED
@@ -0,0 +1,14 @@
1
+ language: ruby
2
+ cache: bundler
3
+ before_install:
4
+ - gem update --system
5
+ - gem update bundler
6
+ rvm:
7
+ - 1.9.3
8
+ - 2.0.0
9
+ - 2.1.10
10
+ - 2.2.9
11
+ - 2.3.6
12
+ - 2.4.3
13
+ - 2.5.0
14
+ - jruby-19mode
data/DEVELOPMENT ADDED
@@ -0,0 +1,15 @@
1
+ To run the development rake tasks, you need bundler installed.
2
+
3
+ Before you push any changes, run the RSpec suite:
4
+
5
+ $ rake spec
6
+
7
+ To build a new version of the gem:
8
+
9
+ $ rake build
10
+
11
+ To push the new version to Rubygems:
12
+
13
+ $ rake release
14
+
15
+ (http://rubygems.org/gems/murano-cli-commander)
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/History.rdoc ADDED
@@ -0,0 +1,446 @@
1
+ === 4.4.10 / 2018-08-06
2
+
3
+ * Fork: Add support for empty args.
4
+
5
+ [Missing intermediate gem versions because cannot republish previously published versions.]
6
+
7
+ === 4.4.6 / 2018-07-31
8
+
9
+ * Fix unexpected internal behavior change introduced in 4.4.5.
10
+
11
+ === 4.4.5 / 2018-05-22
12
+
13
+ * Make internal command state less mutable. (@doriantaylor)
14
+
15
+ === 4.4.4 / 2018-01-18
16
+
17
+ * Fix deprecated constant warnings on Ruby 2.5. (@mattbrictson)
18
+
19
+ === 4.4.3 / 2016-12-28
20
+
21
+ * Fix deprecated constant warnings on Ruby 2.4.
22
+
23
+ === 4.4.2 / 2016-12-20
24
+
25
+ * Add `help_paging` program flag so that help paging may be disabled. (@gogiel)
26
+
27
+ === 4.4.1 / 2016-12-02
28
+
29
+ * Fix #36 - Warning about MissingSourceFile (@fallwith)
30
+ * Fix build on Ruby 1.9
31
+
32
+ === 4.4.0 / 2016-02-19
33
+
34
+ * Add modular style template initialization. (@lebogan)
35
+ * Allow option names that start with a global option name.
36
+ * Fix handling of negatable global flags. (@mfurtak)
37
+
38
+ === 4.3.8 / 2016-02-09
39
+
40
+ * Fix regression for deprecation warnings.
41
+
42
+ === 4.3.7 / 2016-01-26
43
+
44
+ * Fix regression in help formatter introduced in 4.3.6.
45
+
46
+ === 4.3.6 / 2016-01-26 [YANKED]
47
+
48
+ * Fix deprecation warnings on Ruby 2.3.0.
49
+ * Indent option descriptions the same way as program and command descriptions. (@badeball)
50
+
51
+ === 4.3.5 / 2015-08-09
52
+
53
+ * Fixed a bug with small terminal widths, changed minimum screen width for wrapping to 40 columns. (@toolmantim)
54
+
55
+ === 4.3.4 / 2015-05-03
56
+
57
+ * Fixed a regression with the compact help formatter.
58
+
59
+ === 4.3.3 / 2015-04-21
60
+
61
+ * Updated to highline 1.7.2 to fix a regression with terminal size (https://github.com/JEG2/highline/pull/139).
62
+ * Help formatting updated to look better for commands with long names. (@jszwedko)
63
+
64
+ === 4.3.2 / 2015-03-31
65
+
66
+ * Version bump to publish new location of Commander to Rubygems. Moved to https://github.com/commander-rb/commander
67
+
68
+ === 4.3.1 / 2015-03-27
69
+
70
+ * Fix various Ruby warnings for circular requires, etc.
71
+ * Update to use highline 1.7 (@SkyTrix)
72
+
73
+ === 4.3.0 / 2015-02-07
74
+
75
+ * Drops support for Ruby 1.8. Please use 4.2.1 if you still need Ruby 1.8 compatibility.
76
+ * Fixed a bug with `always_trace` (#91) (@KrauseFx)
77
+ * Renamed `commands` to `defined_commands` for better compatibility with Pry
78
+
79
+ === 4.2.1 / 2014-09-28
80
+
81
+ * Improve `choose` compatibility with HighLine's version (#79)
82
+
83
+ === 4.2.0 / 2014-04-29
84
+
85
+ * Add ability to use commander without importing into the global namespace (#61) (@krissi)
86
+
87
+ === 4.1.6 / 2014-02-11
88
+
89
+ * Respect environment setting for $LESS (@ellemenno)
90
+ * Add ability to hide trace flags and globally enable tracing (#16, #17) (@jamesrwhite)
91
+
92
+ === 4.1.5 / 2013-08-11
93
+
94
+ * Prevent deprecation warning when loaded in a Rails 4 environment (#58)
95
+
96
+ === 4.1.4 / 2013-07-21
97
+
98
+ * Improve help formatting for multiline program and command descriptions
99
+ * Add ability to set speaking rate (@kethomassen)
100
+ * Clean up examples in docs (@parkr)
101
+
102
+ === 4.1.3 / 2012-12-15
103
+
104
+ * Remove use of eval in Array.parse
105
+ * Make generated template executable and set better defaults (@suan)
106
+ * Fixed valid_command_names_from to match exact commands only (@fgalassi)
107
+
108
+ === 4.1.2 / 2012-02-17
109
+
110
+ * Improvement to `ask_editor` to be more portable across *nix variants. (thanks to Federico Galassi)
111
+
112
+ === 4.1.1 / 2012-02-16
113
+
114
+ * Update `ask_editor` to work with any *nix editor - emacs, vim, etc. (thanks to Federico Galassi)
115
+
116
+ === 4.1.0 / 2012-02-12
117
+
118
+ * Update highline dependency.
119
+ * Make optional arguments true when present (issue #2).
120
+
121
+ === 4.0.7 / 2012-01-23
122
+
123
+ * Improved support for JRuby and Windows (and any other platforms that don't support Kernel.fork).
124
+ * Fixed bug #33 - support `--help` after commands.
125
+ * Reorganized help output to display synopsis before description (issue #12).
126
+
127
+ === 4.0.6 / 2011-09-15
128
+
129
+ * Improved load time on Ruby 1.9. (thanks to Jonathon M. Abbott)
130
+ * Updated documentation.
131
+
132
+ === 4.0.5 / 2011-08-09
133
+
134
+ * Updated documentation to fix inaccuracies and unclear information.
135
+ * Improved rake tasks for gem development.
136
+ * Added say_ok, say_warning and say_error methods to print messages in green, yellow or red. (thanks to Simon Courtois)
137
+ * Fixed; Allow global options to be passed in any order, even mixed with command options. (thanks to Rich Grundy)
138
+ * Fixed; Global options can be passed before or after the command, they can even be mixed with command options. Closes #8. (thanks to Rich Grundy)
139
+ * Fixed; Platform test should now correctly identify JRuby. (thanks to Justin Lynn)
140
+ * Fixed; Add to_s to exceptions as option parser no longer does implicit conversion. (thanks to Justin Lynn)
141
+
142
+ === 4.0.4 / 2011-04-04
143
+
144
+ * Fixed program(:key) behavior for non-Array keys like name, version, description under Ruby 1.9
145
+ * All specs should pass under Ruby 1.9 now
146
+
147
+ === 4.0.3 / 2010-04-06
148
+
149
+ * Fixed global_option which was consuming arguments when not expected. Closes #22
150
+
151
+ === 4.0.2 / 2010-01-19
152
+
153
+ * Added program(:int_block) to allow a block to be run on interrupt.
154
+ * Fixed; ProgressBar immediately shows, and doesn't die on empty lists.
155
+
156
+ === 4.0.1 / 2010-01-14
157
+
158
+ * Fixed commander when using JRuby
159
+ * Fixed template; should require "commander/import"
160
+
161
+ === 4.0.0 / 2009-10-10
162
+
163
+ * Changed; Aliased #when_called as #action [#9]
164
+ * Changed; Sort commands and aliases alphabetically.
165
+ * Changed; Sort aliases alphabetically
166
+ * Changed; Sort commands alphabetically.
167
+ * Changed; require user to require 'commander/import' for dsl
168
+ * Fixed broken regexp; Changed :int_message, only traps INT when available
169
+ * Fixed Ruby 1.9 warning caused by removing object_id from Object
170
+ * Removed #eval const hack
171
+ * Moving to Gemcutter (GRRRR Github)
172
+
173
+ === 3.3.0 / 2009-05-12
174
+
175
+ * Added #choose
176
+ * Added aliasing for help formatters [#24]
177
+ * Added UI.replace_tokens
178
+ * Added #converse
179
+ * Added #speak
180
+ * Added #applescript
181
+ * Added #reset_io
182
+ * Added #io
183
+ * Removed String#tokenize
184
+ * Removed #delete_switches
185
+
186
+ === 3.2.9 / 2009-04-09
187
+
188
+ * Fixed bug in removal of global options
189
+
190
+ === 3.2.8 / 2009-04-09
191
+
192
+ * Added auto-loading support of visionmedia-growl convenience methods when the gem is available
193
+ * Changed; growl related methods are now part of visionmedia-growl
194
+ * Fixed doc typos
195
+
196
+ === 3.2.7 / 2009-04-08
197
+
198
+ * Added #notify, #notify_ok, #notify_warning, #notify_info and #notify_error
199
+ These methods all utilize the MacOS growlnotify binary, very cool stuff check it out!
200
+
201
+ === 3.2.6 / 2009-04-08
202
+
203
+ * Added Commander::UI::AskForClass
204
+ * Added support to #remove_global_options for options with arguments
205
+ * Removed .re directory used for visionmedia-release
206
+ * Fixed bug preventing --trace from working
207
+
208
+ === 3.2.5 / 2009-04-02
209
+
210
+ * Added #ask_editor
211
+
212
+ === 3.2.4 / 2009-04-02
213
+
214
+ * Added #enable_paging [#9]
215
+
216
+ === 3.2.3 / 2009-04-01
217
+
218
+ * Added new pager using less [#9]
219
+
220
+ === 3.2.2 / 2009-04-01
221
+
222
+ * Github's gem builder timed out ? ...
223
+
224
+ === 3.2.1 / 2009-04-01
225
+
226
+ * Added Commander::HelpFormatter::TerminalCompact
227
+ * Fix; updated gemspec / manifest removing test/* causing issue [#26]
228
+
229
+ === 3.2.0 / 2009-03-26
230
+
231
+ * Added implied small switches so they appear in help (-h, -v, etc)
232
+ * Added #inspect back to Commander::Command::Options [#1]
233
+ * Added inheritance of global options for commands [#7]
234
+ * Added #require_valid_command
235
+ * Renamed #call_active_command to #run_active_command
236
+ * Changed; using same option format as command options for globals [#18]
237
+ * Changed; program :name is now optional, and is auto-defined when not specified [#21]
238
+ * Moved #switch_to_sym from Command to Commander::Runner
239
+ * Moved #separate_switches_from_description into Commander::Runner [#22]
240
+ * Removed program :name from commander init template since its not required anymore
241
+
242
+ === 3.1.8 / 2009-03-25
243
+
244
+ * Utilizing abort and $stderr instead of using #say [#16]
245
+ * Fixed INT trapping issue (purely cosmetic) [#14]
246
+ * Removed todo, use lighthouse now for commander at:
247
+ http://visionmedia.lighthouseapp.com/projects/27643-commander/overview
248
+
249
+ === 3.1.7 / 2009-03-24
250
+
251
+ * Added global --trace option
252
+
253
+ === 3.1.6 / 2009-03-22
254
+
255
+ * Changed Options struct to always use symbols
256
+
257
+ === 3.1.5 / 2009-03-22
258
+
259
+ * Added Options#__hash__ to access the internal hash table
260
+ * Refactored Options struct to function much like an OpenStruct
261
+ * Updated commander exec init help description
262
+
263
+ === 3.1.4 / 2009-03-20
264
+
265
+ * Gemspec typo
266
+
267
+ === 3.1.3 / 2009-03-20
268
+
269
+ * Added #remove_global_options
270
+ * Added core global option descriptions
271
+ * Added display of global options
272
+ * Removed small core switches (-v, -h) because they are implicitly set
273
+ * Fixed issue with option switchs failing when named as common methods like --send, or --password
274
+ * Fixed bug causing InvalidOption error when global options do not abort the process.
275
+ This was due to these options remaining in the arguments array, in turn being parsed
276
+ by the command's option parser, issuing the error. This is fixed by #remove_global_options.
277
+
278
+ === 3.1.2 / 2009-03-16
279
+
280
+ * Added support for global options via #global_option
281
+ * Added #call_active_command and #say to clean things up internally
282
+ * Misc refactoring
283
+
284
+ === 3.1.1 / 2009-03-13
285
+
286
+ * Fixed some terminal formatter spacing issues
287
+
288
+ === 3.1.0 / 2009-03-13
289
+
290
+ * Added Command#inspect
291
+ * Added displaying of aliases in global help
292
+ * Added support for alias args
293
+ * Added #default_command
294
+
295
+ === 3.0.3 / 2009-03-12
296
+
297
+ * Added #alias_command
298
+
299
+ === 3.0.2 / 2009-03-12
300
+
301
+ * Added terminal formatter specs
302
+ * Fixed bug preventing command names passed to help from working
303
+
304
+ === 3.0.1 / 2009-03-12
305
+
306
+ * Fixed bug in #command_name_from_args preventing the left-most match for a command name to be used
307
+ * Fixed bug in Command#example preventing the formatter from outputting them correctly
308
+
309
+ === 3.0.0 / 2009-03-12
310
+
311
+ * Added sub command help support when using the --help switch
312
+ * #delete_switches is now mutative
313
+ * Added #valid_command_names_from
314
+ * #when_called now raises argument error when neither a block, object, or class is passed
315
+ * Added options#default method and specs
316
+ * Added support for multi-word list parsing in Array#parse
317
+ * Added summary to commander template
318
+ * Added optional block param for #new_command_runner spec helper
319
+ * Added .re (metadata for visionmedia-release gem)
320
+ * Moved delgation of Kernel methods to Object
321
+ * Refactored multi-word command name specs
322
+ * Refactored Object#method_missing; using call chain to implement
323
+ * Refactored all specs
324
+ * Change #color calls in formatters to $terminal#color for now
325
+ * Using highlines $terminal.output for IO stream with the progressbar
326
+ * Replaced #ensure_program_key_set with #require_program, taking an array of keys
327
+ * Renamed #args_without_command to #args_without_command_name
328
+ * Renamed #populate_options_to_when_called to #option_proc
329
+ * Renamed #sym_from_switch to #switch_to_sym
330
+ * Removed #get_command, use #command without supplying a block
331
+ * Removed Command#inspect
332
+ * Removed command description aliases of short_description, long_description. Use description / summary
333
+ * Removed VerboseFileUtils
334
+ * Removed String#camelcase as its not really needed (was only used in commander's executable for creating templates)
335
+ * Removed commander/import for now
336
+ * Removed LOG_FORMAT
337
+ * Removed Kernel ext which only had #color
338
+
339
+ === 2.5.7 / 2009-03-11
340
+
341
+ * Fixed paren warnings in import spec
342
+ * Fixed Kernel#method_missing to preserve its original behavior (Raise errors for missing methods or variables)
343
+
344
+ === 2.5.6 / 2009-03-06
345
+
346
+ * Replaced Commander::VERSION::STRING with Commander::VERSION (for release gem)
347
+ * Refactored progress bar
348
+ * Fixed String#tokenize
349
+
350
+ === 2.4.5 / 2009-03-03
351
+
352
+ * Fixed bug which was not allowing switch arguments which are strings
353
+ such as --eval 'something here'
354
+
355
+ === 2.4.4 / 2009-01-15
356
+
357
+ * Fixed bug which was not allowing multi-word commands to view help
358
+
359
+ === 2.4.3 / 2009-01-15
360
+
361
+ * Fixed bug in command_name_from_args, preventing multi-word commands
362
+
363
+ === 2.4.2 / 2009-01-12
364
+
365
+ * Github! build me!
366
+
367
+ === 2.4.1 / 2009-01-11
368
+
369
+ * Added ask_for_CLASS, which may be any class name such as ask_for_date, ask_for_array, etc
370
+ * Changed doc to *.rdoc for pretty markup on github
371
+
372
+ === 2.3.0 / 2008-12-16
373
+
374
+ * Removed input, output in favour of HighLines $terminal
375
+ * Autoloading terminal formatter since it may not always be used
376
+ * Added wrapping of text with 10 padding, defaults to 80
377
+ * Added friendly interruption message by default, overridable with trap or int_message
378
+ * Fixed description now showing as summary when no summary is available
379
+
380
+ === 2.2.1 / 2008-12-09
381
+
382
+ * Fixed typo in String#tokenize, preventing progress bar from working
383
+ * Fixed some small formatting issues with help output
384
+
385
+ === 2.2.0 / 2008-12-09
386
+
387
+ * Additional documentation
388
+ * Added support for arbitrary help 'blocks' using program :help, 'Your block', 'Your blocks contents'
389
+ * Added support for description, summary, short_description, and large_description, which are displaying conditionally within help docs
390
+ * Allowing uncaught exceptions to reach stderr, for debugging purposes
391
+
392
+ === 2.1.1 / 2008-12-01
393
+
394
+ * Changed #password, now requires that the user must enter a non-empty? value
395
+
396
+ === 2.1.0 / 2008-12-01
397
+
398
+ * Added progress bar
399
+ * Added auto-inclusion of FileUtils module
400
+ * Added stdout logging method
401
+ * Fixed issue with options placed before command
402
+
403
+ === 2.0.1 / 2008-11-24
404
+
405
+ * Fixed new line after command options
406
+ * Fixed padding for command list
407
+
408
+ === 2.0.0 / 2008-11-24
409
+
410
+ * Rewrite of entire gem
411
+ * Added auto-parsing and struct population of options
412
+ * Added better documentation
413
+
414
+ === 1.2.2 / 2008-11-06
415
+
416
+ * Forgot to add array.rb
417
+
418
+ === 1.2.0 / 2008-11-06
419
+
420
+ * Added paging ability (similar to 'less')
421
+ * Added coloring to default help generator
422
+
423
+ === 1.1.0 / 2008-11-06
424
+
425
+ * Added dependency for Highline gem, which replaces Commander's user interaction lib
426
+
427
+ === 1.0.4 / 2008-11-04
428
+
429
+ * Added support for --help and --version flags
430
+
431
+ === 1.0.3 / 2008-11-01
432
+
433
+ * Typo causing the gem to fail build on github
434
+
435
+ === 1.0.2 / 2008-11-01
436
+
437
+ * Added gemspec for github
438
+
439
+ === 1.0.1 / 2008-10-31
440
+
441
+ * Added shebang line to commander init
442
+ * Added require 'rubygems'
443
+
444
+ === 1.0.0 / 2008-10-31
445
+
446
+ * Initial release