[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

creating a framework to wrap a gem

sal.scotto@gmail.com

11/14/2007 12:49:00 AM

Anyone know of a good way to wrap a rubygem into a framework for
xcode? I wana take my custom gem, make it into a framework for use in
a rubycocoa app

1 Answer

Laurent Sansonetti

11/14/2007 2:04:00 AM

0

On Nov 14, 2007 1:50 AM, sal.scotto@gmail.com <sal.scotto@gmail.com> wrote:
> Anyone know of a good way to wrap a rubygem into a framework for
> xcode? I wana take my custom gem, make it into a framework for use in
> a rubycocoa app
>

You could add a new build phase in your framework project that copies
your gem inside the framework bundle, for example in the Resources
directory. Then, in your RubyCocoa app, during initialization, modify
the GEM_HOME environment variable to point inside the framework
bundle, then simply require the gem.

Laurent