From c5cad535879f7187c7a365c5ee0182800e886eea Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 13 Sep 2024 15:28:08 +0200 Subject: [PATCH] Bump grpc from 1.64.0 to 1.66.0 in /http2/ruby-grpc (#114) * Bump grpc from 1.64.0 to 1.66.0 in /http2/ruby-grpc Bumps [grpc](https://github.com/google/grpc) from 1.64.0 to 1.66.0. - [Release notes](https://github.com/google/grpc/releases) - [Changelog](https://github.com/grpc/grpc/blob/master/doc/grpc_release_schedule.md) - [Commits](https://github.com/google/grpc/compare/v1.64.0...v1.66.0) --- updated-dependencies: - dependency-name: grpc dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * Regenerate code with protobuf v4.27 --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Clemens Hoffmann --- http2/ruby-grpc/Gemfile.lock | 14 +++++++++----- http2/ruby-grpc/README.md | 2 +- http2/ruby-grpc/example_pb.rb | 15 ++++++--------- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/http2/ruby-grpc/Gemfile.lock b/http2/ruby-grpc/Gemfile.lock index 1c421e4..a0af8d6 100644 --- a/http2/ruby-grpc/Gemfile.lock +++ b/http2/ruby-grpc/Gemfile.lock @@ -1,13 +1,17 @@ GEM remote: https://rubygems.org/ specs: - google-protobuf (3.25.3) - googleapis-common-protos-types (1.14.0) - google-protobuf (~> 3.18) - grpc (1.64.0) - google-protobuf (~> 3.25) + bigdecimal (3.1.8) + google-protobuf (4.27.3) + bigdecimal + rake (>= 13) + googleapis-common-protos-types (1.15.0) + google-protobuf (>= 3.18, < 5.a) + grpc (1.66.0) + google-protobuf (>= 3.25, < 5.0) googleapis-common-protos-types (~> 1.0) grpc-tools (1.66.0) + rake (13.2.1) PLATFORMS ruby diff --git a/http2/ruby-grpc/README.md b/http2/ruby-grpc/README.md index 41098b7..79832fb 100644 --- a/http2/ruby-grpc/README.md +++ b/http2/ruby-grpc/README.md @@ -27,7 +27,7 @@ grpcurl -proto example.proto ruby-grpc-test.my.cf.app.domain:443 Example.Run 2. `PORT=8080 bundle exec ruby server.rb` 3. `grpcurl -proto example.proto -plaintext localhost:8080 Example.Run` -### Renerating code +### Regenerating code ```shell bundle install --path vendor/bundle diff --git a/http2/ruby-grpc/example_pb.rb b/http2/ruby-grpc/example_pb.rb index ac5d2b9..270d5c1 100644 --- a/http2/ruby-grpc/example_pb.rb +++ b/http2/ruby-grpc/example_pb.rb @@ -1,17 +1,14 @@ +# frozen_string_literal: true # Generated by the protocol buffer compiler. DO NOT EDIT! # source: example.proto require 'google/protobuf' -Google::Protobuf::DescriptorPool.generated_pool.build do - add_file("example.proto", :syntax => :proto3) do - add_message "Request" do - end - add_message "Response" do - optional :message, :string, 1 - end - end -end + +descriptor_data = "\n\rexample.proto\"\t\n\x07Request\"\x1b\n\x08Response\x12\x0f\n\x07message\x18\x01 \x01(\t2\'\n\x07\x45xample\x12\x1c\n\x03Run\x12\x08.Request\x1a\t.Response\"\x00\x62\x06proto3" + +pool = Google::Protobuf::DescriptorPool.generated_pool +pool.add_serialized_file(descriptor_data) Request = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Request").msgclass Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Response").msgclass