You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
804 B
21 lines
804 B
13 years ago
|
commit 36603c1811451d370da4915e24eed665fe805ae4
|
||
|
Author: Gabriel Horner <gabriel.horner@gmail.com>
|
||
|
Date: Mon Jul 4 14:44:07 2011 -0400
|
||
|
|
||
|
Fix rake desc not being passed to thor
|
||
|
|
||
|
diff --git a/lib/thor/rake_compat.rb b/lib/thor/rake_compat.rb
|
||
|
index b3a8beb..c86e840 100644
|
||
|
--- a/lib/thor/rake_compat.rb
|
||
|
+++ b/lib/thor/rake_compat.rb
|
||
|
@@ -46,7 +46,8 @@ self.instance_eval do
|
||
|
description << task.arg_names.map{ |n| n.to_s.upcase }.join(' ')
|
||
|
description.strip!
|
||
|
|
||
|
- klass.desc description, task.comment || non_namespaced_name
|
||
|
+ klass.desc description, Rake.application.last_description || non_namespaced_name
|
||
|
+ Rake.application.last_description = nil
|
||
|
klass.send :define_method, non_namespaced_name do |*args|
|
||
|
Rake::Task[task.name.to_sym].invoke(*args)
|
||
|
end
|