Re: [MacRuby-devel] Gems again; signing records

2011-01-29 Thread Martin Hawkins
It's great to see this discussion. As a developer, I just want to ‘require "bananas"’ and see it work. I come from a Rails background, so I know that gem dependencies can create all sorts of problems. As Macruby becomes more popular, these problems are going to become more apparent as the diversity

Re: [MacRuby-devel] Gems again; signing records

2011-01-29 Thread Eloy Duran
Btw, I don't think a Gemfile adds anything for a bundled production app besides that our shim would have to support the DSL. I think the dev should just use ‘require "bananas"’ in her code and it should just work. I.e. the Gemfile is I think only needed in development and at release time. On Sat,

Re: [MacRuby-devel] Gems again; signing records

2011-01-29 Thread Eloy Duran
Yes, what we need is a tool that resolves dependencies at release time and bundle these in the app. The app also have a shim that makes sure that if any of the bundled dependencies call Kernel#gem it doesn't break. I.e. on the clients machine rubygems should not actually be loaded to ensure as fast

Re: [MacRuby-devel] Gems again; signing records

2011-01-28 Thread Caio Chassot
On 2011-01-29, at 02:11 , Matt Aimonetti wrote: > > IMHO adding Bundler as a dependency would be a huge mistake. First, Bundler > code is overly complicated and tries to do way too much. (You forgot to mention slow.) I think I agree here. I just like the Gemfile format. Don't think we need to

Re: [MacRuby-devel] Gems again; signing records

2011-01-28 Thread Matt Aimonetti
IMHO adding Bundler as a dependency would be a huge mistake. First, Bundler code is overly complicated and tries to do way too much. Trying to resolve the dependency tree is not something you should do in prod or on a client machine. This belongs to the dev environment. We could potentially look

Re: [MacRuby-devel] Gems again; signing records

2011-01-28 Thread Caio Chassot
On 2011-01-28, at 21:36 , Laurent Sansonetti wrote: > > I would rather avoid any dependency. I agree that keeping track of the gems > you need in a single place is a good idea, though. > > Maybe we should refactor the Xcode templates to do so, eventually. I'd classify Xcode as a dependency. Sim

Re: [MacRuby-devel] Gems again; signing records

2011-01-28 Thread Laurent Sansonetti
Hi Caio, On Jan 28, 2011, at 2:39 PM, Caio Chassot wrote: > On 2011-01-28, at 20:30 , Laurent Sansonetti wrote: >> >> As I suggested on IRC yesterday, I think we should add a --gem argument to >> macruby_deploy, which would make sure the given gems and their dependencies >> are unpacked inside

Re: [MacRuby-devel] Gems again; signing records

2011-01-28 Thread Caio Chassot
On 2011-01-28, at 20:30 , Laurent Sansonetti wrote: > > As I suggested on IRC yesterday, I think we should add a --gem argument to > macruby_deploy, which would make sure the given gems and their dependencies > are unpacked inside the application bundle. It could be great if this involved a bit

Re: [MacRuby-devel] Gems again; signing records

2011-01-28 Thread Laurent Sansonetti
Hi Martin, I think we now get the "how to embed gems in a MacRuby Xcode project?" question every week. I think it's time that we provide a way to automate that and properly document it on the website. As I suggested on IRC yesterday, I think we should add a --gem argument to macruby_deploy, wh

Re: [MacRuby-devel] Gems again; signing records

2011-01-28 Thread Martin Hawkins
Well, I've just realised that get the fileutils message was in fact a sign of some success, as the UUID gem does indeed require it. I'll play around a little more with gem loading - I've got to get it right for other projects. I was doing what you suggested but without apparent success. wrt CFUUID

Re: [MacRuby-devel] Gems again; signing records

2011-01-28 Thread Joshua Ballanco
On Fri, Jan 28, 2011 at 12:41 PM, Martin Hawkins wrote: > In rb_main.rb > > $:.unshift File.join(File.dirname(__FILE__), 'Vendor/uuid-2.3.1/lib') > $:.unshift File.join(File.dirname(__FILE__), 'Vendor/macaddr-1.0.0/ > lib') > > require 'macaddr' > require 'uuid' > > However, when I try to requir

Re: [MacRuby-devel] Gems

2008-12-29 Thread Laurent Sansonetti
Yes, they will. This is a work in progress, though. Laurent On Dec 28, 2008, at 10:35 AM, Brad Hutchins wrote: What about Ruby Gems? If they are 1.9 compatible. Will they work on MacRuby? ___ MacRuby-devel mailing list [email protected]