rb: raise if an object is serialized without required fields [THRIFT-143]


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@712945 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/benchmark/gen-rb/BenchmarkService.rb b/lib/rb/benchmark/gen-rb/BenchmarkService.rb
index 7d39882..2c3ae4f 100644
--- a/lib/rb/benchmark/gen-rb/BenchmarkService.rb
+++ b/lib/rb/benchmark/gen-rb/BenchmarkService.rb
@@ -52,6 +52,9 @@
           FIELDS = {
             N => {:type => Thrift::Types::BYTE, :name => 'n'}
           }
+          def validate
+          end
+
         end
 
         class Fibonacci_result
@@ -62,6 +65,9 @@
           FIELDS = {
             SUCCESS => {:type => Thrift::Types::I32, :name => 'success'}
           }
+          def validate
+          end
+
         end
 
       end