puppetlabs/Razor — pull request #494 by mhanco (2013-06-27 13:56:22+00:00)
Title: Bug/master/data api filters fail on array and fixnum

* Fix filtered queries against Array and Fixnum values in the object_hash.

* Unmuddle the contract between Slice#get_object and Data#check_filter_vs_hash. For booleans, get_object was converting the filter strings 'true' and 'false', but did nothing about other types. Let check_filter_vs_hash do the type handling, it knows what the types should be from the object hash and needs to check for Array types anyway.

* Ensure filtered queries against Strings and booleans work as before.

* Ensure .../active_model?number=a fails when the object value is 0.

*Assumptions on searched values*
* Array values like hw_id and tags are always Strings.
* Numbers are always Fixnums

Mike