thor 0.19.1 → 0.19.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/CONTRIBUTING.md +15 -0
  4. data/README.md +7 -1
  5. data/lib/thor.rb +31 -23
  6. data/lib/thor/actions.rb +21 -22
  7. data/lib/thor/actions/create_file.rb +1 -1
  8. data/lib/thor/actions/create_link.rb +1 -1
  9. data/lib/thor/actions/directory.rb +2 -2
  10. data/lib/thor/actions/empty_directory.rb +8 -8
  11. data/lib/thor/actions/file_manipulation.rb +23 -12
  12. data/lib/thor/actions/inject_into_file.rb +10 -14
  13. data/lib/thor/base.rb +33 -33
  14. data/lib/thor/command.rb +9 -9
  15. data/lib/thor/core_ext/hash_with_indifferent_access.rb +9 -1
  16. data/lib/thor/core_ext/io_binary_read.rb +7 -5
  17. data/lib/thor/core_ext/ordered_hash.rb +94 -63
  18. data/lib/thor/error.rb +3 -3
  19. data/lib/thor/group.rb +12 -12
  20. data/lib/thor/invocation.rb +4 -5
  21. data/lib/thor/parser/argument.rb +4 -7
  22. data/lib/thor/parser/arguments.rb +16 -16
  23. data/lib/thor/parser/option.rb +39 -19
  24. data/lib/thor/parser/options.rb +7 -5
  25. data/lib/thor/runner.rb +25 -25
  26. data/lib/thor/shell.rb +1 -1
  27. data/lib/thor/shell/basic.rb +41 -26
  28. data/lib/thor/shell/color.rb +1 -1
  29. data/lib/thor/shell/html.rb +4 -4
  30. data/lib/thor/util.rb +8 -7
  31. data/lib/thor/version.rb +1 -1
  32. data/thor.gemspec +6 -9
  33. metadata +6 -148
  34. data/Thorfile +0 -29
  35. data/spec/actions/create_file_spec.rb +0 -168
  36. data/spec/actions/create_link_spec.rb +0 -96
  37. data/spec/actions/directory_spec.rb +0 -169
  38. data/spec/actions/empty_directory_spec.rb +0 -129
  39. data/spec/actions/file_manipulation_spec.rb +0 -392
  40. data/spec/actions/inject_into_file_spec.rb +0 -135
  41. data/spec/actions_spec.rb +0 -331
  42. data/spec/base_spec.rb +0 -298
  43. data/spec/command_spec.rb +0 -79
  44. data/spec/core_ext/hash_with_indifferent_access_spec.rb +0 -48
  45. data/spec/core_ext/ordered_hash_spec.rb +0 -115
  46. data/spec/exit_condition_spec.rb +0 -19
  47. data/spec/fixtures/application.rb +0 -2
  48. data/spec/fixtures/app{1}/README +0 -3
  49. data/spec/fixtures/bundle/execute.rb +0 -6
  50. data/spec/fixtures/bundle/main.thor +0 -1
  51. data/spec/fixtures/command.thor +0 -10
  52. data/spec/fixtures/doc/%file_name%.rb.tt +0 -1
  53. data/spec/fixtures/doc/COMMENTER +0 -11
  54. data/spec/fixtures/doc/README +0 -3
  55. data/spec/fixtures/doc/block_helper.rb +0 -3
  56. data/spec/fixtures/doc/config.rb +0 -1
  57. data/spec/fixtures/doc/config.yaml.tt +0 -1
  58. data/spec/fixtures/doc/excluding/%file_name%.rb.tt +0 -1
  59. data/spec/fixtures/enum.thor +0 -10
  60. data/spec/fixtures/group.thor +0 -128
  61. data/spec/fixtures/invoke.thor +0 -131
  62. data/spec/fixtures/path with spaces b/data/spec/fixtures/path with → spaces +0 -0
  63. data/spec/fixtures/preserve/script.sh +0 -3
  64. data/spec/fixtures/script.thor +0 -220
  65. data/spec/fixtures/subcommand.thor +0 -17
  66. data/spec/group_spec.rb +0 -222
  67. data/spec/helper.rb +0 -80
  68. data/spec/invocation_spec.rb +0 -120
  69. data/spec/line_editor/basic_spec.rb +0 -28
  70. data/spec/line_editor/readline_spec.rb +0 -69
  71. data/spec/line_editor_spec.rb +0 -43
  72. data/spec/parser/argument_spec.rb +0 -53
  73. data/spec/parser/arguments_spec.rb +0 -66
  74. data/spec/parser/option_spec.rb +0 -210
  75. data/spec/parser/options_spec.rb +0 -414
  76. data/spec/quality_spec.rb +0 -75
  77. data/spec/rake_compat_spec.rb +0 -72
  78. data/spec/register_spec.rb +0 -227
  79. data/spec/runner_spec.rb +0 -246
  80. data/spec/sandbox/application.rb +0 -2
  81. data/spec/sandbox/app{1}/README +0 -3
  82. data/spec/sandbox/bundle/execute.rb +0 -6
  83. data/spec/sandbox/bundle/main.thor +0 -1
  84. data/spec/sandbox/command.thor +0 -10
  85. data/spec/sandbox/doc/%file_name%.rb.tt +0 -1
  86. data/spec/sandbox/doc/COMMENTER +0 -11
  87. data/spec/sandbox/doc/README +0 -3
  88. data/spec/sandbox/doc/block_helper.rb +0 -3
  89. data/spec/sandbox/doc/config.rb +0 -1
  90. data/spec/sandbox/doc/config.yaml.tt +0 -1
  91. data/spec/sandbox/doc/excluding/%file_name%.rb.tt +0 -1
  92. data/spec/sandbox/enum.thor +0 -10
  93. data/spec/sandbox/group.thor +0 -128
  94. data/spec/sandbox/invoke.thor +0 -131
  95. data/spec/sandbox/path with spaces b/data/spec/sandbox/path with → spaces +0 -0
  96. data/spec/sandbox/preserve/script.sh +0 -3
  97. data/spec/sandbox/script.thor +0 -220
  98. data/spec/sandbox/subcommand.thor +0 -17
  99. data/spec/shell/basic_spec.rb +0 -337
  100. data/spec/shell/color_spec.rb +0 -119
  101. data/spec/shell/html_spec.rb +0 -31
  102. data/spec/shell_spec.rb +0 -47
  103. data/spec/subcommand_spec.rb +0 -48
  104. data/spec/thor_spec.rb +0 -505
  105. data/spec/util_spec.rb +0 -196
@@ -9,7 +9,7 @@ class Thor
9
9
  # it will use a colored log, otherwise it will use a basic one without color.
10
10
  #
11
11
  def shell
12
- @shell ||= if ENV["THOR_SHELL"] && ENV["THOR_SHELL"].size > 0
12
+ @shell ||= if ENV["THOR_SHELL"] && !ENV["THOR_SHELL"].empty?
13
13
  Thor::Shell.const_get(ENV["THOR_SHELL"])
14
14
  elsif RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ && !ENV["ANSICON"]
15
15
  Thor::Shell::Basic
@@ -3,14 +3,17 @@ require "io/console" if RUBY_VERSION > "1.9.2"
3
3
 
4
4
  class Thor
5
5
  module Shell
6
- class Basic # rubocop:disable ClassLength
6
+ class Basic
7
7
  attr_accessor :base
8
8
  attr_reader :padding
9
9
 
10
10
  # Initialize base, mute and padding to nil.
11
11
  #
12
12
  def initialize #:nodoc:
13
- @base, @mute, @padding, @always_force = nil, false, 0, false
13
+ @base = nil
14
+ @mute = false
15
+ @padding = 0
16
+ @always_force = false
14
17
  end
15
18
 
16
19
  # Mute everything that's inside given block
@@ -24,7 +27,7 @@ class Thor
24
27
 
25
28
  # Check if base is muted
26
29
  #
27
- def mute? # rubocop:disable TrivialAccessors
30
+ def mute?
28
31
  @mute
29
32
  end
30
33
 
@@ -34,6 +37,15 @@ class Thor
34
37
  @padding = [0, value].max
35
38
  end
36
39
 
40
+ # Sets the output padding while executing a block and resets it.
41
+ #
42
+ def indent(count = 1)
43
+ orig_padding = padding
44
+ self.padding = padding + count
45
+ yield
46
+ self.padding = orig_padding
47
+ end
48
+
37
49
  # Asks something to the user and receives a response.
38
50
  #
39
51
  # If asked to limit the correct responses, you can pass in an
@@ -148,7 +160,9 @@ class Thor
148
160
  def print_table(array, options = {}) # rubocop:disable MethodLength
149
161
  return if array.empty?
150
162
 
151
- formats, indent, colwidth = [], options[:indent].to_i, options[:colwidth]
163
+ formats = []
164
+ indent = options[:indent].to_i
165
+ colwidth = options[:colwidth]
152
166
  options[:truncate] = terminal_width if options[:truncate] == true
153
167
 
154
168
  formats << "%-#{colwidth + 2}s" if colwidth
@@ -161,12 +175,12 @@ class Thor
161
175
  start.upto(colcount - 1) do |index|
162
176
  maxima = array.map { |row| row[index] ? row[index].to_s.size : 0 }.max
163
177
  maximas << maxima
164
- if index == colcount - 1
165
- # Don't output 2 trailing spaces when printing the last column
166
- formats << "%-s"
167
- else
168
- formats << "%-#{maxima + 2}s"
169
- end
178
+ formats << if index == colcount - 1
179
+ # Don't output 2 trailing spaces when printing the last column
180
+ "%-s"
181
+ else
182
+ "%-#{maxima + 2}s"
183
+ end
170
184
  end
171
185
 
172
186
  formats[0] = formats[0].insert(0, " " * indent)
@@ -178,15 +192,15 @@ class Thor
178
192
  row.each_with_index do |column, index|
179
193
  maxima = maximas[index]
180
194
 
181
- if column.is_a?(Numeric)
195
+ f = if column.is_a?(Numeric)
182
196
  if index == row.size - 1
183
197
  # Don't output 2 trailing spaces when printing the last column
184
- f = "%#{maxima}s"
198
+ "%#{maxima}s"
185
199
  else
186
- f = "%#{maxima}s "
200
+ "%#{maxima}s "
187
201
  end
188
202
  else
189
- f = formats[index]
203
+ formats[index]
190
204
  end
191
205
  sentence << f % column.to_s
192
206
  end
@@ -211,7 +225,7 @@ class Thor
211
225
  paras = message.split("\n\n")
212
226
 
213
227
  paras.map! do |unwrapped|
214
- unwrapped.strip.gsub(/\n/, " ").squeeze(" ").gsub(/.{1,#{width}}(?:\s|\Z)/) { ($& + 5.chr).gsub(/\n\005/, "\n").gsub(/\005/, "\n") }
228
+ unwrapped.strip.tr("\n", " ").squeeze(" ").gsub(/.{1,#{width}}(?:\s|\Z)/) { ($& + 5.chr).gsub(/\n\005/, "\n").gsub(/\005/, "\n") }
215
229
  end
216
230
 
217
231
  paras.each do |para|
@@ -230,7 +244,7 @@ class Thor
230
244
  # destination<String>:: the destination file to solve conflicts
231
245
  # block<Proc>:: an optional block that returns the value to be used in diff
232
246
  #
233
- def file_collision(destination) # rubocop:disable MethodLength
247
+ def file_collision(destination)
234
248
  return true if @always_force
235
249
  options = block_given? ? "[Ynaqdh]" : "[Ynaqh]"
236
250
 
@@ -249,7 +263,7 @@ class Thor
249
263
  return @always_force = true
250
264
  when is?(:quit)
251
265
  say "Aborting..."
252
- fail SystemExit
266
+ raise SystemExit
253
267
  when is?(:diff)
254
268
  show_diff(destination, yield) if block_given?
255
269
  say "Retrying..."
@@ -262,10 +276,10 @@ class Thor
262
276
  # This code was copied from Rake, available under MIT-LICENSE
263
277
  # Copyright (c) 2003, 2004 Jim Weirich
264
278
  def terminal_width
265
- if ENV["THOR_COLUMNS"]
266
- result = ENV["THOR_COLUMNS"].to_i
279
+ result = if ENV["THOR_COLUMNS"]
280
+ ENV["THOR_COLUMNS"].to_i
267
281
  else
268
- result = unix? ? dynamic_width : 80
282
+ unix? ? dynamic_width : 80
269
283
  end
270
284
  result < 10 ? 80 : result
271
285
  rescue
@@ -284,7 +298,7 @@ class Thor
284
298
  # Apply color to the given string with optional bold. Disabled in the
285
299
  # Thor::Shell::Basic class.
286
300
  #
287
- def set_color(string, *args) #:nodoc:
301
+ def set_color(string, *) #:nodoc:
288
302
  string
289
303
  end
290
304
 
@@ -353,11 +367,11 @@ class Thor
353
367
  end
354
368
 
355
369
  def dynamic_width_stty
356
- %x(stty size 2>/dev/null).split[1].to_i
370
+ `stty size 2>/dev/null`.split[1].to_i
357
371
  end
358
372
 
359
373
  def dynamic_width_tput
360
- %x(tput cols 2>/dev/null).to_i
374
+ `tput cols 2>/dev/null`.to_i
361
375
  end
362
376
 
363
377
  def unix?
@@ -370,7 +384,7 @@ class Thor
370
384
  if chars.length <= width
371
385
  chars.join
372
386
  else
373
- ( chars[0, width - 3].join) + "..."
387
+ chars[0, width - 3].join + "..."
374
388
  end
375
389
  end
376
390
  end
@@ -381,7 +395,8 @@ class Thor
381
395
  end
382
396
  else
383
397
  def as_unicode
384
- old, $KCODE = $KCODE, "U"
398
+ old = $KCODE
399
+ $KCODE = "U"
385
400
  yield
386
401
  ensure
387
402
  $KCODE = old
@@ -391,7 +406,7 @@ class Thor
391
406
  def ask_simply(statement, color, options)
392
407
  default = options[:default]
393
408
  message = [statement, ("(#{default})" if default), nil].uniq.join(" ")
394
- message = prepare_message(message, color)
409
+ message = prepare_message(message, *color)
395
410
  result = Thor::LineEditor.readline(message, options)
396
411
 
397
412
  return unless result
@@ -134,7 +134,7 @@ class Thor
134
134
  # for diff.
135
135
  #
136
136
  def diff_lcs_loaded? #:nodoc:
137
- return true if defined?(Diff::LCS)
137
+ return true if defined?(Diff::LCS)
138
138
  return @diff_lcs_loaded unless @diff_lcs_loaded.nil?
139
139
 
140
140
  @diff_lcs_loaded = begin
@@ -51,13 +51,13 @@ class Thor
51
51
  def set_color(string, *colors)
52
52
  if colors.all? { |color| color.is_a?(Symbol) || color.is_a?(String) }
53
53
  html_colors = colors.map { |color| lookup_color(color) }
54
- "<span style=\"#{html_colors.join("; ")};\">#{string}</span>"
54
+ "<span style=\"#{html_colors.join('; ')};\">#{string}</span>"
55
55
  else
56
56
  color, bold = colors
57
57
  html_color = self.class.const_get(color.to_s.upcase) if color.is_a?(Symbol)
58
58
  styles = [html_color]
59
59
  styles << BOLD if bold
60
- "<span style=\"#{styles.join("; ")};\">#{string}</span>"
60
+ "<span style=\"#{styles.join('; ')};\">#{string}</span>"
61
61
  end
62
62
  end
63
63
 
@@ -68,7 +68,7 @@ class Thor
68
68
  #
69
69
  # TODO: Implement #ask for Thor::Shell::HTML
70
70
  def ask(statement, color = nil)
71
- fail NotImplementedError, "Implement #ask for Thor::Shell::HTML"
71
+ raise NotImplementedError, "Implement #ask for Thor::Shell::HTML"
72
72
  end
73
73
 
74
74
  protected
@@ -111,7 +111,7 @@ class Thor
111
111
  # for diff.
112
112
  #
113
113
  def diff_lcs_loaded? #:nodoc:
114
- return true if defined?(Diff::LCS)
114
+ return true if defined?(Diff::LCS)
115
115
  return @diff_lcs_loaded unless @diff_lcs_loaded.nil?
116
116
 
117
117
  @diff_lcs_loaded = begin
@@ -64,7 +64,7 @@ class Thor
64
64
  new_constants = Thor::Base.subclasses.dup
65
65
  Thor::Base.subclasses.replace(old_constants)
66
66
 
67
- new_constants.map! { |c| c.namespace }
67
+ new_constants.map!(&:namespace)
68
68
  new_constants.compact!
69
69
  new_constants
70
70
  end
@@ -72,7 +72,7 @@ class Thor
72
72
  # Returns the thor classes declared inside the given class.
73
73
  #
74
74
  def thor_classes_in(klass)
75
- stringfied_constants = klass.constants.map { |c| c.to_s }
75
+ stringfied_constants = klass.constants.map(&:to_s)
76
76
  Thor::Base.subclasses.select do |subclass|
77
77
  next unless subclass.name
78
78
  stringfied_constants.include?(subclass.name.gsub("#{klass.name}::", ""))
@@ -103,7 +103,7 @@ class Thor
103
103
  #
104
104
  def camel_case(str)
105
105
  return str if str !~ /_/ && str =~ /[A-Z]+.*/
106
- str.split("_").map { |i| i.capitalize }.join
106
+ str.split("_").map(&:capitalize).join
107
107
  end
108
108
 
109
109
  # Receives a namespace and tries to retrieve a Thor or Thor::Group class
@@ -135,7 +135,8 @@ class Thor
135
135
  klass = Thor::Util.find_by_namespace(pieces.join(":"))
136
136
  end
137
137
  unless klass # look for a Thor::Group with the right name
138
- klass, command = Thor::Util.find_by_namespace(namespace), nil
138
+ klass = Thor::Util.find_by_namespace(namespace)
139
+ command = nil
139
140
  end
140
141
  if !klass && fallback # try a command in the default namespace
141
142
  command = namespace
@@ -163,7 +164,7 @@ class Thor
163
164
  end
164
165
  end
165
166
 
166
- def user_home # rubocop:disable MethodLength
167
+ def user_home
167
168
  @@user_home ||= if ENV["HOME"]
168
169
  ENV["HOME"]
169
170
  elsif ENV["USERPROFILE"]
@@ -188,7 +189,7 @@ class Thor
188
189
  # Returns the root where thor files are located, depending on the OS.
189
190
  #
190
191
  def thor_root
191
- File.join(user_home, ".thor").gsub(/\\/, "/")
192
+ File.join(user_home, ".thor").tr('\\', "/")
192
193
  end
193
194
 
194
195
  # Returns the files in the thor root. On Windows thor_root will be something
@@ -216,7 +217,7 @@ class Thor
216
217
  # Return the path to the ruby interpreter taking into account multiple
217
218
  # installations and windows extensions.
218
219
  #
219
- def ruby_command # rubocop:disable MethodLength
220
+ def ruby_command
220
221
  @ruby_command ||= begin
221
222
  ruby_name = RbConfig::CONFIG["ruby_install_name"]
222
223
  ruby = File.join(RbConfig::CONFIG["bindir"], ruby_name)
@@ -1,3 +1,3 @@
1
1
  class Thor
2
- VERSION = "0.19.1"
2
+ VERSION = "0.19.2"
3
3
  end
@@ -6,19 +6,16 @@ require "thor/version"
6
6
  Gem::Specification.new do |spec|
7
7
  spec.add_development_dependency "bundler", "~> 1.0"
8
8
  spec.authors = ["Yehuda Katz", "José Valim"]
9
- spec.description = %q(Thor is a toolkit for building powerful command-line interfaces.)
9
+ spec.description = "Thor is a toolkit for building powerful command-line interfaces."
10
10
  spec.email = "ruby-thor@googlegroups.com"
11
- spec.executables = %w[thor]
12
- spec.files = %w[.document CHANGELOG.md LICENSE.md README.md Thorfile thor.gemspec]
13
- spec.files += Dir.glob("bin/**/*")
14
- spec.files += Dir.glob("lib/**/*.rb")
15
- spec.files += Dir.glob("spec/**/*")
11
+ spec.executables = %w(thor)
12
+ spec.files = %w(.document thor.gemspec) + Dir["*.md", "bin/*", "lib/**/*.rb"]
16
13
  spec.homepage = "http://whatisthor.com/"
17
- spec.licenses = %w[MIT]
14
+ spec.licenses = %w(MIT)
18
15
  spec.name = "thor"
19
- spec.require_paths = %w[lib]
16
+ spec.require_paths = %w(lib)
17
+ spec.required_ruby_version = ">= 1.8.7"
20
18
  spec.required_rubygems_version = ">= 1.3.5"
21
19
  spec.summary = spec.description
22
- spec.test_files = Dir.glob("spec/**/*")
23
20
  spec.version = Thor::VERSION
24
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1
4
+ version: 0.19.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-03-24 00:00:00.000000000 Z
12
+ date: 2016-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -34,9 +34,9 @@ extra_rdoc_files: []
34
34
  files:
35
35
  - ".document"
36
36
  - CHANGELOG.md
37
+ - CONTRIBUTING.md
37
38
  - LICENSE.md
38
39
  - README.md
39
- - Thorfile
40
40
  - bin/thor
41
41
  - lib/thor.rb
42
42
  - lib/thor/actions.rb
@@ -70,77 +70,6 @@ files:
70
70
  - lib/thor/shell/html.rb
71
71
  - lib/thor/util.rb
72
72
  - lib/thor/version.rb
73
- - spec/actions/create_file_spec.rb
74
- - spec/actions/create_link_spec.rb
75
- - spec/actions/directory_spec.rb
76
- - spec/actions/empty_directory_spec.rb
77
- - spec/actions/file_manipulation_spec.rb
78
- - spec/actions/inject_into_file_spec.rb
79
- - spec/actions_spec.rb
80
- - spec/base_spec.rb
81
- - spec/command_spec.rb
82
- - spec/core_ext/hash_with_indifferent_access_spec.rb
83
- - spec/core_ext/ordered_hash_spec.rb
84
- - spec/exit_condition_spec.rb
85
- - spec/fixtures/application.rb
86
- - spec/fixtures/app{1}/README
87
- - spec/fixtures/bundle/execute.rb
88
- - spec/fixtures/bundle/main.thor
89
- - spec/fixtures/command.thor
90
- - spec/fixtures/doc/%file_name%.rb.tt
91
- - spec/fixtures/doc/COMMENTER
92
- - spec/fixtures/doc/README
93
- - spec/fixtures/doc/block_helper.rb
94
- - spec/fixtures/doc/config.rb
95
- - spec/fixtures/doc/config.yaml.tt
96
- - spec/fixtures/doc/excluding/%file_name%.rb.tt
97
- - spec/fixtures/enum.thor
98
- - spec/fixtures/group.thor
99
- - spec/fixtures/invoke.thor
100
- - spec/fixtures/path with spaces
101
- - spec/fixtures/preserve/script.sh
102
- - spec/fixtures/script.thor
103
- - spec/fixtures/subcommand.thor
104
- - spec/group_spec.rb
105
- - spec/helper.rb
106
- - spec/invocation_spec.rb
107
- - spec/line_editor/basic_spec.rb
108
- - spec/line_editor/readline_spec.rb
109
- - spec/line_editor_spec.rb
110
- - spec/parser/argument_spec.rb
111
- - spec/parser/arguments_spec.rb
112
- - spec/parser/option_spec.rb
113
- - spec/parser/options_spec.rb
114
- - spec/quality_spec.rb
115
- - spec/rake_compat_spec.rb
116
- - spec/register_spec.rb
117
- - spec/runner_spec.rb
118
- - spec/sandbox/application.rb
119
- - spec/sandbox/app{1}/README
120
- - spec/sandbox/bundle/execute.rb
121
- - spec/sandbox/bundle/main.thor
122
- - spec/sandbox/command.thor
123
- - spec/sandbox/doc/%file_name%.rb.tt
124
- - spec/sandbox/doc/COMMENTER
125
- - spec/sandbox/doc/README
126
- - spec/sandbox/doc/block_helper.rb
127
- - spec/sandbox/doc/config.rb
128
- - spec/sandbox/doc/config.yaml.tt
129
- - spec/sandbox/doc/excluding/%file_name%.rb.tt
130
- - spec/sandbox/enum.thor
131
- - spec/sandbox/group.thor
132
- - spec/sandbox/invoke.thor
133
- - spec/sandbox/path with spaces
134
- - spec/sandbox/preserve/script.sh
135
- - spec/sandbox/script.thor
136
- - spec/sandbox/subcommand.thor
137
- - spec/shell/basic_spec.rb
138
- - spec/shell/color_spec.rb
139
- - spec/shell/html_spec.rb
140
- - spec/shell_spec.rb
141
- - spec/subcommand_spec.rb
142
- - spec/thor_spec.rb
143
- - spec/util_spec.rb
144
73
  - thor.gemspec
145
74
  homepage: http://whatisthor.com/
146
75
  licenses:
@@ -154,7 +83,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
154
83
  requirements:
155
84
  - - ">="
156
85
  - !ruby/object:Gem::Version
157
- version: '0'
86
+ version: 1.8.7
158
87
  required_rubygems_version: !ruby/object:Gem::Requirement
159
88
  requirements:
160
89
  - - ">="
@@ -162,79 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
91
  version: 1.3.5
163
92
  requirements: []
164
93
  rubyforge_project:
165
- rubygems_version: 2.2.2
94
+ rubygems_version: 2.5.2
166
95
  signing_key:
167
96
  specification_version: 4
168
97
  summary: Thor is a toolkit for building powerful command-line interfaces.
169
- test_files:
170
- - spec/actions/create_file_spec.rb
171
- - spec/actions/create_link_spec.rb
172
- - spec/actions/directory_spec.rb
173
- - spec/actions/empty_directory_spec.rb
174
- - spec/actions/file_manipulation_spec.rb
175
- - spec/actions/inject_into_file_spec.rb
176
- - spec/actions_spec.rb
177
- - spec/base_spec.rb
178
- - spec/command_spec.rb
179
- - spec/core_ext/hash_with_indifferent_access_spec.rb
180
- - spec/core_ext/ordered_hash_spec.rb
181
- - spec/exit_condition_spec.rb
182
- - spec/fixtures/application.rb
183
- - spec/fixtures/app{1}/README
184
- - spec/fixtures/bundle/execute.rb
185
- - spec/fixtures/bundle/main.thor
186
- - spec/fixtures/command.thor
187
- - spec/fixtures/doc/%file_name%.rb.tt
188
- - spec/fixtures/doc/block_helper.rb
189
- - spec/fixtures/doc/COMMENTER
190
- - spec/fixtures/doc/config.rb
191
- - spec/fixtures/doc/config.yaml.tt
192
- - spec/fixtures/doc/excluding/%file_name%.rb.tt
193
- - spec/fixtures/doc/README
194
- - spec/fixtures/enum.thor
195
- - spec/fixtures/group.thor
196
- - spec/fixtures/invoke.thor
197
- - spec/fixtures/path with spaces
198
- - spec/fixtures/preserve/script.sh
199
- - spec/fixtures/script.thor
200
- - spec/fixtures/subcommand.thor
201
- - spec/group_spec.rb
202
- - spec/helper.rb
203
- - spec/invocation_spec.rb
204
- - spec/line_editor/basic_spec.rb
205
- - spec/line_editor/readline_spec.rb
206
- - spec/line_editor_spec.rb
207
- - spec/parser/argument_spec.rb
208
- - spec/parser/arguments_spec.rb
209
- - spec/parser/option_spec.rb
210
- - spec/parser/options_spec.rb
211
- - spec/quality_spec.rb
212
- - spec/rake_compat_spec.rb
213
- - spec/register_spec.rb
214
- - spec/runner_spec.rb
215
- - spec/sandbox/application.rb
216
- - spec/sandbox/app{1}/README
217
- - spec/sandbox/bundle/execute.rb
218
- - spec/sandbox/bundle/main.thor
219
- - spec/sandbox/command.thor
220
- - spec/sandbox/doc/%file_name%.rb.tt
221
- - spec/sandbox/doc/block_helper.rb
222
- - spec/sandbox/doc/COMMENTER
223
- - spec/sandbox/doc/config.rb
224
- - spec/sandbox/doc/config.yaml.tt
225
- - spec/sandbox/doc/excluding/%file_name%.rb.tt
226
- - spec/sandbox/doc/README
227
- - spec/sandbox/enum.thor
228
- - spec/sandbox/group.thor
229
- - spec/sandbox/invoke.thor
230
- - spec/sandbox/path with spaces
231
- - spec/sandbox/preserve/script.sh
232
- - spec/sandbox/script.thor
233
- - spec/sandbox/subcommand.thor
234
- - spec/shell/basic_spec.rb
235
- - spec/shell/color_spec.rb
236
- - spec/shell/html_spec.rb
237
- - spec/shell_spec.rb
238
- - spec/subcommand_spec.rb
239
- - spec/thor_spec.rb
240
- - spec/util_spec.rb
98
+ test_files: []