RubyObjC rake failed


#1

Hey all !

after downloading and installing “RubyObjC. A Ruby/Objective-C bridge.”
http://www.rubyobjc.com/

i did the simplest try-out “myapp” and rake failed, see trace below :



~/work/RubyObjC/myapp%> rake --trace
(in /Users/yt/work/RubyObjC/myapp)
** Invoke default (first_time)
** Invoke app (first_time)
** Invoke executable (first_time)
** Invoke RubyObjC.app/Contents/MacOS (first_time, not_needed)
** Invoke RubyObjC.app/Contents/MacOS/RubyObjC (first_time)
** Invoke
/opt/local/lib/ruby/gems/1.8/gems/RubyObjC-0.3.0/lib/rake/…/rubyobjcapp
(first_time, not_needed)
** Execute RubyObjC.app/Contents/MacOS/RubyObjC
rake aborted!
wrong number of arguments (3 for 2)
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:725:in
fu_check_options' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:725:insh’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in sh' /opt/local/lib/ruby/gems/1.8/gems/RubyObjC-0.3.0/lib/rake/cocoa.rb:103:i ninitialize’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in call' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:inexecute’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:inexecute’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:insynchronize’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:ininvoke_prerequisites’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:insend’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:ininvoke_prerequisites’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:insynchronize’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:ininvoke_prerequisites’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:insend’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:ininvoke_prerequisites’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:insynchronize’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:ininvoke_prerequisites’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:insend’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:ininvoke_prerequisites’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:insynchronize’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:inrun’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:inrun’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
/opt/local/bin/rake:16:in `load’
/opt/local/bin/rake:16
~/work/RubyObjC/myapp%>


i get about the same with one of the samples :



~/work/RubyObjC/samples/maildemo%> rake --trace
(in /Users/yt/work/RubyObjC/samples/maildemo)
rake aborted!
Don’t know how to build task ‘default’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1449:in []' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:455:in[]’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in run' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:ineach’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in run' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7 /opt/local/bin/rake:16:inload’
/opt/local/bin/rake:16


as far as i understand this is due to rake not RubyObjC.

i think i should upgrade rake ???

my ruby version is :
ruby 1.8.6 (2007-03-13 patchlevel 0) [powerpc-darwin8.9.0]

Mac OS X 10.4.9


#2

Une Bévue wrote:

as far as i understand this is due to rake not RubyObjC.

i think i should upgrade rake ???

I think, you should take a look into the documentation:
http://www.rubyobjc.com/doc/files/USAGE.html

rake run seems to do the magic with this thing. I can’t confirm this, as
I don’t own a Mac.


Phillip “CynicalRyan” Gawlowski
http://cynicalryan.110mb.com/

Rule of Open-Source Programming #4:

If you don’t work on your project, chances are that no one will.


#3

Phillip G. removed_email_address@domain.invalid wrote:

I think, you should take a look into the documentation:
http://www.rubyobjc.com/doc/files/USAGE.html

yes thanks, i did follow that :

Rake Tasks

To build the application, type “rake”; to run it, use “rake run”.

rake run seems to do the magic with this thing. I can’t confirm this, as
I don’t own a Mac.


#4

unknown wrote:

Phillip G. removed_email_address@domain.invalid wrote:

I think, you should take a look into the documentation:
http://www.rubyobjc.com/doc/files/USAGE.html

yes thanks, i did follow that :

Rake Tasks

To build the application, type “rake”; to run it, use “rake run”.

rake run seems to do the magic with this thing. I can’t confirm this, as
I don’t own a Mac.

As a side note, RubyObjc stems from RubyCocoa. RubyCocoa is completely
free, RubyObjC is somewhat free - no commercial use. I was confused by
the two at first… RubyObjC just adds a few more tools to the arsenol…
like rake tasks, etc…