clone 1.0.0.alpha → 1.0.0.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/Gemfile +1 -0
- data/LICENSE.txt +22 -0
- data/README.md +22 -1
- data/VERSION +1 -1
- data/bin/clone +7 -0
- data/clone.gemspec +4 -0
- data/docs/readme +16 -0
- data/docs/readme.txt +5 -0
- data/lib/clone.rb +13 -2
- data/lib/clone/config/config.rb +19 -0
- data/lib/clone/config/config.yml +22 -0
- data/lib/clone/config/default_config.yml +20 -0
- data/lib/clone/config/require.rb +3 -0
- data/lib/clone/config/version.rb +10 -0
- data/lib/clone/config/yml.rb +22 -0
- data/lib/clone/config/z_defaults.rb +28 -0
- data/lib/clone/generator/engine.rb +581 -0
- data/lib/clone/generator/terminal.rb +104 -0
- data/lib/clone/helpers/helper_methods.rb +251 -0
- data/lib/clone/helpers/local_methods.rb +150 -0
- data/lib/clone/helpers/require.rb +37 -0
- data/module/Marshal.4.8 +0 -0
- data/module/Marshal.4.8.Z +0 -0
- data/module/gems/commander-4.1.3/.gitignore +6 -0
- data/module/gems/commander-4.1.3/.travis.yml +11 -0
- data/module/gems/commander-4.1.3/DEVELOPMENT +15 -0
- data/module/gems/commander-4.1.3/Gemfile +3 -0
- data/module/gems/commander-4.1.3/History.rdoc +345 -0
- data/module/gems/commander-4.1.3/Manifest +38 -0
- data/module/gems/commander-4.1.3/README.rdoc +375 -0
- data/module/gems/commander-4.1.3/Rakefile +10 -0
- data/module/gems/commander-4.1.3/bin/commander +55 -0
- data/module/gems/commander-4.1.3/commander.gemspec +26 -0
- data/module/gems/commander-4.1.3/lib/commander.rb +32 -0
- data/module/gems/commander-4.1.3/lib/commander/blank.rb +8 -0
- data/module/gems/commander-4.1.3/lib/commander/command.rb +213 -0
- data/module/gems/commander-4.1.3/lib/commander/core_ext.rb +3 -0
- data/module/gems/commander-4.1.3/lib/commander/core_ext/array.rb +26 -0
- data/module/gems/commander-4.1.3/lib/commander/core_ext/object.rb +11 -0
- data/module/gems/commander-4.1.3/lib/commander/delegates.rb +13 -0
- data/module/gems/commander-4.1.3/lib/commander/help_formatters.rb +8 -0
- data/module/gems/commander-4.1.3/lib/commander/help_formatters/base.rb +18 -0
- data/module/gems/commander-4.1.3/lib/commander/help_formatters/terminal.rb +20 -0
- data/module/gems/commander-4.1.3/lib/commander/help_formatters/terminal/command_help.erb +35 -0
- data/module/gems/commander-4.1.3/lib/commander/help_formatters/terminal/help.erb +36 -0
- data/module/gems/commander-4.1.3/lib/commander/help_formatters/terminal_compact.rb +12 -0
- data/module/gems/commander-4.1.3/lib/commander/help_formatters/terminal_compact/command_help.erb +27 -0
- data/module/gems/commander-4.1.3/lib/commander/help_formatters/terminal_compact/help.erb +29 -0
- data/module/gems/commander-4.1.3/lib/commander/import.rb +10 -0
- data/module/gems/commander-4.1.3/lib/commander/platform.rb +8 -0
- data/module/gems/commander-4.1.3/lib/commander/runner.rb +411 -0
- data/module/gems/commander-4.1.3/lib/commander/user_interaction.rb +521 -0
- data/module/gems/commander-4.1.3/lib/commander/version.rb +3 -0
- data/module/gems/commander-4.1.3/spec/command_spec.rb +157 -0
- data/module/gems/commander-4.1.3/spec/core_ext/array_spec.rb +20 -0
- data/module/gems/commander-4.1.3/spec/core_ext/object_spec.rb +21 -0
- data/module/gems/commander-4.1.3/spec/help_formatters/terminal_spec.rb +67 -0
- data/module/gems/commander-4.1.3/spec/runner_spec.rb +526 -0
- data/module/gems/commander-4.1.3/spec/spec_helper.rb +59 -0
- data/module/gems/commander-4.1.3/spec/ui_spec.rb +30 -0
- data/module/gems/hello.rb +1 -0
- data/module/gems/highline-1.6.19/.gitignore +2 -0
- data/module/gems/highline-1.6.19/AUTHORS +3 -0
- data/module/gems/highline-1.6.19/CHANGELOG +346 -0
- data/module/gems/highline-1.6.19/COPYING +340 -0
- data/module/gems/highline-1.6.19/INSTALL +55 -0
- data/module/gems/highline-1.6.19/LICENSE +7 -0
- data/module/gems/highline-1.6.19/README.rdoc +63 -0
- data/module/gems/highline-1.6.19/Rakefile +50 -0
- data/module/gems/highline-1.6.19/TODO +6 -0
- data/module/gems/highline-1.6.19/examples/ansi_colors.rb +38 -0
- data/module/gems/highline-1.6.19/examples/asking_for_arrays.rb +18 -0
- data/module/gems/highline-1.6.19/examples/basic_usage.rb +75 -0
- data/module/gems/highline-1.6.19/examples/color_scheme.rb +32 -0
- data/module/gems/highline-1.6.19/examples/get_character.rb +12 -0
- data/module/gems/highline-1.6.19/examples/limit.rb +12 -0
- data/module/gems/highline-1.6.19/examples/menus.rb +65 -0
- data/module/gems/highline-1.6.19/examples/overwrite.rb +19 -0
- data/module/gems/highline-1.6.19/examples/page_and_wrap.rb +322 -0
- data/module/gems/highline-1.6.19/examples/password.rb +7 -0
- data/module/gems/highline-1.6.19/examples/repeat_entry.rb +21 -0
- data/module/gems/highline-1.6.19/examples/trapping_eof.rb +22 -0
- data/module/gems/highline-1.6.19/examples/using_readline.rb +17 -0
- data/module/gems/highline-1.6.19/highline.gemspec +37 -0
- data/module/gems/highline-1.6.19/lib/highline.rb +1012 -0
- data/module/gems/highline-1.6.19/lib/highline/color_scheme.rb +134 -0
- data/module/gems/highline-1.6.19/lib/highline/compatibility.rb +16 -0
- data/module/gems/highline-1.6.19/lib/highline/import.rb +41 -0
- data/module/gems/highline-1.6.19/lib/highline/menu.rb +398 -0
- data/module/gems/highline-1.6.19/lib/highline/question.rb +475 -0
- data/module/gems/highline-1.6.19/lib/highline/simulate.rb +48 -0
- data/module/gems/highline-1.6.19/lib/highline/string_extensions.rb +131 -0
- data/module/gems/highline-1.6.19/lib/highline/style.rb +181 -0
- data/module/gems/highline-1.6.19/lib/highline/system_extensions.rb +222 -0
- data/module/gems/highline-1.6.19/setup.rb +1360 -0
- data/module/gems/highline-1.6.19/site/.cvsignore +1 -0
- data/module/gems/highline-1.6.19/site/highline.css +65 -0
- data/module/gems/highline-1.6.19/site/images/logo.png +0 -0
- data/module/gems/highline-1.6.19/site/index.html +58 -0
- data/module/gems/highline-1.6.19/test/string_methods.rb +32 -0
- data/module/gems/highline-1.6.19/test/tc_color_scheme.rb +96 -0
- data/module/gems/highline-1.6.19/test/tc_highline.rb +1128 -0
- data/module/gems/highline-1.6.19/test/tc_import.rb +52 -0
- data/module/gems/highline-1.6.19/test/tc_menu.rb +439 -0
- data/module/gems/highline-1.6.19/test/tc_string_extension.rb +20 -0
- data/module/gems/highline-1.6.19/test/tc_string_highline.rb +38 -0
- data/module/gems/highline-1.6.19/test/tc_style.rb +567 -0
- data/module/gems/highline-1.6.19/test/ts_all.rb +16 -0
- data/module/latest_specs.4.8 +0 -0
- data/module/latest_specs.4.8.gz +0 -0
- data/module/prerelease_specs.4.8 +0 -0
- data/module/prerelease_specs.4.8.gz +0 -0
- data/module/specs.4.8 +0 -0
- data/module/specs.4.8.gz +0 -0
- data/samples/blather/restlike/Gemfile +4 -0
- data/samples/blather/restlike/cmd.yml +1 -0
- data/samples/blather/restlike/lib/blather.rb +9 -0
- data/samples/blather/restlike/lib/blather/dsl/api.rb +78 -0
- data/samples/blather/restlike/lib/blather/dsl/call.rb +13 -0
- data/samples/blather/restlike/lib/blather/dsl/client.rb +58 -0
- data/samples/blather/restlike/lib/blather/dsl/config.rb +11 -0
- data/samples/blather/restlike/lib/blather/dsl/extraDSL.rb +163 -0
- data/samples/blather/restlike/lib/blather/meta/require.rb +8 -0
- data/samples/blather/restlike/lib/blather/meta/xmpp.yml +5 -0
- data/samples/blather/restlike/lib/blather/vendors/xmpp_default.rb +27 -0
- data/samples/blather/restlike/readme +2 -0
- data/samples/grape/init/Gemfile +2 -0
- data/samples/grape/init/cmd.yml +3 -0
- data/samples/grape/init/config.ru +2 -0
- data/samples/grape/init/docs/grape/documentation.txt +939 -0
- data/samples/grape/init/docs/grape/generate_rest_routes.rb +37 -0
- data/samples/grape/init/docs/grape/ls_routes.rb +31 -0
- data/samples/grape/init/lib/grape.rb +4 -0
- data/samples/grape/init/lib/grape/meta/subclasses.rb +20 -0
- data/samples/grape/init/lib/grape/xpath/app.rb +30 -0
- data/samples/grape/init/lib/grape/xpath/ruotes.rb +6 -0
- data/samples/grape/init/readme +1 -0
- data/samples/grape/readme +29 -0
- data/samples/grape/vendor/lib/grape/vendors/v1/rest.rb +57 -0
- data/samples/mongoid/cmd.yml +1 -0
- data/samples/mongoid/init/Gemfile +3 -0
- data/samples/mongoid/init/cmd.yml +2 -0
- data/samples/mongoid/init/docs/mongoid/ModelsRelations.rb +11 -0
- data/samples/mongoid/init/docs/mongoid/documents.xls +0 -0
- data/samples/mongoid/init/docs/mongoid/generate_modelsToDocs.rb +25 -0
- data/samples/mongoid/init/docs/mongoid/modelsToDocs.rb +25 -0
- data/samples/mongoid/init/docs/mongoid/relations.txt +1354 -0
- data/samples/mongoid/init/lib/mongoid.rb +44 -0
- data/samples/mongoid/init/lib/mongoid/dsl/extraDSL_CRUD.rb +446 -0
- data/samples/mongoid/init/lib/mongoid/dsl/extraDSL_MP.rb +517 -0
- data/samples/mongoid/init/lib/mongoid/dsl/init.rb +37 -0
- data/samples/mongoid/init/lib/mongoid/dsl/params.rb +67 -0
- data/samples/mongoid/init/lib/mongoid/meta/banned.rb +147 -0
- data/samples/mongoid/init/lib/mongoid/meta/control.yml +13 -0
- data/samples/mongoid/init/lib/mongoid/meta/mongoid.yml +6 -0
- data/samples/mongoid/init/lib/mongoid/meta/mpatch.rb +14 -0
- data/samples/mongoid/model/lib/mongoid/models/model.rb +28 -0
- data/samples/mongoid/readme +33 -0
- data/samples/rack/init/Gemfile +10 -0
- data/samples/rack/init/cmd.yml +2 -0
- data/samples/rack/init/config.ru +1 -0
- data/samples/rack/init/docs/rack/rake introducing.txt +60 -0
- data/samples/rack/init/docs/rack/webservers/Thin +43 -0
- data/samples/rack/init/docs/rack/webservers/ebb +72 -0
- data/samples/rack/init/docs/rack/webservers/fcgi +103 -0
- data/samples/rack/init/docs/rack/webservers/mongrel +74 -0
- data/samples/rack/init/docs/rack/webservers/passenger +37 -0
- data/samples/rack/init/docs/rack/webservers/scgi +188 -0
- data/samples/rack/init/lib/rack.rb +1 -0
- data/samples/rack/init/lib/rack/meta/webserver/thin.rb +45 -0
- data/samples/rack/init/lib/rack/meta/webserver/thin.yml +6 -0
- data/samples/rack/init/server.rb +0 -0
- data/samples/rack/readme +13 -0
- data/samples/rest_client/init/Gemfile +5 -0
- data/samples/rest_client/init/boot.rb +2 -0
- data/samples/rest_client/init/cmd.yml +1 -0
- data/samples/rest_client/init/config/rest_client/defaults.rb +16 -0
- data/samples/rest_client/init/docs/rest_client/simple overlook +251 -0
- data/samples/rest_client/init/test/rest_client/rest_dsl.rb +5 -0
- data/samples/rest_client/readme +7 -0
- data/samples/scripts/lines_counter/lines_number.rb +32 -0
- data/samples/scripts/lines_counter/readme +5 -0
- data/samples/scripts/readme +1 -0
- metadata +197 -7
- data/lib/clone/cms.rb +0 -56
- data/lib/clone/ext.rb +0 -77
- data/sample/test.rb +0 -30
@@ -0,0 +1,37 @@
|
|
1
|
+
begin
|
2
|
+
|
3
|
+
### #Return File_name:File_path
|
4
|
+
def get_files(folder)
|
5
|
+
|
6
|
+
### Pre def. variables
|
7
|
+
begin
|
8
|
+
files = Hash.new
|
9
|
+
end
|
10
|
+
|
11
|
+
### Validation
|
12
|
+
begin
|
13
|
+
### Check that does the folder is absolute or not
|
14
|
+
if folder != File.expand_path(folder)
|
15
|
+
folder = File.expand_path(folder)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
### Get Files list
|
20
|
+
begin
|
21
|
+
Dir[File.join(folder,'**','*')].uniq.each do |file_path|
|
22
|
+
if !File.directory? file_path
|
23
|
+
files[file_path.split(File::SEPARATOR).last.to_sym]= file_path
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
### Return file_name:folder
|
29
|
+
return files
|
30
|
+
end
|
31
|
+
|
32
|
+
### Offline repo activate
|
33
|
+
begin
|
34
|
+
$LOAD_PATH << (File.expand_path(File.join(File.dirname(__FILE__),"..","..","..","module","gems")))
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
data/module/Marshal.4.8
ADDED
Binary file
|
Binary file
|
@@ -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)
|
@@ -0,0 +1,345 @@
|
|
1
|
+
=== 4.1.3 / 2012-12-15
|
2
|
+
|
3
|
+
* Remove use of eval in Array.parse
|
4
|
+
* Make generated template executable and set better defaults (@suan)
|
5
|
+
* Fixed valid_command_names_from to match exact commands only (@fgalassi)
|
6
|
+
|
7
|
+
=== 4.1.2 / 2012-02-17
|
8
|
+
|
9
|
+
* Improvement to `ask_editor` to be more portable across *nix variants. (thanks to Federico Galassi)
|
10
|
+
|
11
|
+
=== 4.1.1 / 2012-02-16
|
12
|
+
|
13
|
+
* Update `ask_editor` to work with any *nix editor - emacs, vim, etc. (thanks to Federico Galassi)
|
14
|
+
|
15
|
+
=== 4.1.0 / 2012-02-12
|
16
|
+
|
17
|
+
* Update highline dependency.
|
18
|
+
* Make optional arguments true when present (issue #2).
|
19
|
+
|
20
|
+
=== 4.0.7 / 2012-01-23
|
21
|
+
|
22
|
+
* Improved support for JRuby and Windows (and any other platforms that don't support Kernel.fork).
|
23
|
+
* Fixed bug #33 - support `--help` after commands.
|
24
|
+
* Reorganized help output to display synopsis before description (issue #12).
|
25
|
+
|
26
|
+
=== 4.0.6 / 2011-09-15
|
27
|
+
|
28
|
+
* Improved load time on Ruby 1.9. (thanks to Jonathon M. Abbott)
|
29
|
+
* Updated documentation.
|
30
|
+
|
31
|
+
=== 4.0.5 / 2011-08-09
|
32
|
+
|
33
|
+
* Updated documentation to fix inaccuracies and unclear information.
|
34
|
+
* Improved rake tasks for gem development.
|
35
|
+
* Added say_ok, say_warning and say_error methods to print messages in green, yellow or red. (thanks to Simon Courtois)
|
36
|
+
* Fixed; Allow global options to be passed in any order, even mixed with command options. (thanks to Rich Grundy)
|
37
|
+
* 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)
|
38
|
+
* Fixed; Platform test should now correctly identify JRuby. (thanks to Justin Lynn)
|
39
|
+
* Fixed; Add to_s to exceptions as option parser no longer does implicit conversion. (thanks to Justin Lynn)
|
40
|
+
|
41
|
+
=== 4.0.4 / 2011-04-04
|
42
|
+
|
43
|
+
* Fixed program(:key) behavior for non-Array keys like name, version, description under Ruby 1.9
|
44
|
+
* All specs should pass under Ruby 1.9 now
|
45
|
+
|
46
|
+
=== 4.0.3 / 2010-04-06
|
47
|
+
|
48
|
+
* Fixed global_option which was consuming arguments when not expected. Closes #22
|
49
|
+
|
50
|
+
=== 4.0.2 / 2010-01-19
|
51
|
+
|
52
|
+
* Added program(:int_block) to allow a block to be run on interrupt.
|
53
|
+
* Fixed; ProgressBar immediately shows, and doesn't die on empty lists.
|
54
|
+
|
55
|
+
=== 4.0.1 / 2010-01-14
|
56
|
+
|
57
|
+
* Fixed commander when using JRuby
|
58
|
+
* Fixed template; should require "commander/import"
|
59
|
+
|
60
|
+
=== 4.0.0 / 2009-10-10
|
61
|
+
|
62
|
+
* Changed; Aliased #when_called as #action [#9]
|
63
|
+
* Changed; Sort commands and aliases alphabetically.
|
64
|
+
* Changed; Sort aliases alphabetically
|
65
|
+
* Changed; Sort commands alphabetically.
|
66
|
+
* Changed; require user to require 'commander/import' for dsl
|
67
|
+
* Fixed broken regexp; Changed :int_message, only traps INT when available
|
68
|
+
* Fixed Ruby 1.9 warning caused by removing object_id from Object
|
69
|
+
* Removed #eval const hack
|
70
|
+
* Moving to Gemcutter (GRRRR Github)
|
71
|
+
|
72
|
+
=== 3.3.0 / 2009-05-12
|
73
|
+
|
74
|
+
* Added #choose
|
75
|
+
* Added aliasing for help formatters [#24]
|
76
|
+
* Added UI.replace_tokens
|
77
|
+
* Added #converse
|
78
|
+
* Added #speak
|
79
|
+
* Added #applescript
|
80
|
+
* Added #reset_io
|
81
|
+
* Added #io
|
82
|
+
* Removed String#tokenize
|
83
|
+
* Removed #delete_switches
|
84
|
+
|
85
|
+
=== 3.2.9 / 2009-04-09
|
86
|
+
|
87
|
+
* Fixed bug in removal of global options
|
88
|
+
|
89
|
+
=== 3.2.8 / 2009-04-09
|
90
|
+
|
91
|
+
* Added auto-loading support of visionmedia-growl convenience methods when the gem is available
|
92
|
+
* Changed; growl related methods are now part of visionmedia-growl
|
93
|
+
* Fixed doc typos
|
94
|
+
|
95
|
+
=== 3.2.7 / 2009-04-08
|
96
|
+
|
97
|
+
* Added #notify, #notify_ok, #notify_warning, #notify_info and #notify_error
|
98
|
+
These methods all utilize the MacOS growlnotify binary, very cool stuff check it out!
|
99
|
+
|
100
|
+
=== 3.2.6 / 2009-04-08
|
101
|
+
|
102
|
+
* Added Commander::UI::AskForClass
|
103
|
+
* Added support to #remove_global_options for options with arguments
|
104
|
+
* Removed .re directory used for visionmedia-release
|
105
|
+
* Fixed bug preventing --trace from working
|
106
|
+
|
107
|
+
=== 3.2.5 / 2009-04-02
|
108
|
+
|
109
|
+
* Added #ask_editor
|
110
|
+
|
111
|
+
=== 3.2.4 / 2009-04-02
|
112
|
+
|
113
|
+
* Added #enable_paging [#9]
|
114
|
+
|
115
|
+
=== 3.2.3 / 2009-04-01
|
116
|
+
|
117
|
+
* Added new pager using less [#9]
|
118
|
+
|
119
|
+
=== 3.2.2 / 2009-04-01
|
120
|
+
|
121
|
+
* Github's gem builder timed out ? ...
|
122
|
+
|
123
|
+
=== 3.2.1 / 2009-04-01
|
124
|
+
|
125
|
+
* Added Commander::HelpFormatter::TerminalCompact
|
126
|
+
* Fix; updated gemspec / manifest removing test/* causing issue [#26]
|
127
|
+
|
128
|
+
=== 3.2.0 / 2009-03-26
|
129
|
+
|
130
|
+
* Added implied small switches so they appear in help (-h, -v, etc)
|
131
|
+
* Added #inspect back to Commander::Command::Options [#1]
|
132
|
+
* Added inheritance of global options for commands [#7]
|
133
|
+
* Added #require_valid_command
|
134
|
+
* Renamed #call_active_command to #run_active_command
|
135
|
+
* Changed; using same option format as command options for globals [#18]
|
136
|
+
* Changed; program :name is now optional, and is auto-defined when not specified [#21]
|
137
|
+
* Moved #switch_to_sym from Command to Commander::Runner
|
138
|
+
* Moved #separate_switches_from_description into Commander::Runner [#22]
|
139
|
+
* Removed program :name from commander init template since its not required anymore
|
140
|
+
|
141
|
+
=== 3.1.8 / 2009-03-25
|
142
|
+
|
143
|
+
* Utilizing abort and $stderr instead of using #say [#16]
|
144
|
+
* Fixed INT trapping issue (purely cosmetic) [#14]
|
145
|
+
* Removed todo, use lighthouse now for commander at:
|
146
|
+
http://visionmedia.lighthouseapp.com/projects/27643-commander/overview
|
147
|
+
|
148
|
+
=== 3.1.7 / 2009-03-24
|
149
|
+
|
150
|
+
* Added global --trace option
|
151
|
+
|
152
|
+
=== 3.1.6 / 2009-03-22
|
153
|
+
|
154
|
+
* Changed Options struct to always use symbols
|
155
|
+
|
156
|
+
=== 3.1.5 / 2009-03-22
|
157
|
+
|
158
|
+
* Added Options#__hash__ to access the internal hash table
|
159
|
+
* Refactored Options struct to function much like an OpenStruct
|
160
|
+
* Updated commander exec init help description
|
161
|
+
|
162
|
+
=== 3.1.4 / 2009-03-20
|
163
|
+
|
164
|
+
* Gemspec typo
|
165
|
+
|
166
|
+
=== 3.1.3 / 2009-03-20
|
167
|
+
|
168
|
+
* Added #remove_global_options
|
169
|
+
* Added core global option descriptions
|
170
|
+
* Added display of global options
|
171
|
+
* Removed small core switches (-v, -h) because they are implicitly set
|
172
|
+
* Fixed issue with option switchs failing when named as common methods like --send, or --password
|
173
|
+
* Fixed bug causing InvalidOption error when global options do not abort the process.
|
174
|
+
This was due to these options remaining in the arguments array, in turn being parsed
|
175
|
+
by the command's option parser, issuing the error. This is fixed by #remove_global_options.
|
176
|
+
|
177
|
+
=== 3.1.2 / 2009-03-16
|
178
|
+
|
179
|
+
* Added support for global options via #global_option
|
180
|
+
* Added #call_active_command and #say to clean things up internally
|
181
|
+
* Misc refactoring
|
182
|
+
|
183
|
+
=== 3.1.1 / 2009-03-13
|
184
|
+
|
185
|
+
* Fixed some terminal formatter spacing issues
|
186
|
+
|
187
|
+
=== 3.1.0 / 2009-03-13
|
188
|
+
|
189
|
+
* Added Command#inspect
|
190
|
+
* Added displaying of aliases in global help
|
191
|
+
* Added support for alias args
|
192
|
+
* Added #default_command
|
193
|
+
|
194
|
+
=== 3.0.3 / 2009-03-12
|
195
|
+
|
196
|
+
* Added #alias_command
|
197
|
+
|
198
|
+
=== 3.0.2 / 2009-03-12
|
199
|
+
|
200
|
+
* Added terminal formatter specs
|
201
|
+
* Fixed bug preventing command names passed to help from working
|
202
|
+
|
203
|
+
=== 3.0.1 / 2009-03-12
|
204
|
+
|
205
|
+
* Fixed bug in #command_name_from_args preventing the left-most match for a command name to be used
|
206
|
+
* Fixed bug in Command#example preventing the formatter from outputting them correctly
|
207
|
+
|
208
|
+
=== 3.0.0 / 2009-03-12
|
209
|
+
|
210
|
+
* Added sub command help support when using the --help switch
|
211
|
+
* #delete_switches is now mutative
|
212
|
+
* Added #valid_command_names_from
|
213
|
+
* #when_called now raises argument error when neither a block, object, or class is passed
|
214
|
+
* Added options#default method and specs
|
215
|
+
* Added support for multi-word list parsing in Array#parse
|
216
|
+
* Added summary to commander template
|
217
|
+
* Added optional block param for #new_command_runner spec helper
|
218
|
+
* Added .re (metadata for visionmedia-release gem)
|
219
|
+
* Moved delgation of Kernel methods to Object
|
220
|
+
* Refactored multi-word command name specs
|
221
|
+
* Refactored Object#method_missing; using call chain to implement
|
222
|
+
* Refactored all specs
|
223
|
+
* Change #color calls in formatters to $terminal#color for now
|
224
|
+
* Using highlines $terminal.output for IO stream with the progressbar
|
225
|
+
* Replaced #ensure_program_key_set with #require_program, taking an array of keys
|
226
|
+
* Renamed #args_without_command to #args_without_command_name
|
227
|
+
* Renamed #populate_options_to_when_called to #option_proc
|
228
|
+
* Renamed #sym_from_switch to #switch_to_sym
|
229
|
+
* Removed #get_command, use #command without supplying a block
|
230
|
+
* Removed Command#inspect
|
231
|
+
* Removed command description aliases of short_description, long_description. Use description / summary
|
232
|
+
* Removed VerboseFileUtils
|
233
|
+
* Removed String#camelcase as its not really needed (was only used in commander's executable for creating templates)
|
234
|
+
* Removed commander/import for now
|
235
|
+
* Removed LOG_FORMAT
|
236
|
+
* Removed Kernel ext which only had #color
|
237
|
+
|
238
|
+
=== 2.5.7 / 2009-03-11
|
239
|
+
|
240
|
+
* Fixed paren warnings in import spec
|
241
|
+
* Fixed Kernel#method_missing to preserve its original behavior (Raise errors for missing methods or variables)
|
242
|
+
|
243
|
+
=== 2.5.6 / 2009-03-06
|
244
|
+
|
245
|
+
* Replaced Commander::VERSION::STRING with Commander::VERSION (for release gem)
|
246
|
+
* Refactored progress bar
|
247
|
+
* Fixed String#tokenize
|
248
|
+
|
249
|
+
=== 2.4.5 / 2009-03-03
|
250
|
+
|
251
|
+
* Fixed bug which was not allowing switch arguments which are strings
|
252
|
+
such as --eval 'something here'
|
253
|
+
|
254
|
+
=== 2.4.4 / 2009-01-15
|
255
|
+
|
256
|
+
* Fixed bug which was not allowing multi-word commands to view help
|
257
|
+
|
258
|
+
=== 2.4.3 / 2009-01-15
|
259
|
+
|
260
|
+
* Fixed bug in command_name_from_args, preventing multi-word commands
|
261
|
+
|
262
|
+
=== 2.4.2 / 2009-01-12
|
263
|
+
|
264
|
+
* Github! build me!
|
265
|
+
|
266
|
+
=== 2.4.1 / 2009-01-11
|
267
|
+
|
268
|
+
* Added ask_for_CLASS, which may be any class name such as ask_for_date, ask_for_array, etc
|
269
|
+
* Changed doc to *.rdoc for pretty markup on github
|
270
|
+
|
271
|
+
=== 2.3.0 / 2008-12-16
|
272
|
+
|
273
|
+
* Removed input, output in favour of HighLines $terminal
|
274
|
+
* Autoloading terminal formatter since it may not always be used
|
275
|
+
* Added wrapping of text with 10 padding, defaults to 80
|
276
|
+
* Added friendly interruption message by default, overridable with trap or int_message
|
277
|
+
* Fixed description now showing as summary when no summary is available
|
278
|
+
|
279
|
+
=== 2.2.1 / 2008-12-09
|
280
|
+
|
281
|
+
* Fixed typo in String#tokenize, preventing progress bar from working
|
282
|
+
* Fixed some small formatting issues with help output
|
283
|
+
|
284
|
+
=== 2.2.0 / 2008-12-09
|
285
|
+
|
286
|
+
* Additional documentation
|
287
|
+
* Added support for arbitrary help 'blocks' using program :help, 'Your block', 'Your blocks contents'
|
288
|
+
* Added support for description, summary, short_description, and large_description, which are displaying conditionally within help docs
|
289
|
+
* Allowing uncaught exceptions to reach stderr, for debugging purposes
|
290
|
+
|
291
|
+
=== 2.1.1 / 2008-12-01
|
292
|
+
|
293
|
+
* Changed #password, now requires that the user must enter a non-empty? value
|
294
|
+
|
295
|
+
=== 2.1.0 / 2008-12-01
|
296
|
+
|
297
|
+
* Added progress bar
|
298
|
+
* Added auto-inclusion of FileUtils module
|
299
|
+
* Added stdout logging method
|
300
|
+
* Fixed issue with options placed before command
|
301
|
+
|
302
|
+
=== 2.0.1 / 2008-11-24
|
303
|
+
|
304
|
+
* Fixed new line after command options
|
305
|
+
* Fixed padding for command list
|
306
|
+
|
307
|
+
=== 2.0.0 / 2008-11-24
|
308
|
+
|
309
|
+
* Rewrite of entire gem
|
310
|
+
* Added auto-parsing and struct population of options
|
311
|
+
* Added better documentation
|
312
|
+
|
313
|
+
=== 1.2.2 / 2008-11-06
|
314
|
+
|
315
|
+
* Forgot to add array.rb
|
316
|
+
|
317
|
+
=== 1.2.0 / 2008-11-06
|
318
|
+
|
319
|
+
* Added paging ability (similar to 'less')
|
320
|
+
* Added coloring to default help generator
|
321
|
+
|
322
|
+
=== 1.1.0 / 2008-11-06
|
323
|
+
|
324
|
+
* Added dependency for Highline gem, which replaces Commander's user interaction lib
|
325
|
+
|
326
|
+
=== 1.0.4 / 2008-11-04
|
327
|
+
|
328
|
+
* Added support for --help and --version flags
|
329
|
+
|
330
|
+
=== 1.0.3 / 2008-11-01
|
331
|
+
|
332
|
+
* Typo causing the gem to fail build on github
|
333
|
+
|
334
|
+
=== 1.0.2 / 2008-11-01
|
335
|
+
|
336
|
+
* Added gemspec for github
|
337
|
+
|
338
|
+
=== 1.0.1 / 2008-10-31
|
339
|
+
|
340
|
+
* Added shebang line to commander init
|
341
|
+
* Added require 'rubygems'
|
342
|
+
|
343
|
+
=== 1.0.0 / 2008-10-31
|
344
|
+
|
345
|
+
* Initial release
|
@@ -0,0 +1,38 @@
|
|
1
|
+
DEVELOPMENT
|
2
|
+
History.rdoc
|
3
|
+
Manifest
|
4
|
+
README.rdoc
|
5
|
+
Rakefile
|
6
|
+
bin/commander
|
7
|
+
commander.gemspec
|
8
|
+
lib/commander.rb
|
9
|
+
lib/commander/blank.rb
|
10
|
+
lib/commander/command.rb
|
11
|
+
lib/commander/core_ext.rb
|
12
|
+
lib/commander/core_ext/array.rb
|
13
|
+
lib/commander/core_ext/object.rb
|
14
|
+
lib/commander/delegates.rb
|
15
|
+
lib/commander/help_formatters.rb
|
16
|
+
lib/commander/help_formatters/base.rb
|
17
|
+
lib/commander/help_formatters/terminal.rb
|
18
|
+
lib/commander/help_formatters/terminal/command_help.erb
|
19
|
+
lib/commander/help_formatters/terminal/help.erb
|
20
|
+
lib/commander/help_formatters/terminal_compact.rb
|
21
|
+
lib/commander/help_formatters/terminal_compact/command_help.erb
|
22
|
+
lib/commander/help_formatters/terminal_compact/help.erb
|
23
|
+
lib/commander/import.rb
|
24
|
+
lib/commander/platform.rb
|
25
|
+
lib/commander/runner.rb
|
26
|
+
lib/commander/user_interaction.rb
|
27
|
+
lib/commander/version.rb
|
28
|
+
spec/command_spec.rb
|
29
|
+
spec/core_ext/array_spec.rb
|
30
|
+
spec/core_ext/object_spec.rb
|
31
|
+
spec/help_formatters/terminal_spec.rb
|
32
|
+
spec/runner_spec.rb
|
33
|
+
spec/spec.opts
|
34
|
+
spec/spec_helper.rb
|
35
|
+
spec/ui_spec.rb
|
36
|
+
tasks/dev_setup.rake
|
37
|
+
tasks/docs.rake
|
38
|
+
tasks/gemspec.rake
|