rb: require 'thrift' first in generated service definitions [THRIFT-38]

From kevin@rapleaf.com


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@670979 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kevin Clark 2008-06-24 01:05:51 +00:00
parent a058d02eda
commit 3836f9ba35
3 changed files with 3 additions and 3 deletions

View File

@ -581,6 +581,7 @@ void t_rb_generator::generate_service(t_service* tservice) {
f_service_ <<
rb_autogen_comment() << endl <<
"require 'thrift'" << endl <<
rb_imports() << endl;
if (tservice->get_extends() != NULL) {
@ -589,7 +590,6 @@ void t_rb_generator::generate_service(t_service* tservice) {
}
f_service_ <<
"require 'thrift'" << endl <<
"require '" << program_name_ << "_types'" << endl <<
endl;

View File

@ -4,8 +4,8 @@
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
require 'thrift/protocol'
require 'thrift'
require 'thrift/protocol'
require 'Benchmark_types'
module ThriftBenchmark

View File

@ -4,8 +4,8 @@
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
require 'thrift/protocol'
require 'thrift'
require 'thrift/protocol'
require 'ThriftSpec_types'
module SpecNamespace