Ruby uses protobuf 4.x

pull/36215/head
Esun Kim 8 months ago
parent f45b9a8f3d
commit 4e20171677
  1. 2
      grpc.gemspec
  2. 2
      templates/grpc.gemspec.template
  3. 3
      tools/buildgen/plugins/expand_version.py

2
grpc.gemspec generated

@ -30,7 +30,7 @@ Gem::Specification.new do |s|
s.require_paths = %w( src/ruby/lib src/ruby/bin src/ruby/pb )
s.platform = Gem::Platform::RUBY
s.add_dependency 'google-protobuf', '~> 3.26'
s.add_dependency 'google-protobuf', '~> 4.26'
s.add_dependency 'googleapis-common-protos-types', '~> 1.0'
s.add_development_dependency 'bundler', '>= 1.9'

@ -32,7 +32,7 @@
s.require_paths = %w( src/ruby/lib src/ruby/bin src/ruby/pb )
s.platform = Gem::Platform::RUBY
s.add_dependency 'google-protobuf', '~> ${settings.protobuf_major_minor_version}'
s.add_dependency 'google-protobuf', '~> 4.${settings.protobuf_version.split(".")[1]}'
s.add_dependency 'googleapis-common-protos-types', '~> 1.0'
s.add_development_dependency 'bundler', '>= 1.9'

@ -134,6 +134,3 @@ def mako_plugin(dictionary):
settings[version_tag] = Version(
version_str, override_major=override_major
)
settings["protobuf_major_minor_version"] = ".".join(
settings["protobuf_version"].split(".")[:2]
)

Loading…
Cancel
Save