THRIFT-1331. rb: Ruby library deserializes an empty map to nil
authorBryan Duxbury <bryanduxbury@apache.org>
Tue, 20 Sep 2011 18:45:56 +0000 (18:45 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Tue, 20 Sep 2011 18:45:56 +0000 (18:45 +0000)
commite80a194c473e94f90b30919da29cbe9b4542e244
tree16f539b1ba856b1b9f3a9b92687c1fadf4d737b4
parent7e3b866a3558411e99986144061339c21f6125c0
THRIFT-1331. rb: Ruby library deserializes an empty map to nil

This patch properly detects when the metadata is omitted in Compact Protocol messages.

Patch: Armaan Sarkar

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1173300 13f79535-47bb-0310-9956-ffa450edef68
lib/rb/ext/struct.c
lib/rb/lib/thrift/struct_union.rb
lib/rb/spec/compact_protocol_spec.rb
test/DebugProtoTest.thrift