From fc3cab8ea8e3d98be09b105ad049432178962403 Mon Sep 17 00:00:00 2001 From: bluehallu Date: Mon, 5 Dec 2016 16:06:11 +0000 Subject: [PATCH 1/2] Fix ruby gen command protoc-gen-grpc-ruby doesn't work in my machine and google points to this readme as the only occurance... --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f5629b1f341..c46240b9c2f 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ Make sure that your `$GOPATH/bin` is in your `$PATH`. protoc -I/usr/local/include -I. \ -I$GOPATH/src \ -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \ - --plugin=protoc-gen-grpc-ruby=grpc_ruby_plugin \ + --plugin=protoc-gen-grpc=grpc_ruby_plugin \ --grpc-ruby_out=. \ path/to/your/service.proto ``` From 5c257c233bcaaab6a141e5caeaa3622e10b0fc84 Mon Sep 17 00:00:00 2001 From: bluehallu Date: Mon, 5 Dec 2016 17:05:22 +0000 Subject: [PATCH 2/2] Mention required dependencies in Readme Importing annotations.proto will produce a dependency in the generated stubs. This requires the relevant import when using the stubs even if the annotations are not actually used at all by anything but the grpc-gateway plugin. --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c46240b9c2f..1f194c972f8 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,9 @@ Make sure that your `$GOPATH/bin` is in your `$PATH`. --grpc-ruby_out=. \ path/to/your/service.proto ``` - 2. Implement your service + 2. Add the googleapis-common-protos gem (or your language equivalent) as a dependency to your project. + 3. Implement your service + 5. Generate reverse-proxy ```sh