Powered By BlogNow - Get Your Free Blog

I have moved!

My new blog is at lindsaar.net

All the old content will stay here though. But check out the new blog

¿ 14/8/2007 - Rails on OpenBSD include file won't include

Ok... this is a stupid one.

In my code, i use the RFC822 email module which defines a constant RFC822 which is a regexp that matches pretty much any email... at least... it matches what RFC822 is meant to match, so, good enough.

However, I named this file RFC822.rb in my /lib directory.

Why?  Looks correct.

Works fine... at least on my mac.

Once I deployed to my OpenBSD box, none of the classes that used RFC822 worked!

The problem is that the mac is case insensitive! So the include command went looking for rfc822.rb (as well files are lower case) and MacOSX served up RFC822.rb as the perfect match.

OpenBSD is a bit more picky in it's file match making and decided that RFC822.rb could go find it's own match as far as it was concerned and so the include failed .

Gotcha #4

blogLater

Mikel
Post A Comment! :: Send to a Friend!

About Me

AKA Raasdnil, this site is about web coding, hosting and all other matters that relate to this... especially Ruby on Rails!

Links