ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

Deprecation warning when using ChiliProject with Rake 0.9 (Bug #425)


Added by Gregor Schmidt at 2011-05-24 03:01 pm. Updated at 2011-05-27 04:30 pm.


Status:Closed Start date:2011-05-24
Priority:Normal Due date:
Assignee:Eric Davis % Done:

0%

Category:Libraries
Target version:1.4.0
Remote issue URL: Affected version:

Description

With the relase of rake 0.9 the following syntax to define tasks with arguments has been deprecated:

task :test, :login, :needs => :environment do |task, args|

This should now always be specified using the following syntax

task :test, [:login] => :environment do |task, args|

Associated revisions

Revision 20a5e415
Added by Gregor Schmidt at 2011-05-24 05:02 pm

[#425] Avoid deprecated API to define rake tasks with parameters

This should avoid deprecation warnings when using ChiliProject with Rake 0.9

History

Updated by Gregor Schmidt at 2011-05-24 03:11 pm

The pull request is at https://github.com/chiliproject/chiliproject/pull/65.

I have tested the updated syntax using rake 0.8.7 and everything still works as expected.

If you want to introduce this change also in 1.4, there is a branch at my fork, that is based on master.

Thanks for taking a look.

  • Assignee deleted (Gregor Schmidt)
  • Status changed from Open to Ready for review

Updated by Eric Davis at 2011-05-27 03:22 pm

This fix is so minor I'd say lets put it into both 2.0.0 and 1.4.0.

Thanks Gregor.

Updated by Eric Davis at 2011-05-27 04:30 pm

Fixed in master along with some minor bugs I noticed in that task. Thank you for the patch Gregor.

(Tested with Rake 0.8.7)

  • Assignee set to Eric Davis
  • Category set to Libraries

Updated by Eric Davis at 2011-05-27 04:30 pm

  • Target version changed from 2.0.0 to 1.4.0

Updated by Eric Davis at 2011-05-27 04:30 pm

  • Status changed from Ready for review to Closed

Also available in: Atom PDF