middleman/middleman — pull request #601 by bhollis (2012-09-16 09:03:54+00:00)
Title: Fix previewing directories with '.' in them.

I noticed that trying to view the URL `/blog/middleman-3.0/` in my preview server gave a 404 instead of content. Digging in, I realized that `full_url` thought it was a file and not a directory, based on the '.' in the name.

I changed things around so that `full_url` tries to figure things out based on the sitemap instead, which should be more reliable. While I was doing that and tracking down test failures caused by the change, I made a few other semi-related changes:

* `source_dir` is now completely derived from the `root` and `source` settings as opposed to being an independent setting. This should help with consistency a bit and reduce confusion.
* 404s in preview server now correctly show the file path that was attempted.
* The "auto" asset helpers no longer allow you to pass in a path separator.