middleman/middleman — pull request #545 by bhollis (2012-07-19 08:22:29+00:00)
Title: Reduce work converting paths from relative to absolute and back again

In starting to profile, I noticed that we were making a ton of calls to Pathname#+ and Pathname#relative_path_from. Looking at the code, it seemed a shame that we were taking relative paths, making them absolute, then making them relative again (often multiple times). I reorganized the code so they stay relative. All tests pass.

I am sorta sad about having to do the `Dir.chdir` in `reload_path`, but one big downside of relative paths is that Pathname works relative to the current directory, so I needed to switch directories in there mainly to get the tests working.

I also killed a stray request to the old `__middleman__` URL... I thought that had been removed before.