jbarnette/hoe-debugging — Issue #1: wrong # of arguments to method ruby(): unable to run rake in loofah
Author: dabble
Created: 2011-11-17 21:13:35+00:00
State: open

I pulled down the latest loofah (63a8923a4fcef0f8a9a34621d45f03f1448fa914) and wanted to run rake and
I kept getting errors due to hoe-debugging.

I tried downgrading from version 1.0.2 to 1.0.1, but I just ended up with a more mysterious error.

/Users/dabble/dev/loofah > rake --trace
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
rake aborted!
wrong number of arguments (1 for 0)
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/hoe-debugging-1.0.2/lib/hoe/debugging.rb:36:in `ruby'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/hoe-2.12.3/lib/hoe/test.rb:75:in `block in define_test_tasks'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/dabble/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/Users/dabble/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/bin/rake:33:in `'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `load'
/Users/dabble/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in `

'
Tasks: TOP => default => test

Here's my Gemfile.lock.

GEM
remote: http://rubygems.org/
specs:
hoe (2.12.3)
rake (~> 0.8)
hoe-bundler (1.1.0)
hoe (>= 2.2.0)
hoe-debugging (1.0.1)
hoe (>= 2.2.0)
hoe-gemspec (1.0.0)
hoe (>= 2.2.0)
hoe-git (1.4.1)
hoe (>= 2.2.0)
json (1.6.1)
minitest (2.8.0)
nokogiri (1.5.0)
rake (0.9.2.2)
rr (1.0.4)

PLATFORMS
ruby

DEPENDENCIES
hoe (>= 2.9.4)
hoe-bundler
hoe-debugging
hoe-gemspec
hoe-git
json
minitest (~> 2.2)
nokogiri (>= 1.4.4)
rake (>= 0.8)
rr (~> 1.0)