From: Jon B. <jo...@gm...> - 2007-07-10 14:07:23
|
Just curious ... does any OS X < 10.4 ship w/ a Ruby binary? - Jon On Jul 10, 2007, at 9:55 AM, Eloy Duran wrote: > If all you need is REXML then going down this road isn't going to make > it easier for you. There's no need at all to bundle libruby etc unless > the version of REXML you want to use doesn't work with 1.8.2, which I > don't think...? > > Like Laurent said it's a pure ruby lib, so you can require it just > like any ruby source file. Depending on how REXML internally requires > files you might not even need to set the load path, although this > could be handy in general. > So maybe this might work: require "#{path_to_bundle_resources}/lib/ > REXML" > > Eloy > > On 7/10/07, Tim Perrett <he...@ti...> wrote: >> Ok thats interesting - however in his 'lib' dir he has nkf.bundle, >> stringio.bundle, strscan.bundle - which I dont think you are talking >> about. There is no such directoy as ./Resources/lib so you must >> mean ../lib? >> >> Looking at the rb_main, those other bits have been added by >> standalonify - looking in standalonify.rb in the src, you can see >> exactly the same as what is in PackRat. I understand what you are >> getting at however, and it makes sense :) >> >> I am still iterated as to how Slingshot have it working, as that >> seems like it would be a very elegant solution? There code base is >> much more tidy than that of locomotive. What does the static.a >> thing do? >> >> Cheers >> >> Tim >> >> >> >> On 10 Jul 2007, at 14:19, Jon Baer wrote: >> >>> You know what is a good app to check out ... >>> >>> http://infinitenil.com/packrat/ >>> >>> Download it and jump into /Applications/PackRat.app/Contents/ >>> Resources and take a look @ how his "lib" and rb_main.rb are laid >>> out. I found it be pretty helpful, although still not sure if it >>> was all generated by standalonify + if this is the "standard" way >>> to do it. >>> >>> In a nutshell (just remember to load REXML first): >>> COCOA_APP_RESOURCES_DIR = File.dirname(__FILE__) >>> $LOAD_PATH.reject! { |d| d.index(File.dirname >>> (COCOA_APP_RESOURCES_DIR))!=0 } >>> $LOAD_PATH << File.join(COCOA_APP_RESOURCES_DIR,"ThirdParty") >>> $LOAD_PATH << File.join(File.dirname(COCOA_APP_RESOURCES_DIR),"lib") >>> $LOADED_FEATURES << "rubycocoa.bundle" >>> ENV['GEM_HOME'] = ENV['GEM_PATH'] = File.join >>> (COCOA_APP_RESOURCES_DIR,"RubyGems") >>> >>> HTH, >>> >>> - Jon >> >> >> --------------------------------------------------------------------- >> ---- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Rubycocoa-talk mailing list >> Rub...@li... >> https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk >> > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Rubycocoa-talk mailing list > Rub...@li... > https://lists.sourceforge.net/lists/listinfo/rubycocoa-talk |