Posted By: Jim Weirich
Date: 2007-12-21 19:34
Summary: Rake 0.8.0 Released
Project: Rake

Rake 0.8.0 is released. The docs have not been updated yet, but I didn't want to delay the new version for that. We will get the documents up to date shortly.

In the meantime, here is the latest change list entries:

== Version 0.8.0

* Added task parameters (e.g. "rake build[version7]")
* Made task parameters passable to prerequisites.
* The 'task' command will now accept task argument names.
* Comments are limited to 80 columns or so (suggested by Jamis Buck).
* Added -D to display full comments (suggested by Jamis Buck).
* The rake program will set the status value used in any explicit
exit(n) calls. (patch provided by Stephen Touset)
* Fixed error in functional tests that were not including session (and
silently skipping the functionl tests).
* Removed --usage and make -h the same as -H.
* Make a prettier inspect for tasks.

Latest News
TZInfo v1.0.0 and TZInfo::Data v1.2013.3 Released
    Philip Ross - 2013-06-02 17:12
icalendar 1.4.0 Released
    Ryan Ahearn - 2013-05-21 23:17
BinData 1.5.0 - source moved to github
    Dion Mendel - 2013-05-21 11:10
v13.5.0 Released !!
    id 774 - 2013-05-18 12:28
Runt v0.9.0 Released
    Matthew Lipper - 2013-05-17 00:11

 

Forums | Admin

Discussion Forums: rake-0.8.0-released

Start New Thread Start New Thread

 

By: Walter McGinnis
RE: undefined method `last' for {}:Hash [ reply ]  
2008-01-07 19:54
The fix can be found in http://rubyforge.org/pipermail/rake-devel/2007-December.txt if you search for "redefine rake task broken in 0.8.x for a rails app". Thanks John and Charlie.

Cheers,
Walter

By: Walter McGinnis
RE: undefined method `last' for {}:Hash [ reply ]  
2008-01-07 19:25
Yep, same issue here. I'll post if I find a workaround.

Cheers,
Walter

By: Chris Hall
RE: undefined method `last' for {}:Hash [ reply ]  
2007-12-27 15:14
reverting back to 0.7.3 fixes problem for me

By: Chris Hall
RE: undefined method `last' for {}:Hash [ reply ]  
2007-12-27 15:08
Same thing here as well. Updated to 0.8.1. Still have problem.


By: John Dell
RE: undefined method `last' for {}:Hash [ reply ]  
2007-12-26 04:44
I'm seeing the same thing also. It appears to be coming from a custom rake task that we use to redefine 'rake test'.

The code for the custom rake task came from here which will allow you to reproduce the problem.

http://snippets.dzone.com/posts/show/2031

If anyone has any ideas on how to solve this, it would be much appreciated!

John

By: Brandon Hoult
undefined method `last' for {}:Hash [ reply ]  
2007-12-21 15:38
bhoult@samtheeagle:~/workspace/rails2$ sudo gem update
Updating installed gems...
Updating metadata for 7 gems from http://gems.rubyforge.org
.......
complete
Attempting remote update of rake
Successfully installed rake-0.8.0
1 gem installed
Installing ri documentation for rake-0.8.0...
Installing RDoc documentation for rake-0.8.0...
Gems updated: rake
bhoult@samtheeagle:~/workspace/rails2$ rake --trace
(in /home/bhoult/workspace/rails2)
rake aborted!
undefined method `last' for {}:Hash
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1654:in `resolve_args'
/home/bhoult/workspace/rails2/vendor/plugins/engines/tasks/engines.rake:9:in `redefine_task'
/home/bhoult/workspace/rails2/vendor/plugins/engines/tasks/engines.rake:24:in `redefine_task'
/home/bhoult/workspace/rails2/vendor/plugins/engines/tasks/engines.rake:63
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1184:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1184:in `send'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1184:in `each'
/home/bhoult/workspace/rails2/vendor/plugins/engines/tasks/engines.rake:61
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1738:in `in_namespace'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:822:in `namespace'
/home/bhoult/workspace/rails2/vendor/plugins/engines/tasks/engines.rake:58
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1738:in `in_namespace'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:822:in `namespace'
/home/bhoult/workspace/rails2/vendor/plugins/engines/tasks/engines.rake:54
/home/bhoult/workspace/rails2/vendor/rails/railties/lib/tasks/rails.rb:8:in `load'
/home/bhoult/workspace/rails2/vendor/rails/railties/lib/tasks/rails.rb:8
/home/bhoult/workspace/rails2/vendor/rails/railties/lib/tasks/rails.rb:8:in `each'
/home/bhoult/workspace/rails2/vendor/rails/railties/lib/tasks/rails.rb:8
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
/home/bhoult/workspace/rails2/Rakefile:10
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:2150:in `load'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:2150:in `raw_load_rakefile'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1898:in `load_rakefile'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1949:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1897:in `load_rakefile'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1881:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1949:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/lib/rake.rb:1879:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.0/bin/rake:31
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19