# Rake published rdoc version and arity of Rake::Task#execute - wrong number of arguments (0 for 1)

**URL:** <https://www.ruby-forum.com/t/rake-published-rdoc-version-and-arity-of-rake-task-execute-wrong-number-of-arguments-0-for-1/126136>\
**Category:** Ruby\
**Created:** [January 15, 2008, 6:44pm UTC](https://www.ruby-forum.com/t/rake-published-rdoc-version-and-arity-of-rake-task-execute-wrong-number-of-arguments-0-for-1/126136 "2008-01-15T18:44:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noagenda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/8c91f0/32.png) [@noagenda](https://www.ruby-forum.com/u/noagenda)\
**Post date:** [January 15, 2008, 6:44pm UTC](https://www.ruby-forum.com/t/rake-published-rdoc-version-and-arity-of-rake-task-execute-wrong-number-of-arguments-0-for-1/126136/1 "2008-01-15T18:44:42Z")

</div>

Does anybody know if there is a reason why the rdoc for the rake gem  
[1] is currently at version 0.7.x while the gem itself is at 0.8.1?

This caused me a bit of pain today when diagnosing a problem caused by  
the change to Rake::Task#execute method which used to not take any  
arguments, but now takes a single argument. I’ve posted the stack  
trace below in case it saves anyone else a bit of pain.

Also, does anyone know why a single argument is now _required_? I’ve  
found I can pass in nil as the argument and my rakefile works.

## Thanks.

James.

> **[James Mead](https://jamesmead.org/)**
>
> Ruby Developer, author of Mocha, and ex-Antarctic Hero.

> **[Floehopper](https://tumble.floehopper.org/)**
>
> thoughts on the bergy bits of life

[1] [http://rake.rubyforge.org](http://rake.rubyforge.org)

rake aborted!  
wrong number of arguments (0 for 1)  
…/lib/tasks/acceptance.rake:16:in `execute' ...../lib/tasks/acceptance.rake:16 /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call’  
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in  
`execute' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each’  
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in  
`execute' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in `invoke\_with\_call\_chain’  
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in  
`synchronize' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `invoke\_with\_call\_chain’  
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke\_task’  
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in  
`top_level' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each’  
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in  
`top_level' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in `standard\_exception\_handling’  
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in  
`top_level' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run’  
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in  
`standard_exception_handling' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run’  
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31  
/opt/local/bin/rake:16:in `load’  
/opt/local/bin/rake:16

$ ruby -v  
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.10.3]

$ rake --version  
rake, version 0.8.1

$ gem -v  
0.9.4
