diff options
author | temiola <temiola@google.com> | 2015-01-06 17:50:59 -0800 |
---|---|---|
committer | Nicolas Noble <nnoble@google.com> | 2015-01-06 18:17:10 -0800 |
commit | 54535552559beae3465a92b2f5ed53e9636d45aa (patch) | |
tree | 4fe709bc00642e16160124c87375d5cfc814609e /src/compiler/ruby_generator.cc | |
parent | ddef24620a67fa352d94415dc56121c01e3d8af8 (diff) |
bugfix: ruby code-gen capitalization
Change on 2015/01/06 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83391912
Diffstat (limited to 'src/compiler/ruby_generator.cc')
-rw-r--r-- | src/compiler/ruby_generator.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/compiler/ruby_generator.cc b/src/compiler/ruby_generator.cc index 64a81526fe..e4ba387cbe 100644 --- a/src/compiler/ruby_generator.cc +++ b/src/compiler/ruby_generator.cc @@ -83,7 +83,7 @@ void PrintService(const ServiceDescriptor* service, const string& package, // Begin the service module map<string, string> module_vars = ListToDict({ - "module.name", CapitalizeString(service->name()), + "module.name", CapitalizeFirst(service->name()), }); out->Print(module_vars, "module $module.name$\n"); out->Indent(); @@ -131,8 +131,9 @@ string GetServices(const FileDescriptor* file) { "file.name", file->name(), "file.package", file->package(), }); + out.Print("# Generated by the protocol buffer compiler. DO NOT EDIT!\n"); out.Print(header_comment_vars, - "### Generated from $file.name$ for $file.package$\n"); + "# Source: $file.name$ for package '$file.package$'\n"); if (file->service_count() == 0) { return output; } @@ -152,7 +153,7 @@ string GetServices(const FileDescriptor* file) { vector<string> modules = Split(file->package(), '.'); for (size_t i = 0; i < modules.size(); ++i) { map<string, string> module_vars = ListToDict({ - "module.name", CapitalizeString(modules[i]), + "module.name", CapitalizeFirst(modules[i]), }); out.Print(module_vars, "module $module.name$\n"); out.Indent(); |