[MacRuby-devel] Deploying a MacRuby.app with the GCD Dispatch gem

Matt Aimonetti mattaimonetti at gmail.com
Fri Jan 7 16:28:49 PST 2011


Or unpack the gem in your project and manually require the file from the lib directory.

- Matt

Sent from my iPhone

On Jan 7, 2011, at 14:22, Laurent Sansonetti <lsansonetti at apple.com> wrote:

> Hi Arron,
> 
> A solution would be to package the gem inside your application bundle (maybe using the --install-dir option of macgem), then appropriately set up the GEM_HOME variable to point to the directory inside the bundle.
> 
> Laurent
> 
> On Jan 7, 2011, at 10:24 AM, Arron Mabrey wrote:
> 
>> I want to use the Dispatch gem in my MacRuby.app.
>> 
>> https://github.com/gunn/Dispatch
>> 
>> The gem is installed.
>> 
>> However I'm having problems just requiring it.
>> # app_controller.rb
>> require 'rubygems'
>> require 'dispatch'
>> 
>> Errors out with.
>> /Users/arron/code/MyApp/build/Debug/MyApp.app/Contents/Resources/rb_main.rb:18:in
>> `block': no such file to load -- dispatch (LoadError)
>> 	from /Users/arron/code/MyApp/build/Debug/MyApp.app/Contents/Resources/rb_main.rb:16:in
>> `<main>'
>> 
>> What are the proper steps to require a gem within a Xcode project? Is
>> it necessary to require rubygems?
>> 
>> Also what are the proper steps to include the gem in the app to
>> resolve dependancies at deployment?
>> 
>> Arron Mabrey
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20110107/840edd2c/attachment.html>


More information about the MacRuby-devel mailing list