|
|
@ -507,11 +507,13 @@ bool GenerateFile(const FileDescriptor* file, io::Printer* printer, |
|
|
|
"\n", |
|
|
|
"\n", |
|
|
|
"filename", file->name()); |
|
|
|
"filename", file->name()); |
|
|
|
|
|
|
|
|
|
|
|
printer->Print( |
|
|
|
printer->Print("require 'google/protobuf'\n\n"); |
|
|
|
"require 'google/protobuf'\n\n"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < file->dependency_count(); i++) { |
|
|
|
if (file->dependency_count() != 0) { |
|
|
|
printer->Print("require '$name$'\n", "name", GetRequireName(file->dependency(i)->name())); |
|
|
|
for (int i = 0; i < file->dependency_count(); i++) { |
|
|
|
|
|
|
|
printer->Print("require '$name$'\n", "name", GetRequireName(file->dependency(i)->name())); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
printer->Print("\n"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// TODO: Remove this when ruby supports extensions for proto2 syntax.
|
|
|
|
// TODO: Remove this when ruby supports extensions for proto2 syntax.
|
|
|
|