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