You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2009/03/06 00:11:37 UTC

svn commit: r750667 - /incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc

Author: bryanduxbury
Date: Thu Mar  5 23:11:37 2009
New Revision: 750667

URL: http://svn.apache.org/viewvc?rev=750667&view=rev
Log:
THRIFT-358. ruby:  Change how external thrift files' generated code is required

Generated code that relies on included thrift files now doesn't assume the path will be the same.

Modified:
    incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc

Modified: incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc?rev=750667&r1=750666&r2=750667&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc (original)
+++ incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc Thu Mar  5 23:11:37 2009
@@ -222,7 +222,7 @@
   const vector<t_program*>& includes = program_->get_includes();
   string result = "";
   for (size_t i = 0; i < includes.size(); ++i) {
-    result += "require File.dirname(__FILE__) + '/" + includes[i]->get_name() + "_types'\n";
+    result += "require '" + includes[i]->get_name() + "_types'\n";
   }
   if (includes.size() > 0) {
     result += "\n";