thor 0.16.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/CONTRIBUTING.md +15 -0
  3. data/README.md +23 -6
  4. data/bin/thor +1 -1
  5. data/lib/thor/actions/create_file.rb +34 -35
  6. data/lib/thor/actions/create_link.rb +9 -5
  7. data/lib/thor/actions/directory.rb +33 -23
  8. data/lib/thor/actions/empty_directory.rb +75 -85
  9. data/lib/thor/actions/file_manipulation.rb +103 -36
  10. data/lib/thor/actions/inject_into_file.rb +46 -36
  11. data/lib/thor/actions.rb +90 -68
  12. data/lib/thor/base.rb +302 -244
  13. data/lib/thor/command.rb +142 -0
  14. data/lib/thor/core_ext/hash_with_indifferent_access.rb +52 -24
  15. data/lib/thor/error.rb +90 -10
  16. data/lib/thor/group.rb +70 -74
  17. data/lib/thor/invocation.rb +63 -55
  18. data/lib/thor/line_editor/basic.rb +37 -0
  19. data/lib/thor/line_editor/readline.rb +88 -0
  20. data/lib/thor/line_editor.rb +17 -0
  21. data/lib/thor/nested_context.rb +29 -0
  22. data/lib/thor/parser/argument.rb +24 -28
  23. data/lib/thor/parser/arguments.rb +110 -102
  24. data/lib/thor/parser/option.rb +53 -15
  25. data/lib/thor/parser/options.rb +174 -97
  26. data/lib/thor/parser.rb +4 -4
  27. data/lib/thor/rake_compat.rb +12 -11
  28. data/lib/thor/runner.rb +159 -155
  29. data/lib/thor/shell/basic.rb +216 -93
  30. data/lib/thor/shell/color.rb +53 -40
  31. data/lib/thor/shell/html.rb +61 -58
  32. data/lib/thor/shell.rb +29 -36
  33. data/lib/thor/util.rb +231 -213
  34. data/lib/thor/version.rb +1 -1
  35. data/lib/thor.rb +303 -166
  36. data/thor.gemspec +27 -24
  37. metadata +36 -226
  38. data/.gitignore +0 -44
  39. data/.rspec +0 -2
  40. data/.travis.yml +0 -7
  41. data/CHANGELOG.rdoc +0 -134
  42. data/Gemfile +0 -15
  43. data/Thorfile +0 -30
  44. data/bin/rake2thor +0 -86
  45. data/lib/thor/core_ext/dir_escape.rb +0 -0
  46. data/lib/thor/core_ext/file_binary_read.rb +0 -9
  47. data/lib/thor/core_ext/ordered_hash.rb +0 -100
  48. data/lib/thor/task.rb +0 -132
  49. data/spec/actions/create_file_spec.rb +0 -170
  50. data/spec/actions/create_link_spec.rb +0 -81
  51. data/spec/actions/directory_spec.rb +0 -149
  52. data/spec/actions/empty_directory_spec.rb +0 -130
  53. data/spec/actions/file_manipulation_spec.rb +0 -370
  54. data/spec/actions/inject_into_file_spec.rb +0 -135
  55. data/spec/actions_spec.rb +0 -331
  56. data/spec/base_spec.rb +0 -279
  57. data/spec/core_ext/hash_with_indifferent_access_spec.rb +0 -43
  58. data/spec/core_ext/ordered_hash_spec.rb +0 -115
  59. data/spec/exit_condition_spec.rb +0 -19
  60. data/spec/fixtures/application.rb +0 -2
  61. data/spec/fixtures/app{1}/README +0 -3
  62. data/spec/fixtures/bundle/execute.rb +0 -6
  63. data/spec/fixtures/bundle/main.thor +0 -1
  64. data/spec/fixtures/doc/%file_name%.rb.tt +0 -1
  65. data/spec/fixtures/doc/COMMENTER +0 -10
  66. data/spec/fixtures/doc/README +0 -3
  67. data/spec/fixtures/doc/block_helper.rb +0 -3
  68. data/spec/fixtures/doc/components/.empty_directory +0 -0
  69. data/spec/fixtures/doc/config.rb +0 -1
  70. data/spec/fixtures/doc/config.yaml.tt +0 -1
  71. data/spec/fixtures/enum.thor +0 -10
  72. data/spec/fixtures/group.thor +0 -114
  73. data/spec/fixtures/invoke.thor +0 -112
  74. data/spec/fixtures/path with spaces +0 -0
  75. data/spec/fixtures/script.thor +0 -190
  76. data/spec/fixtures/task.thor +0 -10
  77. data/spec/group_spec.rb +0 -216
  78. data/spec/invocation_spec.rb +0 -100
  79. data/spec/parser/argument_spec.rb +0 -53
  80. data/spec/parser/arguments_spec.rb +0 -66
  81. data/spec/parser/option_spec.rb +0 -202
  82. data/spec/parser/options_spec.rb +0 -330
  83. data/spec/rake_compat_spec.rb +0 -72
  84. data/spec/register_spec.rb +0 -135
  85. data/spec/runner_spec.rb +0 -241
  86. data/spec/shell/basic_spec.rb +0 -300
  87. data/spec/shell/color_spec.rb +0 -81
  88. data/spec/shell/html_spec.rb +0 -32
  89. data/spec/shell_spec.rb +0 -47
  90. data/spec/spec_helper.rb +0 -59
  91. data/spec/task_spec.rb +0 -80
  92. data/spec/thor_spec.rb +0 -418
  93. data/spec/util_spec.rb +0 -196
data/thor.gemspec CHANGED
@@ -1,26 +1,29 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/thor/version', __FILE__)
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib/", __FILE__)
3
+ $LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
4
+ require "thor/version"
3
5
 
4
- Gem::Specification.new do |s|
5
- s.add_development_dependency 'bundler', '~> 1.0'
6
- s.add_development_dependency 'fakeweb', '~> 1.3'
7
- s.add_development_dependency 'rake', '~> 0.9'
8
- s.add_development_dependency 'rdoc', '~> 3.9'
9
- s.add_development_dependency 'rspec', '~> 2.3'
10
- s.add_development_dependency 'simplecov', '~> 0.4'
11
- s.add_development_dependency 'childlabor'
12
- s.authors = ['Yehuda Katz', 'José Valim']
13
- s.description = %q{A scripting framework that replaces rake, sake and rubigen}
14
- s.email = 'ruby-thor@googlegroups.com'
15
- s.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
16
- s.extra_rdoc_files = ['CHANGELOG.rdoc', 'LICENSE.md', 'README.md', 'Thorfile']
17
- s.files = `git ls-files`.split("\n")
18
- s.homepage = 'http://whatisthor.com/'
19
- s.name = 'thor'
20
- s.rdoc_options = ['--charset=UTF-8']
21
- s.require_paths = ['lib']
22
- s.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
23
- s.summary = s.description
24
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
25
- s.version = Thor::VERSION
6
+ Gem::Specification.new do |spec|
7
+ spec.add_development_dependency "bundler", ">= 1.0", "< 3"
8
+ spec.authors = ["Yehuda Katz", "José Valim"]
9
+ spec.description = "Thor is a toolkit for building powerful command-line interfaces."
10
+ spec.email = "ruby-thor@googlegroups.com"
11
+ spec.executables = %w(thor)
12
+ spec.files = %w(.document thor.gemspec) + Dir["*.md", "bin/*", "lib/**/*.rb"]
13
+ spec.homepage = "http://whatisthor.com/"
14
+ spec.licenses = %w(MIT)
15
+ spec.name = "thor"
16
+ spec.metadata = {
17
+ "bug_tracker_uri" => "https://github.com/rails/thor/issues",
18
+ "changelog_uri" => "https://github.com/rails/thor/releases/tag/v#{Thor::VERSION}",
19
+ "documentation_uri" => "http://whatisthor.com/",
20
+ "source_code_uri" => "https://github.com/rails/thor/tree/v#{Thor::VERSION}",
21
+ "wiki_uri" => "https://github.com/rails/thor/wiki",
22
+ "rubygems_mfa_required" => "true",
23
+ }
24
+ spec.require_paths = %w(lib)
25
+ spec.required_ruby_version = ">= 2.0.0"
26
+ spec.required_rubygems_version = ">= 1.3.5"
27
+ spec.summary = spec.description
28
+ spec.version = Thor::VERSION
26
29
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
5
- prerelease:
4
+ version: 1.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Yehuda Katz
@@ -10,142 +9,39 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2012-08-14 00:00:00.000000000 Z
12
+ date: 2022-01-04 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: bundler
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ~>
18
+ - - ">="
21
19
  - !ruby/object:Gem::Version
22
20
  version: '1.0'
23
- type: :development
24
- prerelease: false
25
- version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ~>
29
- - !ruby/object:Gem::Version
30
- version: '1.0'
31
- - !ruby/object:Gem::Dependency
32
- name: fakeweb
33
- requirement: !ruby/object:Gem::Requirement
34
- none: false
35
- requirements:
36
- - - ~>
37
- - !ruby/object:Gem::Version
38
- version: '1.3'
39
- type: :development
40
- prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ~>
45
- - !ruby/object:Gem::Version
46
- version: '1.3'
47
- - !ruby/object:Gem::Dependency
48
- name: rake
49
- requirement: !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: '0.9'
55
- type: :development
56
- prerelease: false
57
- version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
- requirements:
60
- - - ~>
61
- - !ruby/object:Gem::Version
62
- version: '0.9'
63
- - !ruby/object:Gem::Dependency
64
- name: rdoc
65
- requirement: !ruby/object:Gem::Requirement
66
- none: false
67
- requirements:
68
- - - ~>
69
- - !ruby/object:Gem::Version
70
- version: '3.9'
71
- type: :development
72
- prerelease: false
73
- version_requirements: !ruby/object:Gem::Requirement
74
- none: false
75
- requirements:
76
- - - ~>
77
- - !ruby/object:Gem::Version
78
- version: '3.9'
79
- - !ruby/object:Gem::Dependency
80
- name: rspec
81
- requirement: !ruby/object:Gem::Requirement
82
- none: false
83
- requirements:
84
- - - ~>
85
- - !ruby/object:Gem::Version
86
- version: '2.3'
87
- type: :development
88
- prerelease: false
89
- version_requirements: !ruby/object:Gem::Requirement
90
- none: false
91
- requirements:
92
- - - ~>
93
- - !ruby/object:Gem::Version
94
- version: '2.3'
95
- - !ruby/object:Gem::Dependency
96
- name: simplecov
97
- requirement: !ruby/object:Gem::Requirement
98
- none: false
99
- requirements:
100
- - - ~>
21
+ - - "<"
101
22
  - !ruby/object:Gem::Version
102
- version: '0.4'
23
+ version: '3'
103
24
  type: :development
104
25
  prerelease: false
105
26
  version_requirements: !ruby/object:Gem::Requirement
106
- none: false
107
- requirements:
108
- - - ~>
109
- - !ruby/object:Gem::Version
110
- version: '0.4'
111
- - !ruby/object:Gem::Dependency
112
- name: childlabor
113
- requirement: !ruby/object:Gem::Requirement
114
- none: false
115
27
  requirements:
116
- - - ! '>='
28
+ - - ">="
117
29
  - !ruby/object:Gem::Version
118
- version: '0'
119
- type: :development
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- none: false
123
- requirements:
124
- - - ! '>='
30
+ version: '1.0'
31
+ - - "<"
125
32
  - !ruby/object:Gem::Version
126
- version: '0'
127
- description: A scripting framework that replaces rake, sake and rubigen
33
+ version: '3'
34
+ description: Thor is a toolkit for building powerful command-line interfaces.
128
35
  email: ruby-thor@googlegroups.com
129
36
  executables:
130
- - rake2thor
131
37
  - thor
132
38
  extensions: []
133
- extra_rdoc_files:
134
- - CHANGELOG.rdoc
135
- - LICENSE.md
136
- - README.md
137
- - Thorfile
39
+ extra_rdoc_files: []
138
40
  files:
139
- - .document
140
- - .gitignore
141
- - .rspec
142
- - .travis.yml
143
- - CHANGELOG.rdoc
144
- - Gemfile
41
+ - ".document"
42
+ - CONTRIBUTING.md
145
43
  - LICENSE.md
146
44
  - README.md
147
- - Thorfile
148
- - bin/rake2thor
149
45
  - bin/thor
150
46
  - lib/thor.rb
151
47
  - lib/thor/actions.rb
@@ -156,13 +52,15 @@ files:
156
52
  - lib/thor/actions/file_manipulation.rb
157
53
  - lib/thor/actions/inject_into_file.rb
158
54
  - lib/thor/base.rb
159
- - lib/thor/core_ext/dir_escape.rb
160
- - lib/thor/core_ext/file_binary_read.rb
55
+ - lib/thor/command.rb
161
56
  - lib/thor/core_ext/hash_with_indifferent_access.rb
162
- - lib/thor/core_ext/ordered_hash.rb
163
57
  - lib/thor/error.rb
164
58
  - lib/thor/group.rb
165
59
  - lib/thor/invocation.rb
60
+ - lib/thor/line_editor.rb
61
+ - lib/thor/line_editor/basic.rb
62
+ - lib/thor/line_editor/readline.rb
63
+ - lib/thor/nested_context.rb
166
64
  - lib/thor/parser.rb
167
65
  - lib/thor/parser/argument.rb
168
66
  - lib/thor/parser/arguments.rb
@@ -174,124 +72,36 @@ files:
174
72
  - lib/thor/shell/basic.rb
175
73
  - lib/thor/shell/color.rb
176
74
  - lib/thor/shell/html.rb
177
- - lib/thor/task.rb
178
75
  - lib/thor/util.rb
179
76
  - lib/thor/version.rb
180
- - spec/actions/create_file_spec.rb
181
- - spec/actions/create_link_spec.rb
182
- - spec/actions/directory_spec.rb
183
- - spec/actions/empty_directory_spec.rb
184
- - spec/actions/file_manipulation_spec.rb
185
- - spec/actions/inject_into_file_spec.rb
186
- - spec/actions_spec.rb
187
- - spec/base_spec.rb
188
- - spec/core_ext/hash_with_indifferent_access_spec.rb
189
- - spec/core_ext/ordered_hash_spec.rb
190
- - spec/exit_condition_spec.rb
191
- - spec/fixtures/application.rb
192
- - spec/fixtures/app{1}/README
193
- - spec/fixtures/bundle/execute.rb
194
- - spec/fixtures/bundle/main.thor
195
- - spec/fixtures/doc/%file_name%.rb.tt
196
- - spec/fixtures/doc/COMMENTER
197
- - spec/fixtures/doc/README
198
- - spec/fixtures/doc/block_helper.rb
199
- - spec/fixtures/doc/components/.empty_directory
200
- - spec/fixtures/doc/config.rb
201
- - spec/fixtures/doc/config.yaml.tt
202
- - spec/fixtures/enum.thor
203
- - spec/fixtures/group.thor
204
- - spec/fixtures/invoke.thor
205
- - spec/fixtures/path with spaces
206
- - spec/fixtures/script.thor
207
- - spec/fixtures/task.thor
208
- - spec/group_spec.rb
209
- - spec/invocation_spec.rb
210
- - spec/parser/argument_spec.rb
211
- - spec/parser/arguments_spec.rb
212
- - spec/parser/option_spec.rb
213
- - spec/parser/options_spec.rb
214
- - spec/rake_compat_spec.rb
215
- - spec/register_spec.rb
216
- - spec/runner_spec.rb
217
- - spec/shell/basic_spec.rb
218
- - spec/shell/color_spec.rb
219
- - spec/shell/html_spec.rb
220
- - spec/shell_spec.rb
221
- - spec/spec_helper.rb
222
- - spec/task_spec.rb
223
- - spec/thor_spec.rb
224
- - spec/util_spec.rb
225
77
  - thor.gemspec
226
78
  homepage: http://whatisthor.com/
227
- licenses: []
79
+ licenses:
80
+ - MIT
81
+ metadata:
82
+ bug_tracker_uri: https://github.com/rails/thor/issues
83
+ changelog_uri: https://github.com/rails/thor/releases/tag/v1.2.1
84
+ documentation_uri: http://whatisthor.com/
85
+ source_code_uri: https://github.com/rails/thor/tree/v1.2.1
86
+ wiki_uri: https://github.com/rails/thor/wiki
87
+ rubygems_mfa_required: 'true'
228
88
  post_install_message:
229
- rdoc_options:
230
- - --charset=UTF-8
89
+ rdoc_options: []
231
90
  require_paths:
232
91
  - lib
233
92
  required_ruby_version: !ruby/object:Gem::Requirement
234
- none: false
235
93
  requirements:
236
- - - ! '>='
94
+ - - ">="
237
95
  - !ruby/object:Gem::Version
238
- version: '0'
96
+ version: 2.0.0
239
97
  required_rubygems_version: !ruby/object:Gem::Requirement
240
- none: false
241
98
  requirements:
242
- - - ! '>='
99
+ - - ">="
243
100
  - !ruby/object:Gem::Version
244
- version: 1.3.6
101
+ version: 1.3.5
245
102
  requirements: []
246
- rubyforge_project:
247
- rubygems_version: 1.8.23
103
+ rubygems_version: 3.2.32
248
104
  signing_key:
249
- specification_version: 3
250
- summary: A scripting framework that replaces rake, sake and rubigen
251
- test_files:
252
- - spec/actions/create_file_spec.rb
253
- - spec/actions/create_link_spec.rb
254
- - spec/actions/directory_spec.rb
255
- - spec/actions/empty_directory_spec.rb
256
- - spec/actions/file_manipulation_spec.rb
257
- - spec/actions/inject_into_file_spec.rb
258
- - spec/actions_spec.rb
259
- - spec/base_spec.rb
260
- - spec/core_ext/hash_with_indifferent_access_spec.rb
261
- - spec/core_ext/ordered_hash_spec.rb
262
- - spec/exit_condition_spec.rb
263
- - spec/fixtures/application.rb
264
- - spec/fixtures/app{1}/README
265
- - spec/fixtures/bundle/execute.rb
266
- - spec/fixtures/bundle/main.thor
267
- - spec/fixtures/doc/%file_name%.rb.tt
268
- - spec/fixtures/doc/COMMENTER
269
- - spec/fixtures/doc/README
270
- - spec/fixtures/doc/block_helper.rb
271
- - spec/fixtures/doc/components/.empty_directory
272
- - spec/fixtures/doc/config.rb
273
- - spec/fixtures/doc/config.yaml.tt
274
- - spec/fixtures/enum.thor
275
- - spec/fixtures/group.thor
276
- - spec/fixtures/invoke.thor
277
- - spec/fixtures/path with spaces
278
- - spec/fixtures/script.thor
279
- - spec/fixtures/task.thor
280
- - spec/group_spec.rb
281
- - spec/invocation_spec.rb
282
- - spec/parser/argument_spec.rb
283
- - spec/parser/arguments_spec.rb
284
- - spec/parser/option_spec.rb
285
- - spec/parser/options_spec.rb
286
- - spec/rake_compat_spec.rb
287
- - spec/register_spec.rb
288
- - spec/runner_spec.rb
289
- - spec/shell/basic_spec.rb
290
- - spec/shell/color_spec.rb
291
- - spec/shell/html_spec.rb
292
- - spec/shell_spec.rb
293
- - spec/spec_helper.rb
294
- - spec/task_spec.rb
295
- - spec/thor_spec.rb
296
- - spec/util_spec.rb
297
- has_rdoc:
105
+ specification_version: 4
106
+ summary: Thor is a toolkit for building powerful command-line interfaces.
107
+ test_files: []
data/.gitignore DELETED
@@ -1,44 +0,0 @@
1
- !.gitignore
2
- *.gem
3
- *.rbc
4
- *.sw[a-p]
5
- *.tmproj
6
- *.tmproject
7
- *.un~
8
- *~
9
- .Spotlight-V100
10
- .Trashes
11
- ._*
12
- .bundle
13
- .config
14
- .directory
15
- .elc
16
- .emacs.desktop
17
- .emacs.desktop.lock
18
- .idea
19
- .redcar
20
- .rvmrc
21
- .yardoc
22
- Desktop.ini
23
- Gemfile.lock
24
- Icon?
25
- InstalledFiles
26
- Session.vim
27
- \#*\#
28
- _yardoc
29
- auto-save-list
30
- coverage
31
- doc/
32
- lib/bundler/man
33
- pkg
34
- pkg/*
35
- rdoc
36
- spec/reports
37
- spec/sandbox
38
- test/tmp
39
- test/version_tmp
40
- tmp
41
- tmtags
42
- tramp
43
- .rbx
44
- b/
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --color
2
- --order random
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 1.8.7
4
- - 1.9.2
5
- - 1.9.3
6
- - ruby-head
7
- script: bundle exec thor spec
data/CHANGELOG.rdoc DELETED
@@ -1,134 +0,0 @@
1
- == 0.16.0, release 2012-08-14
2
- * Add enum to string arguments
3
-
4
- == 0.15.4, release 2012-06-29
5
- * Fix regression when destination root contains reserved regexp characters
6
-
7
- == 0.15.3, release 2012-06-18
8
- * Support strict_args_position! for backwards compatibility
9
- * Escape Dir glob characters in paths
10
-
11
- == 0.15.2, released 2012-05-07
12
- * Added print_in_columns
13
- * Exposed terminal_width as a public API
14
-
15
- == 0.15.1, release 2012-05-06
16
- * Fix Ruby 1.8 truncation bug with unicode chars
17
- * Fix shell delegate methods to pass their block
18
- * Don't output trailing spaces when printing the last column in a table
19
-
20
- == 0.15, released 2012-04-29
21
- * Alias method_options to options
22
- * Refactor say to allow multiple colors
23
- * Exposed error as a public API
24
- * Exposed file_collision as a public API
25
- * Exposed print_wrapped as a public API
26
- * Exposed set_color as a public API
27
- * Fix number-formatting bugs in print_table
28
- * Fix "indent" typo in print_table
29
- * Fix Errno::EPIPE when piping tasks to `head`
30
- * More friendly error messages
31
-
32
- == 0.14, released 2010-07-25
33
-
34
- * Added CreateLink class and #link_file method
35
- * Made Thor::Actions#run use system as default method for system calls
36
- * Allow use of private methods from superclass as tasks
37
- * Added mute(&block) method which allows to run block without any output
38
- * Removed config[:pretend]
39
- * Enabled underscores for command line switches
40
- * Added Thor::Base.basename which is used by both Thor.banner and Thor::Group.banner
41
- * Deprecated invoke() without arguments
42
- * Added :only and :except to check_unknown_options
43
-
44
- == 0.13, released 2010-02-03
45
-
46
- * Added :lazy_default which is only triggered if a switch is given
47
- * Added Thor::Shell::HTML
48
- * Added subcommands
49
- * Decoupled Thor::Group and Thor, so it's easier to vendor
50
- * Added check_unknown_options! in case you want error messages to be raised in valid switches
51
- * run(command) should return the results of command
52
-
53
- == 0.12, released 2010-01-02
54
-
55
- * Methods generated by attr_* are automatically not marked as tasks
56
- * inject_into_file does not add the same content twice, unless :force is set
57
- * Removed rr in favor to rspec mock framework
58
- * Improved output for thor -T
59
- * [#7] Do not force white color on status
60
- * [#8] Yield a block with the filename on directory
61
-
62
- == 0.11, released 2009-07-01
63
-
64
- * Added a rake compatibility layer. It allows you to use spec and rdoc tasks on
65
- Thor classes.
66
-
67
- * BACKWARDS INCOMPATIBLE: aliases are not generated automatically anymore
68
- since it may cause wrong behavior in the invocation system.
69
-
70
- * thor help now show information about any class/task. All those calls are
71
- possible:
72
-
73
- thor help describe
74
- thor help describe:amazing
75
-
76
- Or even with default namespaces:
77
-
78
- thor help :spec
79
-
80
- * Thor::Runner now invokes the default task if none is supplied:
81
-
82
- thor describe # invokes the default task, usually help
83
-
84
- * Thor::Runner now works with mappings:
85
-
86
- thor describe -h
87
-
88
- * Added some documentation and code refactoring.
89
-
90
- == 0.9.8, released 2008-10-20
91
-
92
- * Fixed some tiny issues that were introduced lately.
93
-
94
- == 0.9.7, released 2008-10-13
95
-
96
- * Setting global method options on the initialize method works as expected:
97
- All other tasks will accept these global options in addition to their own.
98
- * Added 'group' notion to Thor task sets (class Thor); by default all tasks
99
- are in the 'standard' group. Running 'thor -T' will only show the standard
100
- tasks - adding --all will show all tasks. You can also filter on a specific
101
- group using the --group option: thor -T --group advanced
102
-
103
- == 0.9.6, released 2008-09-13
104
-
105
- * Generic improvements
106
-
107
- == 0.9.5, released 2008-08-27
108
-
109
- * Improve Windows compatibility
110
- * Update (incorrect) README and task.thor sample file
111
- * Options hash is now frozen (once returned)
112
- * Allow magic predicates on options object. For instance: `options.force?`
113
- * Add support for :numeric type
114
- * BACKWARDS INCOMPATIBLE: Refactor Thor::Options. You cannot access shorthand forms in options hash anymore (for instance, options[:f])
115
- * Allow specifying optional args with default values: method_options(:user => "mislav")
116
- * Don't write options for nil or false values. This allows, for example, turning color off when running specs.
117
- * Exit with the status of the spec command to help CI stuff out some.
118
-
119
- == 0.9.4, released 2008-08-13
120
-
121
- * Try to add Windows compatibility.
122
- * BACKWARDS INCOMPATIBLE: options hash is now accessed as a property in your class and is not passed as last argument anymore
123
- * Allow options at the beginning of the argument list as well as the end.
124
- * Make options available with symbol keys in addition to string keys.
125
- * Allow true to be passed to Thor#method_options to denote a boolean option.
126
- * If loading a thor file fails, don't give up, just print a warning and keep going.
127
- * Make sure that we re-raise errors if they happened further down the pipe than we care about.
128
- * Only delete the old file on updating when the installation of the new one is a success
129
- * Make it Ruby 1.8.5 compatible.
130
- * Don't raise an error if a boolean switch is defined multiple times.
131
- * Thor::Options now doesn't parse through things that look like options but aren't.
132
- * Add URI detection to install task, and make sure we don't append ".thor" to URIs
133
- * Add rake2thor to the gem binfiles.
134
- * Make sure local Thorfiles override system-wide ones.
data/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- platforms :mri_18 do
6
- gem 'ruby-debug', '>= 0.10.3'
7
- end
8
-
9
- platforms :mri_19 do
10
- gem 'ruby-debug19'
11
- end
12
-
13
- group :development do
14
- gem 'pry'
15
- end
data/Thorfile DELETED
@@ -1,30 +0,0 @@
1
- # encoding: utf-8
2
- $:.unshift File.expand_path("../lib", __FILE__)
3
-
4
- require 'bundler'
5
- require 'thor/rake_compat'
6
-
7
- class Default < Thor
8
- include Thor::RakeCompat
9
- Bundler::GemHelper.install_tasks
10
-
11
- desc "build", "Build thor-#{Thor::VERSION}.gem into the pkg directory"
12
- def build
13
- Rake::Task["build"].execute
14
- end
15
-
16
- desc "install", "Build and install thor-#{Thor::VERSION}.gem into system gems"
17
- def install
18
- Rake::Task["install"].execute
19
- end
20
-
21
- desc "release", "Create tag v#{Thor::VERSION} and build and push thor-#{Thor::VERSION}.gem to Rubygems"
22
- def release
23
- Rake::Task["release"].execute
24
- end
25
-
26
- desc "spec", "Run RSpec code examples"
27
- def spec
28
- exec "rspec --color --format=documentation spec"
29
- end
30
- end