From: Allison N. <dem...@ma...> - 2008-06-11 14:23:10
|
Craig, I think you may have misunderstood me, or perhaps misunderstood what a gem actually is. Anyway, I'll try to clarify. My current app doesn't use gems, because I don't have need of any of the functionality that gems give. If I've understood you correctly, you wish to use sqlite, and hence need a gem to do this. In the Ruby world, gems are libraries that are installed into a specific folder on your computer, using the gem command line tool. This folder is NOT inside your application - it is globally accessible by all Ruby apps on your computer. Unfortunately for you, if you use the gem in your app, your app will no longer work on another computer that does not have the gem installed. Fortunately for you, the gurus that created RubyCocoa have created a tool called standaloneify.rb that Eloy keeps talking about. This tool goes your code, identifies all libraries that your app depends on, and copies them into the Resources folder of a new, standalone, version of your app. It really is very simple to use - using Terminal, simply cd to the folder containing your app, and run the command: ruby standalonify.rb -d MyStandaloneProg.app MyBuiltinProg.app changing the names for your original app, and it's standalone version, evidently. The link that Eloy gave you explains all of this pretty clearly (or at least I personally find it very clear, your mileage may vary :-) ). I think it really is going to be the simplest solution for you. Hope that helps. Alli On Wednesday, June 11, 2008, at 04:09PM, "Craig Williams" <cwi...@ma...> wrote: > >On Jun 11, 2008, at 7:29 AM, Eloy Duran wrote: > >> Hey Craig, >> >> Like someone else already pointed out, you'll need to use >> standaloneify >> if you want to package libraries with your app. Like for instance the >> sqlite gem. >> http://rubycocoa.sourceforge.net/EmbedRubyCocoa >> >> Cheers, >> Eloy > > >Hi Eloy, > >I am going through the Sparkle tutorial right now. What I was wanting >to do >is *remove* the gems from my computer and install the standard way like >Alli is doing so that I do not have to package the gems. > > From what everyone is saying this appears to be the preferable way. > >I have searched for standaloneify on my computer and have not located >it. >I do not have a Tools folder. > >Forgive my ignorance in all this. I just started learning Ruby two >weeks ago. >I am coming from AppleScript where very little *core operating system* >knowledge is required. > >I can tell you that programming in Ruby is more fun than AppleScript >and a lot less wordy. > >Anyway, thanks again for all the help. Once I get going my questions >will >become less *junior*:) > >Cheers, > >Craig > > >------------------------------------------------------------------------- >Check out the new SourceForge.net Marketplace. >It's the best place to buy or sell services for >just about anything Open Source. >http://sourceforge.net/services/buy/index.php >_______________________________________________ >Rubycocoa-talk mailing list >Rub...@li... >https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk > > |