WardCunningham/Smallest-Federated-Wiki — pull request #248 by harlantwood (2012-06-06 19:43:06+00:00)
Title: Move slug generation into FedWiki.slug.  

We had a good discussion today on slug generation, and a scale of "permissivity". Our current slugs have a low permissivity, call it 10 out of 100.

Github's Gollum wiki has [very permissive slug generation](https://github.com/github/gollum/blob/5f5187e05cbbb66b05a40eff1c062337323da84c/lib/gollum/page.rb#L277), call it 90 out of 100.

It's easy to imagine that we could have it both ways -- as long as everything we cut out of a more permissive slug is always cut out of the less permissive slug, we can always use the less permissive conversion to compare two slugs.

See also the slug discussion in #156.

To get us started, I've moved the slug generation into a module, which exactly mirrors (or so I believe) the way slugs currently work.

To run the specs:

bundle exec rspec spec/slug_reference.rb