Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 693
Jeena Avatar asked Dec 21 '25 09:12

Jeena


2 Answers

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.

like image 122
Chuck Avatar answered Dec 23 '25 08:12

Chuck


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.

like image 45
CJ Bryan Avatar answered Dec 23 '25 07:12

CJ Bryan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!