r1268@dev030 (orig r62344): cpiro | 2007-10-03 18:54:11 -0700
commit398feba8655067523195f9231cca6fb947957866
author(no author) <(no author)@41a61cd8-c433-0410-bb1c-e256eeef9e11>
Thu, 4 Oct 2007 01:38:38 +0000 (4 01:38 +0000)
committer(no author) <(no author)@41a61cd8-c433-0410-bb1c-e256eeef9e11>
Thu, 4 Oct 2007 01:38:38 +0000 (4 01:38 +0000)
treebdf95efc989c54f684e5884105eb5cbaec886372
parenta853ce4dc48d9df5de2946c17f544ed012c095f9
 r1268@dev030 (orig r62344):  cpiro | 2007-10-03 18:54:11 -0700
 [thrift] don't scope non-service types in Ruby

 Summary: non-service types live in the top-level namespace, so look for them there. example from FacebookService.rb (accessing Service from reflection_limited_types.rb):

               FIELDS = {
          -      0 => {:type => TType::STRUCT, :name => 'success', :class => reflection_limited_types.Service}
          +      0 => {:type => TType::STRUCT, :name => 'success', :class => Service}
               }

          preferable to adding a "module honk_types ... end" around honk_types.rb ... non-service types should land in top-level space (or whatever ruby_namespace has been defined).  if ruby_namespace even works ... who knows

 Reviewed By: mcslee

 Test Plan: now reflection_limited works with my simple Ruby client

            honestly, there's no test suite for these?  TODO:cpiro

 Revert: OK

 TracCamp Project: Thrift

 DiffCamp Revision: 735

git-svn-id: http://svn.facebook.com/svnroot/thrift/trunk@619 41a61cd8-c433-0410-bb1c-e256eeef9e11
compiler/cpp/src/generate/t_rb_generator.cc