Hello Guys,

Doing some svn up and some looking at the code in the repo, found that
MERB_ROOT and the replacement Merb.root constant based heavily on
Dir.pwd (on trunk:
http://merb.devjavu.com/browser/trunk/lib/merb.rb#L89)

Dir.pwd present a problem when you try to run something "outside" the
root of your app, let say inside app directory it will wrongly assing
MERB_ROOT to Dir.pwd and will not be able to locate any of the other
files that depend on it.

Also found other issues when running specs with it, but don't have the
code handy right now (on linux, code is on windows office).

Shouldn't we use instead File.expand_path(File.join(__FILE__, '..'))

Yeah, a bit of dark to the code clarity, but it works.

I'll submit a proper patch later.

Regards,

-- 
Luis Lavena
Multimedia systems
-
A common mistake that people make when trying to design
something completely foolproof is to underestimate
the ingenuity of complete fools.
Douglas Adams
_______________________________________________
Merb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/merb-devel

Reply via email to