rkh/Smallest-Federated-Wiki — comment on commit 897d46c0dd563b9aa9b3c0961935db184891e376
File:  line 0
By rkh:

> I am told that the wordy ruby convention for constructing path names avoids trouble on microsoft platforms. Are we putting ourselves at risk there?

The `expand_path` above works on both Unix and Ruby systems on all currently maintained Ruby versions. Ruby knows to threat the slash as a separator, even on Windows, otherwise common lines like `require "sinatra/base"` would not work there. However, this is more of a cosmetic change, whereas the second change should bring (though probably irrelevant small) performance.

The `map` feature is used in Rack to allow more than one endpoint (say serving a wiki from the same process as a Rails application). However, when using with the root prefix and no other endpoint, all it does is check for every request if the path is nested under the root path, which is always true, and hands it on to the controller.

Someone who want to serve more than one application from the same process is likely to write a separate `config.ru` file.