Yeah that does seem a lot simpler... :) On Fri, Jan 23, 2009 at 10:55 PM, Eloy Duran <eloy.de.en...@gmail.com> wrote: > Hey Nic, > > Wouldn't something like this be sufficient: > > $LOAD_PATH.unshift File.join(OSX::NSBundle.mainBundle.privateFrameworksPath, > 'MacRuby.framework/Versions/Current/usr/lib/ruby/1.9.0') > > Eloy > > On Jan 23, 2009, at 12:04 PM, Dr Nic Williams wrote: > >> To fix up the $LOAD_PATH, I added the following to my rb_main.rb >> before "require 'hotcocoa'": >> >> local_path = $LOAD_PATH.find {|path| path =~ /CommitChat.app/} >> base_local_path = local_path.match(%r{.*CommitChat.app/Contents/})[0] >> >> library_paths = $LOAD_PATH.select {|path| path =~ >> %r{/Library/Frameworks/MacRuby} } >> local_library_paths = library_paths.map { |path| >> path.gsub(%r{/Library/}, base_local_path) } >> >> local_library_paths.reverse.each { |path| $:.unshift path } >> $:.unshift(local_path) >> >> Nic >> >> On Fri, Jan 23, 2009 at 8:39 PM, Dr Nic Williams >> <drnicwilli...@gmail.com> wrote: >>> >>> Matt, can you create a fork of the macruby github repo with these >>> patches applied? Or do you have one already? >>> >>> Cheers >>> Nic >>> >>> On Fri, Jan 23, 2009 at 8:30 PM, Matt Mower <s...@mattmower.com> wrote: >>>> >>>> On Fri, Jan 23, 2009 at 10:21 AM, Eloy Duran <eloy.de.en...@gmail.com> >>>> wrote: >>>>> >>>>> Even though a page about RubyCocoa, the steps descried there are pretty >>>>> general: >>>>> http://rubycocoa.sourceforge.net/EmbedRubyCocoa >>>>> >>>>> The standaloneify script that's mentioned there might give you insight >>>>> in >>>>> what you >>>>> would need to do to bundle everything. >>>>> >>>> >>>> I posted a patch here several weeks ago that make MacRuby embed as a >>>> "normal" framework with no mucking about. >>>> >>>> http://github.com/mmower/embeddable-macruby/tree/master >>>> >>>> It also handles internalizing the fixed bridge support files cleanly >>>> (patched BS files go inside MR instead of messing with your /System >>>> folder or getting copied into your app every time you build). >>>> >>>> m/ >>>> >>>> -- >>>> Matt Mower :: http://mattmower.com/ >>>> _______________________________________________ >>>> MacRuby-devel mailing list >>>> MacRuby-devel@lists.macosforge.org >>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>>> >>> >>> >>> >>> -- >>> Dr Nic Williams >>> iPhone and Rails consultants - http://mocra.com >>> Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com >>> * Surf Report for iPhone - http://mocra.com/projects/surfreport/ * >>> >> >> >> >> -- >> Dr Nic Williams >> iPhone and Rails consultants - http://mocra.com >> Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com >> * Surf Report for iPhone - http://mocra.com/projects/surfreport/ * >> _______________________________________________ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >
-- Dr Nic Williams iPhone and Rails consultants - http://mocra.com Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com * Surf Report for iPhone - http://mocra.com/projects/surfreport/ * _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel