visionmedia-commander 2.4.3 → 2.4.4

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.
data/History.rdoc CHANGED
@@ -1,4 +1,8 @@
1
1
 
2
+ === 2.4.4 / 2009-01-15
3
+
4
+ * Fixed bug which was not allowing multi-word commands to view help
5
+
2
6
  === 2.4.3 / 2009-01-15
3
7
 
4
8
  * Fixed bug in command_name_from_args, preventing multi-word commands
data/commander.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{commander}
5
- s.version = "2.4.3"
5
+ s.version = "2.4.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["TJ Holowaychuk"]
@@ -9,7 +9,7 @@
9
9
 
10
10
  <%= color "SUB-COMMANDS", :bold %>:
11
11
  <% @commands.each_pair do |name, command| %>
12
- <%= "%-14s %s" % [command.name, command.summary || command.description] -%>
12
+ <%= "%-20s %s" % [command.name, command.summary || command.description] -%>
13
13
  <% end %>
14
14
  <% if program :help -%>
15
15
  <% program(:help).each_pair do |title, body| %>
@@ -187,7 +187,7 @@ module Commander
187
187
  if args.empty?
188
188
  $terminal.say gen.render
189
189
  else
190
- $terminal.say gen.render_command(get_command(args.shift.to_sym))
190
+ $terminal.say gen.render_command(get_command(args.join(' ')))
191
191
  end
192
192
  end
193
193
  end
@@ -193,10 +193,10 @@ module Commander
193
193
  # * Kernel#progress
194
194
 
195
195
  def self.progress enum, options = {}, &block
196
- threads = []
197
196
  bar = ProgressBar.new enum.length, options
198
197
  enum.each { |v| bar.inc yield(v) }
199
198
  end
199
+
200
200
  end
201
201
  end
202
202
  end
@@ -1,7 +1,7 @@
1
1
 
2
2
  module Commander
3
3
  module VERSION #:nodoc:
4
- MAJOR, MINOR, TINY = [2, 4, 3]
4
+ MAJOR, MINOR, TINY = [2, 4, 4]
5
5
  STRING = [MAJOR, MINOR, TINY].join '.'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visionmedia-commander
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.3
4
+ version: 2.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk