Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to bundle a ruby package into an [Objective-C] cocoa application?
    text
    copied!<p>I'm trying to figure out how I could bundle a package, written in Ruby (<a href="http://sass-lang.com/download.html" rel="noreferrer">Sass</a>) into a Cocoa application (Objective-C, not Ruby Cocoa) for me to execute (via NSTask is fine, unless there is an easy way to bridge ObjC&lt;->Cocoa that I'm not aware of).</p> <p>The Sass package is something you have to install, using "gem install" or "rake install" -- doing so puts a <em>ton</em> of files in my ~/.gem directory. Since I want anybody who has installed my Cocoa-based application to be able to execute this tool from within my app, I don't want to have the user go through a process of installing anything additional, so I'm hoping to be able to embed everything I need in the Resources directory of my app package.</p> <p>However, not being that familiar with the internals and structure of Ruby <sub>(Sorry, I'm having trouble just keeping ObjC/Cocoa in my head!)</sub>, It's not clear to me just which of the 1,444 files that got installed in the ~/.gem directory <sub>(Yes, I counted)</sub> I need to embed in the application and what I might need to do to get the directory references, etc. working right.</p> <p>If anybody has any experience with embedding a ruby tool into a Cocoa application, I would really appreciate your input. I wasn't expecting this to be so hard, considering that ruby <em>is</em> installed on Mac OS X ... but apparently this package is (typically? atypically?) more than just a single script file....</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload