Fixing ruby versionning.
@ -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'
@ -29,5 +29,5 @@
# GRPC contains the General RPC module.
module GRPC
VERSION = '0.13.0-pre1'
VERSION = '0.13.0.pre1'
end
@ -33,7 +33,7 @@
@ -31,5 +31,5 @@
VERSION = '${settings.ruby_version}'
VERSION = '${settings.ruby_version.ruby()}'
@ -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