puppetlabs/puppetdb — pull request #295 by cprice-puppet (2012-10-01 18:49:19+00:00)
Title: Some minor additions and fixes for utils

This is one more set of changes extracted from my reporting pull
request. It includes:

* A few new utility functions that are useful for pre-conditions
* Fix to the datetime? function; it was previously returning true
for objects whose classes supported ICoerce, even if the actual
instance was not a valid datetime (`to-date-time` returning `nil`).
* Provide an additional signature for mapvals function
* New `maptrans` function
* New `validate-map` function