mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
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:
parent
a058d02eda
commit
3836f9ba35
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user