puppetlabs/puppet — pull request #735 by daniel-pittman (2012-05-02 23:23:54+00:00)
Title: Bug/2.7.x/14288 gem provider fails on bad input

Previously, when the output of the gem command contained a line that didn't
match it was returned as `nil` - but the rest of the provider didn't handle
that value at all!

That led to any mismatch causing various failures to dereference `nil` as a
hash, and general failure.

This fixes this to behave significantly better by just omitting that entry in
the result, returning only the expected content.

Signed-off-by: Daniel Pittman