aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2016-05-02 14:25:49 -0700
committerGravatar murgatroid99 <mlumish@google.com>2016-05-02 14:25:49 -0700
commit6a45e9340701f3107f5d39cc5f5c0366204faa23 (patch)
tree3b12a64d8a8a616f6fa17f201e945e08bfe369a2 /src/compiler
parent3f2fad6c20125689419eca24977d15c2d3307a87 (diff)
Made ruby plugin support empty package names
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/ruby_generator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/ruby_generator.cc b/src/compiler/ruby_generator.cc
index 5ac56ad289..4ca06a4554 100644
--- a/src/compiler/ruby_generator.cc
+++ b/src/compiler/ruby_generator.cc
@@ -98,7 +98,7 @@ void PrintService(const ServiceDescriptor *service, const grpc::string &package,
out->Print("self.marshal_class_method = :encode\n");
out->Print("self.unmarshal_class_method = :decode\n");
std::map<grpc::string, grpc::string> pkg_vars =
- ListToDict({"service.name", service->name(), "pkg.name", package, });
+ ListToDict({"service_full_namename", service->full_name()});
out->Print(pkg_vars, "self.service_name = '$pkg.name$.$service.name$'\n");
out->Print("\n");
for (int i = 0; i < service->method_count(); ++i) {