public
Fork of lazyatom/engines
Description: The Rails Engines plugin
Homepage: http://rails-engines.org
Clone URL: git://github.com/tekkub/engines.git
Search Repo:
Adjusted to fix bug with rake 0.8.x

See http://rubyforge.org/pipermail/rake-devel/2007-December.txt
search above for 'redefine rake task broken in 0.8.x for a rails app' to 
find message thread
tekkub (author)
Tue Apr 22 21:27:37 -0700 2008
commit  3bee0fd2c8236eb4737e82324580860be9456210
tree    b0539ce6fd4d0c080f5fa91a792a868debaae45f
parent  b32c12904fa6f7d0316ac82b8323bb61e55133a2
...
5
6
7
 
 
 
 
8
9
 
10
11
12
13
14
15
16
 
 
17
18
19
 
20
21
22
...
5
6
7
8
9
10
11
12
 
13
14
15
16
17
18
 
 
19
20
21
22
23
24
25
26
27
0
@@ -5,18 +5,23 @@
0
 unless Rake::TaskManager.methods.include?(:redefine_task)
0
   module Rake
0
     module TaskManager
0
+
0
+ # adjusted to fix bug with rake 0.8.x
0
+ # see http://rubyforge.org/pipermail/rake-devel/2007-December.txt
0
+ # search above for 'redefine rake task broken in 0.8.x for a rails app' to find message thread
0
       def redefine_task(task_class, args, &block)
0
- task_name, deps = resolve_args(args)
0
+ task_name, deps = resolve_args([args])
0
         task_name = task_class.scope_name(@scope, task_name)
0
         deps = [deps] unless deps.respond_to?(:to_ary)
0
         deps = deps.collect {|d| d.to_s }
0
         task = @tasks[task_name.to_s] = task_class.new(task_name, self)
0
         task.application = self
0
- task.add_comment(@last_comment)
0
- @last_comment = nil
0
+ task.add_description(@last_description)
0
+ @last_description = nil
0
         task.enhance(deps, &block)
0
         task
0
       end
0
+
0
     end
0
     class Task
0
       class << self

Comments

    No one has commented yet.