Re: [MacRuby-devel] handlers and carets

2011-05-06 Thread Laurent Sansonetti
Hi Pavlos, You simply pass a Proc object. handler = Proc.new do |result| if result == … ... end oPanel.beginSheetModalForWindow self.window, completionHandler: handler Make sure you installed the latest BridgeSupport preview before, avail

[MacRuby-devel] handlers and carets

2011-05-06 Thread Pavlos Vinieratos
hello. how can I write this in macruby? [oPanel beginSheetModalForWindow:[self window] completionHandler:^(NSInteger result) { if (result == NSFileHandlingPanelOKButton) { for (NSURL *fileURL in [oPanel URLs]) { // do something with fileURL }

Re: [MacRuby-devel] Unable to Upload Application to the App store

2011-05-06 Thread Daniel Westendorf
Upgrading to the nightly build of .11 resolved the issue for me. Thanks! Daniel On Fri, May 6, 2011 at 1:49 PM, Daniel Westendorf wrote: > Hi Laurent, > > I'm running MacRuby .10. I'll try upgrading to a nightly build and seeing > where that gets me. As of right now, I can upload the package to

Re: [MacRuby-devel] Unable to Upload Application to the App store

2011-05-06 Thread Daniel Westendorf
Hi Laurent, I'm running MacRuby .10. I'll try upgrading to a nightly build and seeing where that gets me. As of right now, I can upload the package to the App store and it validates, but I get a status of "Invalid Bundle". Daniel On Fri, May 6, 2011 at 1:45 PM, Laurent Sansonetti wrote: > Hi Da

Re: [MacRuby-devel] Unable to Upload Application to the App store

2011-05-06 Thread Laurent Sansonetti
Hi Daniel, What version of MacRuby are you using? You may want to try a nightly build as it contains up to date fixes in the deployment tool. Laurent On May 6, 2011, at 12:06 PM, Daniel Westendorf wrote: > Hi all, > > I'm running into some trouble uploading my application to the App store. I

Re: [MacRuby-devel] Unable to Upload Application to the App store

2011-05-06 Thread Daniel Westendorf
Simply navigating into the archive and the application bundle inside and removing the offending files allowed me to upload the application to the App store. dw On Fri, May 6, 2011 at 1:06 PM, Daniel Westendorf wrote: > Hi all, > > I'm running into some trouble uploading my application to the App

[MacRuby-devel] Unable to Upload Application to the App store

2011-05-06 Thread Daniel Westendorf
Hi all, I'm running into some trouble uploading my application to the App store. I have my main application target which validates fine when Archived. I have a second target, which depends on the main target. This target uses macruby_deploy with the arguments --compile --embed --gem sqlite3 --gem

Re: [MacRuby-devel] macruby rspec mock odd behavior

2011-05-06 Thread Gabriel Ayuso
Hi Josh, Thanks for your feedback. After calling instance_methods on my class I saw that the selector was called and also tried to setup the expectation as you mentioned. Sadly this didn't work either. I get the following syntax error: ...FFF Failures: 1) MyClass loginWithEmail:password: sh

Re: [MacRuby-devel] macruby rspec mock odd behavior

2011-05-06 Thread Joshua Ballanco
Hi Gabriel, So, you've stumbled across a bit of a confusing "feature" of MacRuby and interaction with Obj-C. The full method name of the Obj-C method, as Ruby sees it, is actually "buildRequestWithUrl:method:header:body:", since this is the selector. So, I think your mock should work if you sim

Re: [MacRuby-devel] Mac server for continuous integration

2011-05-06 Thread Eloy Duran
Well, I’m not completely up-to-date with the specifics, but as I understand it it would mean allowing your machine to be used by the travis-ci project as a continuous integration server. So this has nothing to do with us directly. However, indirectly it would mean the MacRuby project has a place w

Re: [MacRuby-devel] Mac server for continuous integration

2011-05-06 Thread Alexander von Below
What exactly can I do for you? Alex Am 06.05.2011 um 14:25 schrieb Eloy Duran: > Hi, > > In case there's anyone on this list with mac server(s), it would be > great if one, or some cpu time, could be donated to the > http://travis-ci.org project to support MacRuby and allow developers > to tes

[MacRuby-devel] Mac server for continuous integration

2011-05-06 Thread Eloy Duran
Hi, In case there's anyone on this list with mac server(s), it would be great if one, or some cpu time, could be donated to the http://travis-ci.org project to support MacRuby and allow developers to test their gems on MacRuby. In the case of MacRuby this would mean running the full spec suite, a