THRIFT-1204: Ruby autogenerated files should require 'thrift' gem
authorIlya Maykov <ilyam@apache.org>
Wed, 29 Feb 2012 02:40:28 +0000 (02:40 +0000)
committerIlya Maykov <ilyam@apache.org>
Wed, 29 Feb 2012 02:40:28 +0000 (02:40 +0000)
commitc00011a7522a84f17e5d53ad1db7a9128c41c1e4
treec1b054dfd9bf8e36d2eb34a0096b55dd649939b8
parentf85ad517656fda3f1dad04dab50771614e4df95a
THRIFT-1204: Ruby autogenerated files should require 'thrift' gem
Library: Ruby
Patch: Ilya Maykov
This patch does 2 things:
1) Adds a "require 'thrift'" line to the *_types.rb and *_constants.rb files,
   to be consistent with *_service.rb which was generating the thrift require
   already.
2) Adds a "rubygems" option to the --gen rb compiler target. When this option
   is specified, the compiler will add a "require 'rubygems'" line to the top
   of each gen-rb file. Defaults to false.

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1294949 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_rb_generator.cc