seattlerb/vlad — pull request #47 by shunwen (2013-05-05 06:37:46+00:00)
Title: rake -T missing some vlad tasks because the "String.cleanup" returns nil.

Hi, I am not sure if it's a bug or it is the behavior you want.

When listing tasks with `rake -T`, it displays only the tasks with descriptions.
And some vlad tasks' description disappear after calling `cleanup` therefore they are not displayed by `rake -T` (but they are displayed by `rake -P` which lists every task with or without comments).

This patch modifies the Vlad-defined-method `String.cleanup`, make it replace `(\n|\s)+` with `' '` and match the first sentence ended with period or the entire string if there's no period. With this modification `rake -T` will list the `upload` and `update_symlinks` tasks which are missing before.