[MacRuby-devel] Kernel#caller doesn't show directories

2010-05-03 Thread Brian Marick
Suppose you have foo.rb: def __DIR__ caller[0] raise 'death' end puts __DIR__ If you call that from, say, a directory two levels below it, you get this: 818 $ macruby ../../foo.rb foo.rb:2:in `__DIR__': death (RuntimeError) from foo.rb:6:in `' In 1.8.6 (and I sure hope

Re: [MacRuby-devel] Kernel#caller doesn't show directories

2010-05-03 Thread Brian Marick
Oh, forgot to mention: Ramaze also uses (or used to) use the caller() result to find its root and would probably break too. - Brian Marick, independent consultant Mostly on agile methods with a testing slant Author of /Programming Cocoa with Ruby/ www.exampler.com, www.exampler.com/blog, www

[MacRuby-devel] files delivered in site_ruby

2010-05-03 Thread Brian Marick
MacRuby 0.7: There are files delivered in site_ruby: bigdecimal/ openssl/ripper.rb digest/ openssl.rb universal-darwin10.0/ digest.rb ripper/ Shouldn't they be in vendor_ruby? I can't run a program without site-specific files

[MacRuby-devel] Aaron answer about convert the code of the Book to MacRuby

2010-05-03 Thread Daniel Lopes
Hello folks, Some days ago I sent a message here with the idea to convert the Cocoa Programming For Mac OSX to MacRuby. Definitely MacRuby is a fantastical project but we need more examples and places where people, like me, could start your journey. I think if we have resources like this code for A

Re: [MacRuby-devel] Aaron answer about convert the code of the Book to MacRuby

2010-05-03 Thread Carlo Zottmann
> solutions for "cocoa programming for mac OS x" in Ruby." My idea is place > all the code in github and share it in MacRuby site. What do you think? > Thanks Go for it. :) C. -- Carlo Zottmann Munich, Germany. -- http://carlo.zottmann.org Ephemera -- Two-way Instapaper.com sync for your ebo

[MacRuby-devel] Debugging MacRuby

2010-05-03 Thread Alexander von Below
Hello, we have grown fond of MacRuby, but found a few things that appear to be bugs. Our idea was, to install a symbolicated framework of MacRuby, to see what is going on in the guts. Surely this is possible, but is there a good "best practice" to building such a debug version? Thanks Alex _

Re: [MacRuby-devel] [MacRuby] Simple embedded WEBrick?

2010-05-03 Thread Alexander von Below
Am 27.04.2010 um 20:42 schrieb Thibault Martin-Lagardette: > Hi! > > Welcome to the MacRuby world ;-). > > I imagine you are running MacRuby 0.5 on your machine, seeing the paths you > include in your .rb file? Why are you doing all those includes by the way? > All the necessary paths will be

[MacRuby-devel] [ANN] MacRuby 0.6

2010-05-03 Thread Laurent Sansonetti
Hi, After 3 months of development since the last release, MacRuby 0.6 is now available. Get it here while it's still hot! MacRuby is an implementation of Ruby 1.9 directly on top of Mac OS X core technologies such as the Objective-C runtime and garbage collector, the LLVM compiler infrastructure

Re: [MacRuby-devel] Kernel#caller doesn't show directories

2010-05-03 Thread Brian Marick
I see that this works in 0.7. Sorry for the waste of bandwidth. On May 3, 2010, at 11:27 AM, Brian Marick wrote: > Suppose you have foo.rb: > > def __DIR__ >caller[0] >raise 'death' > end > > puts __DIR__ > > > If you call that from, say, a directory two levels below it, you get th

Re: [MacRuby-devel] MacRuby 0.6

2010-05-03 Thread Emil Tin
congratulations on the 0.6 release! great work! -emil smime.p7s Description: S/MIME cryptographic signature ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Re: [MacRuby-devel] Kernel#caller doesn't show directories

2010-05-03 Thread Laurent Sansonetti
Hi Brian, This looks like a bug. I don't know why it's fixed in 0.7 for you, because we haven't changed a lot of things there. In any case, a trac ticket might be a good idea if you still reproduce the problem. Note that backtraces in MacRuby are generated by walking through the stack and som

Re: [MacRuby-devel] files delivered in site_ruby

2010-05-03 Thread Laurent Sansonetti
On May 3, 2010, at 10:55 AM, Brian Marick wrote: > MacRuby 0.7: There are files delivered in site_ruby: > > bigdecimal/ openssl/ripper.rb > digest/ openssl.rb universal-darwin10.0/ > digest.rb ripper/ > > Shouldn't they be

Re: [MacRuby-devel] Debugging MacRuby

2010-05-03 Thread Laurent Sansonetti
Hi Alex, By default MacRuby builds with debugging symbols. So you can simply grab the sources from SVN (see http://www.macruby.org/source.html) and build/install them by hand. You should then see the source code inside gdb. I also recommend to read the HACKING.rdoc file, it contains a few tips

[MacRuby-devel] [MacRuby] #674: Shoulda fails because of oddity with block_given?

2010-05-03 Thread MacRuby
#674: Shoulda fails because of oddity with block_given? -+-- Reporter: mar...@… | Owner: lsansone...@… Type: defect | Status: new Priority: minor

Re: [MacRuby-devel] [MacRuby] #674: Shoulda fails because of oddity with block_given?

2010-05-03 Thread MacRuby
#674: Shoulda fails because of oddity with block_given? -+-- Reporter: mar...@… | Owner: lsansone...@… Type: defect | Status: new Priority: minor

Re: [MacRuby-devel] [MacRuby] #674: Shoulda fails because of oddity with block_given?

2010-05-03 Thread MacRuby
#674: Shoulda fails because of oddity with block_given? -+-- Reporter: mar...@… | Owner: lsansone...@… Type: defect | Status: new Priority: minor

Re: [MacRuby-devel] MacRuby 0.6

2010-05-03 Thread Matt Aimonetti
I also started publicly sharing the draft content of my MacRuby book: http://macruby.labs.oreilly.com/ My work is released under a Creative Commonslicense, with the idea of getting early feedback from the community. Feel free to leave comments,

[MacRuby-devel] [MacRuby] #675: Trying to do I/O on empty NSString crashes MacRuby

2010-05-03 Thread MacRuby
#675: Trying to do I/O on empty NSString crashes MacRuby ---+ Reporter: j...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker| Mil

Re: [MacRuby-devel] [MacRuby] #675: Trying to do I/O on empty NSString crashes MacRuby

2010-05-03 Thread MacRuby
#675: Trying to do I/O on empty NSString crashes MacRuby ---+ Reporter: j...@… |Owner: lsansone...@… Type: defect | Status: closed Priority: blocker|

[MacRuby-devel] [MacRuby] #676: MacRuby 0.6 requires g++ 4.2 in Leopard

2010-05-03 Thread MacRuby
#676: MacRuby 0.6 requires g++ 4.2 in Leopard +--- Reporter: came...@… | Owner: lsansone...@… Type: defect | Status: new Priority: critical|

Re: [MacRuby-devel] [MacRuby] #406: Can't load gem grit.

2010-05-03 Thread MacRuby
#406: Can't load gem grit. ---+ Reporter: hungerandthi...@… | Owner: lsansone...@… Type: defect | Status: new Priority: blocker|

[MacRuby-devel] [MacRuby] #677: Macruby segfaults when performing symbol#to_json

2010-05-03 Thread MacRuby
#677: Macruby segfaults when performing symbol#to_json --+- Reporter: bricoll...@… | Owner: lsansone...@… Type: defect| Status: new Priority: major

[MacRuby-devel] [MacRuby] #678: Installing jeweler makes macruby blow up.

2010-05-03 Thread MacRuby
#678: Installing jeweler makes macruby blow up. +--- Reporter: t...@… | Owner: lsansone...@… Type: defect | Status: new Priority: block

[MacRuby-devel] [MacRuby] #679: U_REGEX_BAD_ESCAPE_SEQUENCE while requiring nokogiri

2010-05-03 Thread MacRuby
#679: U_REGEX_BAD_ESCAPE_SEQUENCE while requiring nokogiri --+- Reporter: dml...@… | Owner: lsansone...@… Type: defect| Status: new Priority: major

Re: [MacRuby-devel] [MacRuby] #679: U_REGEX_BAD_ESCAPE_SEQUENCE while requiring nokogiri

2010-05-03 Thread MacRuby
#679: U_REGEX_BAD_ESCAPE_SEQUENCE while requiring nokogiri --+- Reporter: dml...@… | Owner: lsansone...@… Type: defect| Status: new Priority: major

Re: [MacRuby-devel] MacRuby 0.6

2010-05-03 Thread Robert Love
Count on one customer when it's ready for sale in paperback. Keep up the good work. On May 3, 2010, at 5:20 PM, Matt Aimonetti wrote: > I also started publicly sharing the draft content of my MacRuby book: > http://macruby.labs.oreilly.com/ > My work is released under a Creative Commons licen

Re: [MacRuby-devel] MacRuby 0.6

2010-05-03 Thread Matt Aimonetti
Thanks Robert and thanks to everyone adding comments. I will push a few updates tonight and make sure all paragraphs have the inline comment option. - Matt On Mon, May 3, 2010 at 9:13 PM, Robert Love wrote: > Count on one customer when it's ready for sale in paperback. Keep up the > good work.

Re: [MacRuby-devel] [ANN] MacRuby 0.6

2010-05-03 Thread Carlo Zottmann
Awesome. Pat yourselves on the back, you've done crackerjack job! :D Please don't stop doing it, Carlo -- Carlo Zottmann Munich, Germany. -- http://carlo.zottmann.org Ephemera -- Two-way Instapaper.com sync for your ebook reader, right from your Mac. TwerpScan -- Anti-Fool Twitter Contact Ma