protobuf-ruby / beefcake

A sane Google Protocol Buffers library for Ruby
MIT License
276 stars 46 forks source link

Allow false but non-nil values to pass through to_hash #26

Closed bkerley closed 11 years ago

bkerley commented 11 years ago

This change allows the following Ruby hash to be decodable from a protobuffs message:

{'allow_mult' => false}
matttproud commented 11 years ago

@bkerley, this looks facially OK as-is. Would you be willing to write up a quick test for this since you found a regression?

bkerley commented 11 years ago

Rebased to current master, added test.

matttproud commented 11 years ago

LGTM.