rsl/stringex — pull request #150 by kapitan-petko (2014-01-31 03:01:59+00:00)
Title: New setting used with limit to prevent words from being truncated.

Added a new setting called ‘truncate_words’ which will prevent words from being chopped, if the ‘limit’ setting had been set.

Example:

"title with many whole words" with {limit: 19, :truncate_words => false} will produce 'title-with-many' instead of 'title-with-many-wor'