Fixing ruby versionning.

pull/5150/head
Nicolas "Pixel" Noble 9 years ago
parent 490f771fc0
commit f9e3c23fe8
  1. 2
      grpc.gemspec
  2. 2
      src/ruby/lib/grpc/version.rb
  3. 2
      templates/grpc.gemspec.template
  4. 2
      templates/src/ruby/lib/grpc/version.rb.template
  5. 4
      tools/buildgen/plugins/expand_version.py

@ -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 @@
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'

@ -31,5 +31,5 @@
# GRPC contains the General RPC module.
module GRPC
VERSION = '${settings.ruby_version}'
VERSION = '${settings.ruby_version.ruby()}'
end

@ -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

Loading…
Cancel
Save