THRIFT-603. rb: Struct read method does not call validate
After reading a struct, we will now call the struct's validate method.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@825369 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/ext/struct.c b/lib/rb/ext/struct.c
index 31c62d5..7429fb1 100644
--- a/lib/rb/ext/struct.c
+++ b/lib/rb/ext/struct.c
@@ -591,6 +591,9 @@
   // read struct end
   mt->read_struct_end(protocol);
 
+  // call validate
+  rb_funcall(self, validate_method_id, 0);
+
   return Qnil;
 }