#3 ✓resolved
James Adam

redefine_task breaks with rake 0.8.1

Reported by James Adam | April 20th, 2008 @ 12:24 PM | in 2.1

Originally posted on Trac by nathany

Original Trac Ticket

Description

I am running a Rails 1.2.6 app with the rel_1.2.1 tag of Engines, and at some point must have updated to Rake 0.8.x causing the following error when running rake:

undefined method `last' for {}:Hash

/Library/Ruby/Gems/1.8/gems/rake-0.8.1/lib/rake.rb:1653:in `resolve_args'

This lead me to this post:

http://rubyforge.org/forum/forum...

The fix they prescribe is:

To run it with 0.8.x, the first argument to resolve_args should be an array.

I never checked with the trunk code of Engines, being that it has all that Rails 2.x stuff there. For now I have stepped back to rake 0.7.3 which works fine.

Trac Attachments

Trac Comments

01/29/08 13:51:35 changed by nathany


I should have included the next line of the stack, which specifically points to engines.rake:
/vendor/plugins/engines/tasks/engines.rake:9:in `redefine_task'

04/13/08 07:01:17 changed by lazyatom


Murray - since I'm  pretty sure you're using similar versions of the plugin, have you seen any issues?

    cc set to muz@h-lame.com.

Murray - since I'm  pretty sure you're using similar versions of the plugin, have you seen any issues?

    cc set to muz@h-lame.com.
    
   

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The rails engines plugin itself

Shared Ticket Bins

People watching this ticket

Attachments

Pages