puppetlabs/puppetlabs-stdlib — pull request #103 by wcooley (2012-11-07 08:30:17+00:00)
Title: Function str2bool should be more liberal with the truth

Add feature #14908 - `str2bool`: true is not false

Rather than being strict about what is considered 'true', 'true' is
instead changed to be anything to that is not a false value.

Currently a call to `str2bool` can have one of three outcomes: evaluate to true,
evaluate to false or fail with a parse error. Failing with a parse error is
surprising, given that C, Ruby, Python and Perl tend to define 'true' as 'not
false'.

A more particular use-case is given in the ticket:

http://projects.puppetlabs.com/issues/14908

Previous pull request was puppetlabs/puppetlabs-stdlib#74