[MacRuby-devel] Bug: NSValueTransformer receivers NSCFNumber, not fixnum

2009-02-12 Thread Brian Marick
when NSOnState then false else raise "The value to transform should be either NSOffState or NSOnState." end If this is a bug, I'll write a testcase. - Brian Marick, independent consultant Mostly on agile methods with a testin

Re: [MacRuby-devel] helping out

2009-03-30 Thread Brian Marick
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel - Brian Marick, independent consultant Mostly on agile methods with a testing slant

Re: [MacRuby-devel] Unit testing in Xcode

2009-04-07 Thread Brian Marick
On Apr 4, 2009, at 4:55 AM, John Shea wrote: Brian Marick has a good chapter on testing in his "RubyCocoa, bringing some love. " using standard ruby testing methodologies. You can get this as a pdf book (its not out in print yet) Thanks. Note, though, that I don't t

Re: [MacRuby-devel] Out parameters with MacRuby

2009-04-27 Thread Brian Marick
tra return values is not included in MacRuby? ----- Brian Marick, independent consultant Mostly on agile methods with a testing slant www.exampler.com, www.exampler.com/blog, www.twitter.com/marick ___ MacRuby-devel mailing list [email protected]

Re: [MacRuby-devel] experimental branch: status update

2009-05-07 Thread Brian Marick
ee/master ----- Brian Marick, independent consultant Mostly on agile methods with a testing slant www.exampler.com, www.exampler.com/blog, www.twitter.com/marick ___ MacRuby-devel mailing list [email protected] http://lists.macosforge.or

Re: [MacRuby-devel] experimental branch: status update

2009-05-07 Thread Brian Marick
ithub.com/marick/cocoa-examples-translated/tree/master I meant that I don't want to translate /Developer/Examples examples to MacRuby if someone's already doing it. - Brian Marick, independent consultant Mostly on agile methods with a testing slant www.exampler.com, ww

Re: [MacRuby-devel] testing macruby/hotcocoa apps

2009-05-12 Thread Brian Marick
e for MacRuby). <http://mwrc2009.confreaks.com/videos/13-mar-2009-17-00-test-driving-guis-with-rubycocoa-brian-marick-large.mp4 > This week, I'll be updating my tooling for MacRuby and starting to use it to reimplement the /Developer/Examples Objective-C samples. (Shameless plu

[MacRuby-devel] connect to udp socket: getaddrinfo: nodename nor servname provided, or not known (SocketError)

2009-12-11 Thread Brian Marick
es anyone have any ideas? Here's the code: http://pastie.org/739072 - 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.twitter.com/marick

[MacRuby-devel] Cannot get standalone distribution to work with 0.5 or Apr 29 nightly

2010-05-02 Thread Brian Marick
is macruby_deploy all I should need? 3. Any ideas about how to make it work? - 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.twitter.com/marick __

Re: [MacRuby-devel] Cannot get standalone distribution to work with 0.5 or Apr 29 nightly

2010-05-02 Thread Brian Marick
Xcode. On May 2, 2010, at 1:16 PM, Matt Aimonetti wrote: > Are you trying to compile an Xcode or hotcocoa project? > > - Matt > > On Sun, May 2, 2010 at 11:10 AM, Brian Marick wrote: > I'm trying to get a standalone distribution working (one with the MacRuby > fra

Re: [MacRuby-devel] Cannot get standalone distribution to work with 0.5 or Apr 29 nightly

2010-05-02 Thread Brian Marick
You are my hero. I set RUBYOPT in .MacOS/environment.plist long ago. On May 2, 2010, at 3:18 PM, Laurent Sansonetti wrote: > Hi Brian, > > Would you have by any chance a RUBYOPT environment variable set to "-r > rubygems" in the default environment? > >

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

2010-05-03 Thread Brian Marick
a test to jump to the failing code. You can't do that unless you have the full pathname. I will file a ticket if this is a real bug. - Brian Marick, independent consultant Mostly on agile methods with a testing slant Author of /Programming Cocoa with Ruby/ www.exampler.com, www.exampl

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

[MacRuby-devel] files delivered in site_ruby

2010-05-03 Thread Brian Marick
t worth fixing. But it'll cause more problems when macruby ships with OSX and people stop embedding. I'll file a ticket if needed. - Brian Marick, independent consultant Mostly on agile methods with a testing slant Author of /Programming Cocoa with Ruby/ www.exampler.c

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, sa

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

2010-05-04 Thread Brian Marick
n MacRuby are generated by walking through the > stack and sometimes some entries are missing. File/line numbering is > retrieved from DWARF metadata but sometimes it's incorrectly compiled. So, > bug reports are welcome :-) > > Laurent > > On May 3, 2010, at 1:12 PM, Bri

[MacRuby-devel] Mocking package for 0.5+?

2010-05-04 Thread Brian Marick
I've been looking for a combination of unit testing and mocking packages for macruby. (The mocking is the real problem.) If anyone does TDD with mocks: what do you use? - Brian Marick, independent consultant Mostly on agile methods with a testing slant Author of /Programming Cocoa with

Re: [MacRuby-devel] Mocking package for 0.5+?

2010-05-04 Thread Brian Marick
Thanks to James Mead, I now know that at least simple examples work with 0.6 and these gems: mocha-macruby (0.9.8.20100129120100) test-unit (2.0.7) On May 4, 2010, at 10:58 AM, Brian Marick wrote: > I've been looking for a combination of unit testing and mocking packages for > ma

Re: [MacRuby-devel] MacRuby and Shoulda

2010-05-04 Thread Brian Marick
n passed 1" do > assert_equal 1, fact(1) > end > should "return 6 when passed 3" do > assert_equal 6, fact(3) > end > end > end > > I'll keep on digging, but if anyone has any insight, I'd appreciate it! > > /\/\i

[MacRuby-devel] installing tmail

2010-05-12 Thread Brian Marick
ointer target type\ntmailscanner.c: In function 'atomsym':\ntmailscanner.c:430: warning: initialization discards qualifiers from pointer target type\nlipo: can't open input file: /var/tmp//ccheFt8w.out (No such file or directory)\nmake: *** [tmailscanner.o] Error 1\n"]

Re: [MacRuby-devel] installing tmail

2010-05-12 Thread Brian Marick
Sorry - I posted that too fast. Ignore it. I'll do more digging. - 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.twitter.com/m

[MacRuby-devel] HAVE_RUBY_VM_H and nkf.bundle (was: installing tmail)

2010-05-12 Thread Brian Marick
say "compiling against MacRuby?") = Hacking around that gets tmailscanner.c to compile, but tmail also requires 'nkf.bundle', which exists in 1.8 but not in MacRuby. I might try to compile the version out of 1.9, but this pile of yak hair is getting pretty deep

Re: [MacRuby-devel] HAVE_RUBY_VM_H and nkf.bundle (was: installing tmail)

2010-05-12 Thread Brian Marick
nkf.o -L. -L/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib -arch i386 -arch x86_64 -lmacruby It's been 15-some years since I last used a C compiler in anger, so I'm out of my depth. ----- Brian Marick, independent consultant Mostly on agile methods with a tes

Re: [MacRuby-devel] HAVE_RUBY_VM_H and nkf.bundle (was: installing tmail)

2010-05-12 Thread Brian Marick
make it into 0.6. Is it a priority for 0.7? - 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.twitter.com/marick ___ MacRuby-devel