blob: bda0352c26f466ac8c741022874456e2aaa5a010 [file] [log] [blame]
Tim Emiola33061392015-01-29 16:19:25 -08001# -*- ruby -*-
nnoble097ef9b2014-12-01 17:06:10 -08002# encoding: utf-8
Tim Emiolae2860c52015-01-16 02:58:41 -08003$LOAD_PATH.push File.expand_path('../lib', __FILE__)
nnoble097ef9b2014-12-01 17:06:10 -08004require 'grpc/version'
5
6Gem::Specification.new do |s|
Tim Emiolae2860c52015-01-16 02:58:41 -08007 s.name = 'grpc'
Tim Emiolac33efe42015-02-19 09:39:49 -08008 s.version = GRPC::VERSION
Tim Emiola5d11c1a2015-01-22 18:39:34 -08009 s.authors = ['gRPC Authors']
Tim Emiolac33efe42015-02-19 09:39:49 -080010 s.email = 'temiola@google.com'
Tim Emiola5d11c1a2015-01-22 18:39:34 -080011 s.homepage = 'https://github.com/google/grpc/tree/master/src/ruby'
Tim Emiolac33efe42015-02-19 09:39:49 -080012 s.summary = 'GRPC system in Ruby'
13 s.description = 'Send RPCs from Ruby using GRPC'
Tim Emiolac4a42882015-02-25 16:45:19 -080014 s.license = 'BSD-3-Clause'
nnoble097ef9b2014-12-01 17:06:10 -080015
Tim Emiola154db732015-04-17 19:40:01 -070016 s.required_ruby_version = '>= 2.0.0'
Tim Emiola8092af82015-07-15 09:15:55 -070017 s.requirements << 'libgrpc ~> 0.10.0 needs to be installed'
Tim Emiola154db732015-04-17 19:40:01 -070018
Tim Emiola17b16592015-08-11 11:32:46 -070019 s.files = %w( Rakefile )
20 s.files += Dir.glob('lib/**/*')
21 s.files += Dir.glob('ext/**/*')
22 s.files += Dir.glob('bin/**/*')
23 s.test_files = Dir.glob('spec/**/*')
24 %w(math noproto).each do |b|
Tim Emiola9fbfb5b2015-08-12 12:00:37 -070025 s.executables += ["#{b}_client.rb", "#{b}_server.rb"]
Tim Emiolae2860c52015-01-16 02:58:41 -080026 end
Tim Emiolaf4ee9612015-08-14 18:47:16 -070027 s.executables += %w(grpc_ruby_interop_client grpc_ruby_interop_server)
Tim Emiola975d0cb2015-08-14 10:44:17 -070028 s.require_paths = %w( bin lib pb )
nnoble097ef9b2014-12-01 17:06:10 -080029 s.platform = Gem::Platform::RUBY
30
Tim Emiola6c57f6b2015-01-16 13:49:40 -080031 s.add_dependency 'google-protobuf', '~> 3.0.0alpha.1.1'
Tim Emiola041e0392015-04-15 18:45:57 -070032 s.add_dependency 'googleauth', '~> 0.4' # reqd for interop tests
Tim Emiola119decc2015-04-24 07:25:16 -070033 s.add_dependency 'logging', '~> 2.0'
Tim Emiolae2860c52015-01-16 02:58:41 -080034 s.add_dependency 'minitest', '~> 5.4' # reqd for interop tests
nnoble097ef9b2014-12-01 17:06:10 -080035
Tim Emiolac85c1ae2015-04-17 18:12:32 -070036 s.add_development_dependency 'simplecov', '~> 0.9'
Tim Emiola041e0392015-04-15 18:45:57 -070037 s.add_development_dependency 'bundler', '~> 1.9'
38 s.add_development_dependency 'rake', '~> 10.4'
39 s.add_development_dependency 'rake-compiler', '~> 0.9'
Tim Emiola041e0392015-04-15 18:45:57 -070040 s.add_development_dependency 'rspec', '~> 3.2'
Tim Emiolaf2fb07d2015-05-06 10:22:35 -070041 s.add_development_dependency 'rubocop', '~> 0.30.0'
nnoble097ef9b2014-12-01 17:06:10 -080042
Tim Emiolae2860c52015-01-16 02:58:41 -080043 s.extensions = %w(ext/grpc/extconf.rb)
nnoble097ef9b2014-12-01 17:06:10 -080044end