Jeena
Jeena

Reputation: 2222

How to embed a gem into a RubyCocoa app?

I'd like to embed 2 gems into my RubyCocoa app, so the user doesn't have to install them on the console on him-/herself. But I can't find any information on about how to do that.

Upvotes: 3

Views: 510

Answers (2)

Chuck
Chuck

Reputation: 237060

RubyCocoa includes a tool called standaloneify.rb that will include dependencies in your application bundle. Find it at [path to RubyCocoa.framework]/Versions/A/MacOS/Tools/standaloneify.rb.

Upvotes: 1

CJ Bryan
CJ Bryan

Reputation: 178

I'm not to familiar with how RubyCocoa deals with things, but I'd imagine you could use gem unpack to extract the gem source to some directory in your project root and then reference the library from there.

Upvotes: 1

Related Questions