diff --git a/grpc.gemspec b/grpc.gemspec index e990948edf6..fb4361b2f98 100755 --- a/grpc.gemspec +++ b/grpc.gemspec @@ -31,7 +31,7 @@ Gem::Specification.new do |s| s.require_paths = %w( src/ruby/bin src/ruby/lib src/ruby/pb ) s.platform = Gem::Platform::RUBY - s.add_dependency 'google-protobuf', '~> 3.0.0alpha.1.1' + s.add_dependency 'google-protobuf', '~> 3.0.0.alpha.5.0' s.add_dependency 'googleauth', '~> 0.5.1' s.add_development_dependency 'bundler', '~> 1.9' diff --git a/src/ruby/lib/grpc/version.rb b/src/ruby/lib/grpc/version.rb index e98073c0573..d7aa18be3e2 100644 --- a/src/ruby/lib/grpc/version.rb +++ b/src/ruby/lib/grpc/version.rb @@ -29,5 +29,5 @@ # GRPC contains the General RPC module. module GRPC - VERSION = '0.13.0-pre1' + VERSION = '0.13.0.pre1' end diff --git a/templates/grpc.gemspec.template b/templates/grpc.gemspec.template index c4987a6725f..20408613a8d 100644 --- a/templates/grpc.gemspec.template +++ b/templates/grpc.gemspec.template @@ -33,7 +33,7 @@ s.require_paths = %w( src/ruby/bin src/ruby/lib src/ruby/pb ) s.platform = Gem::Platform::RUBY - s.add_dependency 'google-protobuf', '~> 3.0.0alpha.1.1' + s.add_dependency 'google-protobuf', '~> 3.0.0.alpha.5.0' s.add_dependency 'googleauth', '~> 0.5.1' s.add_development_dependency 'bundler', '~> 1.9' diff --git a/templates/src/ruby/lib/grpc/version.rb.template b/templates/src/ruby/lib/grpc/version.rb.template index a47d2d85489..6488614aed9 100644 --- a/templates/src/ruby/lib/grpc/version.rb.template +++ b/templates/src/ruby/lib/grpc/version.rb.template @@ -31,5 +31,5 @@ # GRPC contains the General RPC module. module GRPC - VERSION = '${settings.ruby_version}' + VERSION = '${settings.ruby_version.ruby()}' end diff --git a/tools/buildgen/plugins/expand_version.py b/tools/buildgen/plugins/expand_version.py index 4600c3224eb..a103618c01a 100755 --- a/tools/buildgen/plugins/expand_version.py +++ b/tools/buildgen/plugins/expand_version.py @@ -76,6 +76,10 @@ class Version: raise Exception('Don\'t know how to translate version tag "%s" to pep440' % self.tag) return s + def ruby(self): + """Version string in Ruby style""" + return '%d.%d.%d.%s' % (self.major, self.minor, self.patch, self.tag) + def mako_plugin(dictionary): """Expand version numbers: - for each language, ensure there's a language_version tag in