From: Eric Hodel Date: 2007-01-22T18:20:20+09:00 Subject: Re: Ruby extension tutorial On Jan 21, 2007, at 16:10, Wim Vander Schelden wrote: > Wim Vander Schelden schreef: >> I just finished a tutorial about writing simple ruby extensions. >> I was hoping you guys could give me some feedback on what you >> think about it. >> >> If you find any mistakes (code, spelling, grammar and >> explanation), I would also appreciate it if you told me about them? > > http://nanoblog.ath.cx/index.rb?module=readmore&id=8 > exit unless have_header("stdio.h") I'd change this to: abort 'need stdio.h' unless have_header("stdio.h") but other than that, thank you, thank you, thank you for using an example that doesn't proceed to write a Makefile when the right thingies aren't found. I think about half the C extensions I've installed puke somewhere after attempting to build rather than puking cleanly in extconf.rb. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net I LIT YOUR GEM ON FIRE!