[MacRuby-devel] BasicObject

2012-07-24 Thread Gabriel Gilder
Hi all, I have a pull request in on RSpec ( https://github.com/rspec/rspec-expectations/pull/160) to fix an issue I encountered with MacRuby, but I'm hoping someone here can provide a better explanation of the root cause of the issue than I can. Basically RSpec was assuming that a version of Ruby

Re: [MacRuby-devel] Rubygems version

2012-02-08 Thread Gabriel Gilder
t;> Is the work something you could train me on? >> >> Sent from my iPhone >> >> On Feb 7, 2012, at 5:14 PM, Matt Aimonetti wrote: >> >>> It's always quite a lot of work, especially when a new release is pushed >>> weekly. Could you op

[MacRuby-devel] Rubygems version

2012-02-06 Thread Gabriel Gilder
Hi, just wondering if there are plans to bring the version of Rubygems that is bundled with MacRuby up to date any time soon. The current version with MacRuby 0.10 is Rubygems 1.4.2 -- quite a bit behind standard Rubygems, which is at 1.8.15. This becomes a problem when certain gems are configur

Re: [MacRuby-devel] Bug with #method.call and blocks

2012-01-25 Thread Gabriel Gilder
gt; issues are guaranteed never to be fixed (well, almost…) > > ;) > On Wednesday, January 25, 2012 at 2:59 AM, Gabriel Gilder wrote: > >> Hi all, I have a feeling this might be a known issue, but I couldn't find >> any discussion of it. >> >> I

[MacRuby-devel] Bug with #method.call and blocks

2012-01-24 Thread Gabriel Gilder
Hi all, I have a feeling this might be a known issue, but I couldn't find any discussion of it. I've put together a simple example: https://gist.github.com/1675279 Basically, if I have a class Foo, with an instance method bar that yields to a block, in MRI I can do this: Foo.new.method(:bar).c

Re: [MacRuby-devel] MacRuby WWDC Meetup

2011-05-23 Thread Gabriel Gilder
Oh no! I missed my chance. Damn work keeping me busy! I hope someone decides to free up their spot. ;) On Mon, May 23, 2011 at 3:38 PM, Christian Niles wrote: > The event is now full. Thanks everyone! > > On May 23, 2011, at 2:19 PM, Christian Niles wrote: > > > You weren't kidding -- only 5 tic

[MacRuby-devel] MacRuby crash log

2011-04-08 Thread Gabriel Gilder
Hi, I'm working on a MacRuby app that occasionally - and somewhat randomly - crashes with a SIGABRT. Not sure if I can create a code sample that recreates the issue, since performing the same actions doesn't always trigger the crash. I've posted the crash log here: https://gist.github.com/910336

Re: [MacRuby-devel] RoxorReturnFromBlockException*

2011-03-31 Thread Gabriel Gilder
Yep, no worries. I probably should have explicitly said that "hello after proc" doesn't print, which is the correct behavior. -Gabriel On Thu, Mar 31, 2011 at 12:07 AM, Rob Gleeson wrote: > > On 31 Mar 2011, at 08:05, Rob Gleeson wrote: > > > > > def trigger_action(sender) > > a_proc = Proc.n

Re: [MacRuby-devel] RoxorReturnFromBlockException*

2011-03-30 Thread Gabriel Gilder
Objective-C/C++ exception...* *terminate called after throwing an instance of 'RoxorReturnFromBlockException*'* Program received signal: “SIGABRT”. sharedlibrary apply-load-rules all I can't quite understand why. Anybody? -Gabriel On Wed, Mar 30, 2011 at 11:05 AM, Rob Gleeson

Re: [MacRuby-devel] RoxorReturnFromBlockException*

2011-03-30 Thread Gabriel Gilder
I think you want "break" instead of "return". You can't return from a block (Proc). -Gabriel On Wed, Mar 30, 2011 at 7:53 AM, Martin Hawkins wrote: > From what I can read in the archives, this was raised about 18 months > ago. Loosely following Matt's book, I've written the following code: > de

Re: [MacRuby-devel] Help test a new MacRuby app

2011-03-14 Thread Gabriel Gilder
Seems to be working for me, and the UI of the search results looks very nice. Congratulations on the app! A few little bugs/notes: - In the Preferences dialog you have a typo, "Googe Docs". - When you open the Preferences dialog, and then switch out of the app (like say to go find your credentia

Re: [MacRuby-devel] what are you building with macruby?

2011-01-18 Thread Gabriel Gilder
I'm working on an internal tool that we use to provide a friendly/better interface to an email distribution system, but unfortunately it's under NDA so I can't really share more info than that... ;) -Gabriel On Tue, Jan 18, 2011 at 12:18 AM, Jarkko Laine wrote: > On 17.1.2011, at 22.19, Matt A

Re: [MacRuby-devel] require [was: [ANN] The Flying Camera (game)]

2010-12-20 Thread Gabriel Gilder
I don't believe paths are expanded normally by require, when they include a relative component like "../" at least. In a quick experiment I just whipped up, the following two lines only result in one load: require 'subdir/module' require './subdir/module' But these two lines result in the file bei

Re: [MacRuby-devel] require [was: [ANN] The Flying Camera (game)]

2010-12-19 Thread Gabriel Gilder
H would be more elegant. -Gabriel On Sat, Dec 18, 2010 at 1:58 PM, russell muetzelfeldt < russm-macruby-de...@slofith.org> wrote: > > Date: Fri, 17 Dec 2010 11:13:35 -0800 > > From: Gabriel Gilder > > > > I ended up solving this problem in my MacRuby app by writing a

Re: [MacRuby-devel] require [was: [ANN] The Flying Camera (game)]

2010-12-17 Thread Gabriel Gilder
I ended up solving this problem in my MacRuby app by writing a little class to load dependencies - it keeps track of the full file paths of every dependency in a class variable and makes sure to only load a file once even if you request it again. Let me know if you would like me to post some sample

Re: [MacRuby-devel] Error allocating an NSMenu

2010-12-14 Thread Gabriel Gilder
> collection). > > Laurent > > On Dec 14, 2010, at 11:51 AM, Gabriel Gilder wrote: > > Hi, > > Just installed MacRuby 0.8 and discovered that my project is generating an > error on a line of code that worked previously... it's in a handler that > creates a contextual menu,

[MacRuby-devel] Error allocating an NSMenu

2010-12-14 Thread Gabriel Gilder
Hi, Just installed MacRuby 0.8 and discovered that my project is generating an error on a line of code that worked previously... it's in a handler that creates a contextual menu, but I can recreate the error just by running this line: theMenu = NSMenu.alloc.initWithTitle("Contextual Menu").aut

Re: [MacRuby-devel] MacRuby 0.7 with Appscript

2010-10-18 Thread Gabriel Gilder
broken scriptable definitions, so your mileage > might vary. > > Laurent > > On Oct 18, 2010, at 9:13 PM, Gabriel Gilder wrote: > > Definitely! I will take a look at that again tomorrow and put together a > ticket on it. > > Thanks for all your incredible work on the M

Re: [MacRuby-devel] Converting Ruby-style method signatures back to Obj-C style

2010-10-18 Thread Gabriel Gilder
; There isn't any way to reconstruct the objc selector. We could expose an > API, though, if you file a ticket, but I suspect it's not hard to do. > > Laurent > > On Oct 15, 2010, at 2:34 PM, Gabriel Gilder wrote: > > Hi all, > > I have a somewhat esoteric problem and

Re: [MacRuby-devel] MacRuby 0.7 with Appscript

2010-10-18 Thread Gabriel Gilder
including instructions on how to reproduce the > problem? > > Thanks, > Laurent > > On Oct 14, 2010, at 3:33 PM, Gabriel Gilder wrote: > > Hi all, > > I've just updated to MacRuby 0.7 and it appears that it breaks Appscript... > I've recompiled the framework, re-r

[MacRuby-devel] Converting Ruby-style method signatures back to Obj-C style

2010-10-15 Thread Gabriel Gilder
Hi all, I have a somewhat esoteric problem and I was wondering if anyone had suggestions about how to deal with it. Basically I'm writing a Ruby class that wraps some Objective-C classes and provides a common interface to them, and I'm using method_missing to pass along messages if the wrapped ob

[MacRuby-devel] MacRuby 0.7 with Appscript

2010-10-14 Thread Gabriel Gilder
Hi all, I've just updated to MacRuby 0.7 and it appears that it breaks Appscript... I've recompiled the framework, re-ran the macruby-appscript setup.rb, but if I try to require "appscript" I get: Program received signal: “EXC_BAD_ACCESS”. sharedlibrary apply-load-rules all warning: Unable to re

Re: [MacRuby-devel] Noob question: Interface builder not picking up MacRuby definitions

2010-09-15 Thread Gabriel Gilder
Have you recently updated your Xcode installation? I find that every time I install a new version of Xcode, I have to re-install MacRuby to get the IB integration to work again. -Gabriel On Wed, Sep 15, 2010 at 3:50 AM, Iain Barnett wrote: > On 15 Sep 2010, at 10:45, Felix Holmgren wrote: > >

Re: [MacRuby-devel] Using HotCocoa inside a MacRuby project?

2010-06-08 Thread Gabriel Gilder
bother! -Gabriel On Thu, Jun 3, 2010 at 4:32 PM, Gabriel Gilder wrote: > Hi all, > I'm currently working on a MacRuby project and wanted to use HotCocoa for > the window layout features (i.e. circumvent Interface Builder). > > However, if I include the following lines in r

[MacRuby-devel] Using HotCocoa inside a MacRuby project?

2010-06-03 Thread Gabriel Gilder
Hi all, I'm currently working on a MacRuby project and wanted to use HotCocoa for the window layout features (i.e. circumvent Interface Builder). However, if I include the following lines in rb_main.rb: require 'rubygems' require 'hotcocoa' I get this error: rb_main.rb:9:in `': uninitialized cons