Re: [MacRuby-devel] Tutorial for the new Sandbox class.

2010-10-06 Thread Matt Aimonetti
Thx I'll merge the article asap (after a quick sanity check). - Matt Sent from my iPhone On Oct 7, 2010, at 1:17, Rob Gleeson wrote: >> >> It looks good to me (but I'm not a native English speaker :)). >> >> I think this tutorial should be on the website. Would you mind converting >> it? If

Re: [MacRuby-devel] Tutorial for the new Sandbox class.

2010-10-06 Thread Rob Gleeson
> > It looks good to me (but I'm not a native English speaker :)). > > I think this tutorial should be on the website. Would you mind converting it? > If yes, some information is available here: > http://www.macruby.org/documentation/website-contributions.html > > Laurent > Done! :-) Commi

Re: [MacRuby-devel] control tower with objective-c class

2010-10-06 Thread Louis-Philippe
Great! Ticket Added! L-P 2010/10/6 Laurent Sansonetti > Hi Louis-Philippe, > > Could you paste all this into a new ticket? This way we won't forget to fix > it. > > Thanks! > Laurent > > On Oct 6, 2010, at 1:12 PM, Louis-Philippe wrote: > > my Objective-C class: > >

Re: [MacRuby-devel] LLVM Developer Meeting

2010-10-06 Thread Laurent Sansonetti
Hi Jeff, On Oct 6, 2010, at 6:34 AM, Jeff Hemmelgarn wrote: > Hello, > > Sorry for the possibly off-topic mail. If I should take this elsewhere let > me know. > > I was wondering if any of the MacRuby team were going to attend the LLVM > Developer Meeting on Nov. 4? I talked to my boss and

Re: [MacRuby-devel] control tower with objective-c class

2010-10-06 Thread Laurent Sansonetti
Hi Louis-Philippe, Could you paste all this into a new ticket? This way we won't forget to fix it. Thanks! Laurent On Oct 6, 2010, at 1:12 PM, Louis-Philippe wrote: > my Objective-C class: > > __ > @implementation ObjcRackApp > > - (NSArray*)call:(NSDic

Re: [MacRuby-devel] Tutorial for the new Sandbox class.

2010-10-06 Thread Laurent Sansonetti
On Oct 6, 2010, at 3:07 AM, Rob Gleeson wrote: > On 6 Oct 2010, at 09:19, Laurent Sansonetti wrote: > >> >> It looks nice! Thanks for writing it :) > > No problem! My way of contributing back to the MacRuby community, since I'm > not that good with C/ObjC. > >> Something worth mentioning I bel

Re: [MacRuby-devel] control tower with objective-c class

2010-10-06 Thread Louis-Philippe
my Objective-C class: __ @implementation ObjcRackApp - (NSArray*)call:(NSDictionary *)env { return [NSArray arrayWithObjects: [NSNumber numberWithInteger:200], [NSDictionary dictionaryWithObject:@"text/plain" forKey:@"Content-Type"], @"Hello Objc!", n

Re: [MacRuby-devel] control tower with objective-c class

2010-10-06 Thread Joshua Ballanco
Hi L-P, That sounds like a neat idea! I can think of a few ways that it might go wrong, but they're only guesses. Do you have some small sample code that demonstrates the problem? If so, can you open a ticket on track (https://www.macruby.org/auth/login/?next=/trac/newticket) and set the compo

[MacRuby-devel] control tower with objective-c class

2010-10-06 Thread Louis-Philippe
Hi all, I'm experimenting with Control Tower and tought I would try to get it running with an Objective-C class, inside an imported framework, implementing the Rack protocol. My class imports right in macruby, has a proper call(env) method which returns an array of 3 elements, when I call inspect

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-06 Thread Eloy Duran
Aha, I see. Well, first let me say that, as you noticed, the internals of IRB are indeed different than the one from MRI. This is a rewrite of IRB called DietRB http://github.com/alloy/dietrb, which was mentioned in the changelog, but not the announcement. I haven’t worked on completing the API and

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-06 Thread Matt Massicotte
I wasn't clear at all, sorry. I can't get *automatic* formatting to work. My .irbrc file looks like this: require "rubygems" require "ap" unless Kernel.respond_to?(:framework) #admitted ugly hack require 'irb/completion' IRB::Irb.class_eval do def output_value ap @context.last

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-06 Thread Eloy Duran
I did, in the email that you replied on. Could you please send some more info about what really happens? Eloy On Oct 6, 2010, at 5:49 PM, Matt Massicotte wrote: > I didn't know about awesome_print, and it's kind of blown my mind. The > default irb formatting is great. Only, I cannot get it t

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-06 Thread Matt Massicotte
I didn't know about awesome_print, and it's kind of blown my mind. The default irb formatting is great. Only, I cannot get it to work in macirb. It looks like the internals of IRB is completely different. Has anyone had an luck with this? Matt On Oct 6, 2010, at 2:10 AM, Eloy Duran wrote:

[MacRuby-devel] LLVM Developer Meeting

2010-10-06 Thread Jeff Hemmelgarn
Hello, Sorry for the possibly off-topic mail. If I should take this elsewhere let me know. I was wondering if any of the MacRuby team were going to attend the LLVM Developer Meeting on Nov. 4? I talked to my boss and I might be able to make it out for the meeting. I am looking at switching

Re: [MacRuby-devel] Tutorial for the new Sandbox class.

2010-10-06 Thread Rob Gleeson
On 6 Oct 2010, at 09:19, Laurent Sansonetti wrote: > > It looks nice! Thanks for writing it :) No problem! My way of contributing back to the MacRuby community, since I'm not that good with C/ObjC. > Something worth mentioning I believe is that sandbox profiles are actually > Scheme expres

Re: [MacRuby-devel] MacRuby-devel Digest, Vol 32, Issue 13

2010-10-06 Thread Eloy Duran
: "MacRuby development discussions." >> >> Subject: [MacRuby-devel] Sequel + SQLite Crash SIGABRT >> Message-ID: >> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Hey guys, >> >> I filed a

Re: [MacRuby-devel] macirb or not working with awesome_print

2010-10-06 Thread Eloy Duran
I verified that it does work: sudo macgem install awesome_print Password: unknown: warning: ignoring alias Successfully installed awesome_print-0.2.1 1 gem installed % cat ~/.irbrc require 'rubygems' require 'ap' % macirb irb(main):001:0> data = [ false, 42, %w(forty two), { :now => Time.now, :c

Re: [MacRuby-devel] MacRuby-devel Digest, Vol 32, Issue 13

2010-10-06 Thread Joshua Ballanco
the new > instance, I'm only creating an instance of the class, and attempting to > assign data to it. It simply fails, and crashes on MacIRB. I have no > problems with Ruby itself, as it runs just perfect, and as expected. I > dunno what is causing the issues, but I figured I would br

Re: [MacRuby-devel] MacRuby-devel Digest, Vol 32, Issue 13

2010-10-06 Thread Brad Hutchins
ave no > problems with Ruby itself, as it runs just perfect, and as expected. I > dunno what is causing the issues, but I figured I would bring it up, as I > filed the ticket here: https://www.macruby.org/trac/ticket/930 > > Also, as a Side question, I'm building my code

Re: [MacRuby-devel] Sequel + SQLite Crash SIGABRT

2010-10-06 Thread Mario Steele
On Wed, Oct 6, 2010 at 4:21 AM, Laurent Sansonetti wrote: > Hi Mario, > > Thanks for filing the problem, I will have a look soon. > Thanks, this is a show stopper right now for my Program, as I need a database in which I can store MP3 tag info into, and keep references to where files are for play

Re: [MacRuby-devel] Sequel + SQLite Crash SIGABRT

2010-10-06 Thread Laurent Sansonetti
Hi Mario, On Oct 6, 2010, at 12:56 AM, Mario Steele wrote: > Hey guys, > > I filed a bug report, dealing with Sequel and SQLite, with a minimal example > reproducing the problem. The jist of it, is when I create a new instance of > my class that is subclassed from Sequel::Model, and attempt t

Re: [MacRuby-devel] Tutorial for the new Sandbox class.

2010-10-06 Thread Laurent Sansonetti
Hi Rob, It looks nice! Thanks for writing it :) Something worth mentioning I believe is that sandbox profiles are actually Scheme expressions, and that the default Sandbox class constructor allows you to pass such an expression, as a string. If you look at the /usr/share/sandbox/ directory on

[MacRuby-devel] Tutorial for the new Sandbox class.

2010-10-06 Thread Rob Gleeson
I wrote a short tutorial I'd like to share with everybody about the new Sandbox class introduced in the new 0.7 release of MacRuby. I tried to focus on using the class inside MacRuby as much as possible. Please let me know what you think, spot errors, etc! Link: http://robgleeson.github.com/docu

[MacRuby-devel] Sequel + SQLite Crash SIGABRT

2010-10-06 Thread Mario Steele
Hey guys, I filed a bug report, dealing with Sequel and SQLite, with a minimal example reproducing the problem. The jist of it, is when I create a new instance of my class that is subclassed from Sequel::Model, and attempt to assign data to it, it crashes with a SIGABRT. Looking through the back