From: Bryan Duxbury Date: Mon, 13 Apr 2009 18:12:07 +0000 (+0000) Subject: THRIFT-451. rb: ruby structs use lowercase enum while modules are capitalized X-Git-Tag: 0.2.0~136 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=4650144f52549345efb3bb2886bd7b1805ea2a66;p=common%2Fthrift.git THRIFT-451. rb: ruby structs use lowercase enum while modules are capitalized This patch updates the full_type_name call so it capitalizes a type before it's appended to the module prefix. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@764549 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/compiler/cpp/src/generate/t_rb_generator.cc b/compiler/cpp/src/generate/t_rb_generator.cc index 6dcbb5ca..708cd42a 100644 --- a/compiler/cpp/src/generate/t_rb_generator.cc +++ b/compiler/cpp/src/generate/t_rb_generator.cc @@ -989,7 +989,7 @@ string t_rb_generator::type_name(t_type* ttype) { string prefix = ""; string name = ttype->get_name(); - if (ttype->is_struct() || ttype->is_xception()) { + if (ttype->is_struct() || ttype->is_xception() || ttype->is_enum()) { name = capitalize(ttype->get_name()); }