thor 1.1.0 → 1.4.0

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.
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
8
8
  - José Valim
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2021-01-20 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
@@ -39,7 +38,6 @@ extensions: []
39
38
  extra_rdoc_files: []
40
39
  files:
41
40
  - ".document"
42
- - CHANGELOG.md
43
41
  - CONTRIBUTING.md
44
42
  - LICENSE.md
45
43
  - README.md
@@ -72,7 +70,12 @@ files:
72
70
  - lib/thor/shell.rb
73
71
  - lib/thor/shell/basic.rb
74
72
  - lib/thor/shell/color.rb
73
+ - lib/thor/shell/column_printer.rb
75
74
  - lib/thor/shell/html.rb
75
+ - lib/thor/shell/lcs_diff.rb
76
+ - lib/thor/shell/table_printer.rb
77
+ - lib/thor/shell/terminal.rb
78
+ - lib/thor/shell/wrapped_printer.rb
76
79
  - lib/thor/util.rb
77
80
  - lib/thor/version.rb
78
81
  - thor.gemspec
@@ -80,12 +83,12 @@ homepage: http://whatisthor.com/
80
83
  licenses:
81
84
  - MIT
82
85
  metadata:
83
- bug_tracker_uri: https://github.com/erikhuda/thor/issues
84
- changelog_uri: https://github.com/erikhuda/thor/blob/master/CHANGELOG.md
86
+ bug_tracker_uri: https://github.com/rails/thor/issues
87
+ changelog_uri: https://github.com/rails/thor/releases/tag/v1.4.0
85
88
  documentation_uri: http://whatisthor.com/
86
- source_code_uri: https://github.com/erikhuda/thor/tree/v1.1.0
87
- wiki_uri: https://github.com/erikhuda/thor/wiki
88
- post_install_message:
89
+ source_code_uri: https://github.com/rails/thor/tree/v1.4.0
90
+ wiki_uri: https://github.com/rails/thor/wiki
91
+ rubygems_mfa_required: 'true'
89
92
  rdoc_options: []
90
93
  require_paths:
91
94
  - lib
@@ -93,15 +96,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
96
  requirements:
94
97
  - - ">="
95
98
  - !ruby/object:Gem::Version
96
- version: 2.0.0
99
+ version: 2.6.0
97
100
  required_rubygems_version: !ruby/object:Gem::Requirement
98
101
  requirements:
99
102
  - - ">="
100
103
  - !ruby/object:Gem::Version
101
104
  version: 1.3.5
102
105
  requirements: []
103
- rubygems_version: 3.2.3
104
- signing_key:
106
+ rubygems_version: 3.6.7
105
107
  specification_version: 4
106
108
  summary: Thor is a toolkit for building powerful command-line interfaces.
107
109
  test_files: []
data/CHANGELOG.md DELETED
@@ -1,228 +0,0 @@
1
- # 1.1.0
2
- * Don't use ANSI colors when terminal is dumb.
3
- * Ensure default option/argument is not erroneously aliased.
4
- * Fixes a bug in the calculation of the print_wrapped method.
5
- * Obey `:mute` and `options[:quiet]` in `Shell#say`.
6
- * Support Ruby 3.0.
7
- * Add force option to the `gsub_file` action.
8
-
9
- # 1.0.1
10
- * Fix thor when `thor/base` and `thor/group` are required without `thor.rb`.
11
- * Handle relative source path in `create_link`.
12
-
13
- # 1.0.0
14
- * Drop support to Ruby 1.8 and 1.9.
15
- * Deprecate relying on default `exit_on_failure?`.
16
- In preparation to make Thor commands exit when there is a failure we are deprecating
17
- defining a command without defining what behavior is expected when there is a failure.
18
-
19
- To fix the deprecation you need to define a class method called `exit_on_failure?` returning
20
-
21
- `false` if you want the current behavior or `true` if you want the new behavior.
22
- * Deprecate defining an option with the default value using a different type as defined in the option.
23
- * Allow options to be repeatable. See #674.
24
-
25
- # 0.20.3
26
- * Support old versions of `did_you_mean`.
27
-
28
- # 0.20.2
29
- * Fix `did_you_mean` support.
30
-
31
- # 0.20.1
32
- * Support new versions of ERB.
33
- * Fix `check_unknown_options!` to not check the content that was not parsed, i.e. after a `--` or after the first unknown with `stop_on_unknown_option!`
34
- * Add `did_you_mean` support.
35
-
36
- ## 0.20.0
37
- * Add `check_default_type!` to check if the default value of an option matches the defined type.
38
- It removes the warning on usage and gives the command authors the possibility to check for programming errors.
39
-
40
- * Add `disable_required_check!` to disable check for required options in some commands.
41
- It is a substitute of `disable_class_options` that was not working as intended.
42
-
43
- * Add `inject_into_module`.
44
-
45
- ## 0.19.4, release 2016-11-28
46
- * Rename `Thor::Base#thor_reserved_word?` to `#is_thor_reserved_word?`
47
-
48
- ## 0.19.3, release 2016-11-27
49
- * Output a warning instead of raising an exception when a default option value doesn't match its specified type
50
-
51
- ## 0.19.2, release 2016-11-26
52
- * Fix bug with handling of colors passed to `ask` (and methods like `yes?` and `no?` which it underpins)
53
- * Allow numeric arguments to be negative
54
- * Ensure that default option values are of the specified type (e.g. you can't specify `"foo"` as the default for a numeric option), but make symbols and strings interchangeable
55
- * Add `Thor::Shell::Basic#indent` method for intending output
56
- * Fix `remove_command` for an inherited command (see #451)
57
- * Allow hash arguments to only have each key provided once (see #455)
58
- * Allow commands to disable class options, for instance for "help" commands (see #363)
59
- * Do not generate a negative option (`--no-no-foo`) for already negative boolean options (`--no-foo`)
60
- * Improve compatibility of `Thor::CoreExt::HashWithIndifferentAccess` with Ruby standard library `Hash`
61
- * Allow specifying a custom binding for template evaluation (e.g. `#key?` and `#fetch`)
62
- * Fix support for subcommand-specific "help"s
63
- * Use a string buffer when handling ERB for Ruby 2.3 compatibility
64
- * Update dependencies
65
-
66
- ## 0.19.1, release 2014-03-24
67
- * Fix `say` non-String break regression
68
-
69
- ## 0.19.0, release 2014-03-22
70
- * Add support for a default to #ask
71
- * Avoid @namespace not initialized warning
72
- * Avoid private attribute? warning
73
- * Fix initializing with unknown options
74
- * Loosen required_rubygems_version for compatibility with Ubuntu 10.04
75
- * Shell#ask: support a noecho option for stdin
76
- * Shell#ask: change API to be :echo => false
77
- * Display a message without a stack trace for ambiguous commands
78
- * Make say and say_status thread safe
79
- * Dependency for console io version check
80
- * Alias --help to help on subcommands
81
- * Use mime-types 1.x for Ruby 1.8.7 compatibility for Ruby 1.8 only
82
- * Accept .tt files as templates
83
- * Check if numeric value is in enum
84
- * Use Readline for user input
85
- * Fix dispatching of subcommands (concerning :help and *args)
86
- * Fix warnings when running specs with `$VERBOSE = true`
87
- * Make subcommand help more consistent
88
- * Make the current command chain accessible in command
89
-
90
- ## 0.18.1, release 2013-03-30
91
- * Revert regressions found in 0.18.0
92
-
93
- ## 0.18.0, release 2013-03-26
94
- * Remove rake2thor
95
- * Only display colors if output medium supports colors
96
- * Pass parent_options to subcommands
97
- * Fix non-dash-prefixed aliases
98
- * Make error messages more helpful
99
- * Rename "task" to "command"
100
- * Add the method to allow for custom package name
101
-
102
- ## 0.17.0, release 2013-01-24
103
- * Add better support for tasks that accept arbitrary additional arguments (e.g. things like `bundle exec`)
104
- * Add #stop_on_unknown_option!
105
- * Only strip from stdin.gets if it wasn't ended with EOF
106
- * Allow "send" as a task name
107
- * Allow passing options as arguments after "--"
108
- * Autoload Thor::Group
109
-
110
- ## 0.16.0, release 2012-08-14
111
- * Add enum to string arguments
112
-
113
- ## 0.15.4, release 2012-06-29
114
- * Fix regression when destination root contains reserved regexp characters
115
-
116
- ## 0.15.3, release 2012-06-18
117
- * Support strict_args_position! for backwards compatibility
118
- * Escape Dir glob characters in paths
119
-
120
- ## 0.15.2, released 2012-05-07
121
- * Added print_in_columns
122
- * Exposed terminal_width as a public API
123
-
124
- ## 0.15.1, release 2012-05-06
125
- * Fix Ruby 1.8 truncation bug with unicode chars
126
- * Fix shell delegate methods to pass their block
127
- * Don't output trailing spaces when printing the last column in a table
128
-
129
- ## 0.15, released 2012-04-29
130
- * Alias method_options to options
131
- * Refactor say to allow multiple colors
132
- * Exposed error as a public API
133
- * Exposed file_collision as a public API
134
- * Exposed print_wrapped as a public API
135
- * Exposed set_color as a public API
136
- * Fix number-formatting bugs in print_table
137
- * Fix "indent" typo in print_table
138
- * Fix Errno::EPIPE when piping tasks to `head`
139
- * More friendly error messages
140
-
141
- ## 0.14, released 2010-07-25
142
- * Added CreateLink class and #link_file method
143
- * Made Thor::Actions#run use system as default method for system calls
144
- * Allow use of private methods from superclass as tasks
145
- * Added mute(&block) method which allows to run block without any output
146
- * Removed config[:pretend]
147
- * Enabled underscores for command line switches
148
- * Added Thor::Base.basename which is used by both Thor.banner and Thor::Group.banner
149
- * Deprecated invoke() without arguments
150
- * Added :only and :except to check_unknown_options
151
-
152
- ## 0.13, released 2010-02-03
153
- * Added :lazy_default which is only triggered if a switch is given
154
- * Added Thor::Shell::HTML
155
- * Added subcommands
156
- * Decoupled Thor::Group and Thor, so it's easier to vendor
157
- * Added check_unknown_options! in case you want error messages to be raised in valid switches
158
- * run(command) should return the results of command
159
-
160
- ## 0.12, released 2010-01-02
161
- * Methods generated by attr_* are automatically not marked as tasks
162
- * inject_into_file does not add the same content twice, unless :force is set
163
- * Removed rr in favor to rspec mock framework
164
- * Improved output for thor -T
165
- * [#7] Do not force white color on status
166
- * [#8] Yield a block with the filename on directory
167
-
168
- ## 0.11, released 2009-07-01
169
- * Added a rake compatibility layer. It allows you to use spec and rdoc tasks on
170
- Thor classes.
171
- * BACKWARDS INCOMPATIBLE: aliases are not generated automatically anymore
172
- since it may cause wrong behavior in the invocation system.
173
- * thor help now show information about any class/task. All those calls are
174
- possible:
175
-
176
- thor help describe
177
- thor help describe:amazing
178
- Or even with default namespaces:
179
-
180
- thor help :spec
181
- * Thor::Runner now invokes the default task if none is supplied:
182
-
183
- thor describe # invokes the default task, usually help
184
- * Thor::Runner now works with mappings:
185
-
186
- thor describe -h
187
- * Added some documentation and code refactoring.
188
-
189
- ## 0.9.8, released 2008-10-20
190
- * Fixed some tiny issues that were introduced lately.
191
-
192
- ## 0.9.7, released 2008-10-13
193
- * Setting global method options on the initialize method works as expected:
194
- All other tasks will accept these global options in addition to their own.
195
- * Added 'group' notion to Thor task sets (class Thor); by default all tasks
196
- are in the 'standard' group. Running 'thor -T' will only show the standard
197
- tasks - adding --all will show all tasks. You can also filter on a specific
198
- group using the --group option: thor -T --group advanced
199
-
200
- ## 0.9.6, released 2008-09-13
201
- * Generic improvements
202
-
203
- ## 0.9.5, released 2008-08-27
204
- * Improve Windows compatibility
205
- * Update (incorrect) README and task.thor sample file
206
- * Options hash is now frozen (once returned)
207
- * Allow magic predicates on options object. For instance: `options.force?`
208
- * Add support for :numeric type
209
- * BACKWARDS INCOMPATIBLE: Refactor Thor::Options. You cannot access shorthand forms in options hash anymore (for instance, options[:f])
210
- * Allow specifying optional args with default values: method_options(:user => "mislav")
211
- * Don't write options for nil or false values. This allows, for example, turning color off when running specs.
212
- * Exit with the status of the spec command to help CI stuff out some.
213
-
214
- ## 0.9.4, released 2008-08-13
215
- * Try to add Windows compatibility.
216
- * BACKWARDS INCOMPATIBLE: options hash is now accessed as a property in your class and is not passed as last argument anymore
217
- * Allow options at the beginning of the argument list as well as the end.
218
- * Make options available with symbol keys in addition to string keys.
219
- * Allow true to be passed to Thor#method_options to denote a boolean option.
220
- * If loading a thor file fails, don't give up, just print a warning and keep going.
221
- * Make sure that we re-raise errors if they happened further down the pipe than we care about.
222
- * Only delete the old file on updating when the installation of the new one is a success
223
- * Make it Ruby 1.8.5 compatible.
224
- * Don't raise an error if a boolean switch is defined multiple times.
225
- * Thor::Options now doesn't parse through things that look like options but aren't.
226
- * Add URI detection to install task, and make sure we don't append ".thor" to URIs
227
- * Add rake2thor to the gem binfiles.
228
- * Make sure local Thorfiles override system-wide ones.