To generate the Go code for the proto file, you need to install the Protobuf compiler (protoc), and install the Go protobuf and grpc protoc plugins, and then run protoc --go_out=. --go-grpc_out=. --proto_path ../proto ../proto/area_calculator.proto.
- Create your proto file
pact-plugin-cli -y install https://github.com/pactflow/pact-protobuf-plugin/releases/latest
protoc --go_out=. --go-grpc_out=. --proto_path ../proto ../proto/area_calculator.proto
protoc --ruby_out=../lib --grpc_out=../lib ../proto/area_calculator.proto
protoc --ruby_out=./lib --grpc_out=./lib ../proto/area_calculator.proto
- grpc_tools_ruby_protoc -I ../../protos --ruby_out=../lib --grpc_out=../lib ../../protos/route_guide.proto
https://grpc.io/docs/languages/ruby/quickstart/#grpc-tools
gem install grpc
gem install grpc-tools
git clone -b v1.50.0 --depth 1 --shallow-submodules https://github.com/grpc/grpc
rvm use 2.7.6
bundle install
- terminal 1
ruby greeter_server.rb
- terminal 2
ruby greeter_client.rb
grpc_tools_ruby_protoc -I ../protos --ruby_out=lib --grpc_out=lib ../protos/helloworld.proto
grpc_tools_ruby_protoc -I ./proto --ruby_out=area_calc_server --grpc_out=area_calc_server ./proto/area_calculator.proto
https://rubygems.org/gems/nokogiri/versions Nokigiri support the following
1.14.3 - April 11, 2023 java (9.56 MB) 1.14.3 - April 11, 2023 x86_64-linux (3.94 MB) 1.14.3 - April 11, 2023 (4.43 MB) 1.14.3 - April 11, 2023 x86-linux (4.13 MB) 1.14.3 - April 11, 2023 x86-mingw32 (5.88 MB) 1.14.3 - April 11, 2023 x86_64-darwin (6.53 MB) 1.14.3 - April 11, 2023 aarch64-linux (3.84 MB) 1.14.3 - April 11, 2023 arm64-darwin (6.35 MB) 1.14.3 - April 11, 2023 x64-mingw32 (3.19 MB) 1.14.3 - April 11, 2023 x64-mingw-ucrt (3.19 MB) 1.14.3 - April 11, 2023 arm-linux (3.3 MB)
x86_64-linux x86_64-darwin aarch64-linux arm64-darwin
good reads