aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler
diff options
context:
space:
mode:
authorGravatar Ken Payson <kpayson@google.com>2016-07-26 17:15:08 -0700
committerGravatar Ken Payson <kpayson@google.com>2016-07-26 18:36:42 -0700
commit5a2c91806f49cc10362284c8f0d86771791a9692 (patch)
tree2e3c4dad8a2807a0af1bd658abe89fb240813312 /src/compiler
parent66ebd088184db43bb97203823e816be67d46c6e5 (diff)
Updated ruby protos to use new _pb filename
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/ruby_generator_helpers-inl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/ruby_generator_helpers-inl.h b/src/compiler/ruby_generator_helpers-inl.h
index ff6939ed9f..aa3c22fea6 100644
--- a/src/compiler/ruby_generator_helpers-inl.h
+++ b/src/compiler/ruby_generator_helpers-inl.h
@@ -48,7 +48,7 @@ inline bool ServicesFilename(const grpc::protobuf::FileDescriptor *file,
file->name().find_last_of(".proto") == file->name().size() - 1) {
*file_name_or_error =
file->name().substr(0, file->name().size() - proto_suffix_length) +
- "_services.rb";
+ "_services_pb.rb";
return true;
} else {
*file_name_or_error = "Invalid proto file name: must end with .proto";
@@ -58,7 +58,7 @@ inline bool ServicesFilename(const grpc::protobuf::FileDescriptor *file,
inline grpc::string MessagesRequireName(
const grpc::protobuf::FileDescriptor *file) {
- return Replace(file->name(), ".proto", "");
+ return Replace(file->name(), ".proto", "_pb");
}
// Get leading or trailing comments in a string. Comment lines start with "# ".