In response to my own question, I've got it sort of working.

I had to navigate my way down to
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/
on my system, then copy the osx/ folder to the equivalent spot within
the Shoes.app. Then in my application I had to put in the line:

$:.push("/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0”)

This seems really ugly and fragile. Any better ideas?

Thanks,
AC

On Tue, Feb 24, 2009 at 3:17 PM, Aaron Cohen <[email protected]> wrote:
> Hi all,
>
> I am working on a project that needs to require another ruby app
> (non-shoes). That non-shoes app needs to be able to require
> 'osx/cocoa'. Shoes' internal ruby environment doesn't seem to have
> access to CocoaRuby, and I'm not sure how to fix that. Unfortunately
> it's not as simple as just installing a gem, it seems. I'm running on
> Leopard, so it's installed by default, and I can access it from IRB.
>
> Any ideas?
>
> Thanks,
> Aaron Cohen
>

Reply via email to