Tim Emiola | 3306139 | 2015-01-29 16:19:25 -0800 | [diff] [blame] | 1 | # -*- ruby -*- |
nnoble | 097ef9b | 2014-12-01 17:06:10 -0800 | [diff] [blame] | 2 | # encoding: utf-8 |
Tim Emiola | e2860c5 | 2015-01-16 02:58:41 -0800 | [diff] [blame] | 3 | $LOAD_PATH.push File.expand_path('../lib', __FILE__) |
nnoble | 097ef9b | 2014-12-01 17:06:10 -0800 | [diff] [blame] | 4 | require 'grpc/version' |
| 5 | |
| 6 | Gem::Specification.new do |s| |
Tim Emiola | e2860c5 | 2015-01-16 02:58:41 -0800 | [diff] [blame] | 7 | s.name = 'grpc' |
Tim Emiola | c33efe4 | 2015-02-19 09:39:49 -0800 | [diff] [blame] | 8 | s.version = GRPC::VERSION |
Tim Emiola | 5d11c1a | 2015-01-22 18:39:34 -0800 | [diff] [blame] | 9 | s.authors = ['gRPC Authors'] |
Tim Emiola | c33efe4 | 2015-02-19 09:39:49 -0800 | [diff] [blame] | 10 | s.email = 'temiola@google.com' |
Tim Emiola | 5d11c1a | 2015-01-22 18:39:34 -0800 | [diff] [blame] | 11 | s.homepage = 'https://github.com/google/grpc/tree/master/src/ruby' |
Tim Emiola | c33efe4 | 2015-02-19 09:39:49 -0800 | [diff] [blame] | 12 | s.summary = 'GRPC system in Ruby' |
| 13 | s.description = 'Send RPCs from Ruby using GRPC' |
Tim Emiola | c4a4288 | 2015-02-25 16:45:19 -0800 | [diff] [blame] | 14 | s.license = 'BSD-3-Clause' |
nnoble | 097ef9b | 2014-12-01 17:06:10 -0800 | [diff] [blame] | 15 | |
Tim Emiola | 154db73 | 2015-04-17 19:40:01 -0700 | [diff] [blame] | 16 | s.required_ruby_version = '>= 2.0.0' |
Tim Emiola | 8092af8 | 2015-07-15 09:15:55 -0700 | [diff] [blame] | 17 | s.requirements << 'libgrpc ~> 0.10.0 needs to be installed' |
Tim Emiola | 154db73 | 2015-04-17 19:40:01 -0700 | [diff] [blame] | 18 | |
Tim Emiola | 17b1659 | 2015-08-11 11:32:46 -0700 | [diff] [blame] | 19 | 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 Emiola | 9fbfb5b | 2015-08-12 12:00:37 -0700 | [diff] [blame] | 25 | s.executables += ["#{b}_client.rb", "#{b}_server.rb"] |
Tim Emiola | e2860c5 | 2015-01-16 02:58:41 -0800 | [diff] [blame] | 26 | end |
Tim Emiola | f4ee961 | 2015-08-14 18:47:16 -0700 | [diff] [blame^] | 27 | s.executables += %w(grpc_ruby_interop_client grpc_ruby_interop_server) |
Tim Emiola | 975d0cb | 2015-08-14 10:44:17 -0700 | [diff] [blame] | 28 | s.require_paths = %w( bin lib pb ) |
nnoble | 097ef9b | 2014-12-01 17:06:10 -0800 | [diff] [blame] | 29 | s.platform = Gem::Platform::RUBY |
| 30 | |
Tim Emiola | 6c57f6b | 2015-01-16 13:49:40 -0800 | [diff] [blame] | 31 | s.add_dependency 'google-protobuf', '~> 3.0.0alpha.1.1' |
Tim Emiola | 041e039 | 2015-04-15 18:45:57 -0700 | [diff] [blame] | 32 | s.add_dependency 'googleauth', '~> 0.4' # reqd for interop tests |
Tim Emiola | 119decc | 2015-04-24 07:25:16 -0700 | [diff] [blame] | 33 | s.add_dependency 'logging', '~> 2.0' |
Tim Emiola | e2860c5 | 2015-01-16 02:58:41 -0800 | [diff] [blame] | 34 | s.add_dependency 'minitest', '~> 5.4' # reqd for interop tests |
nnoble | 097ef9b | 2014-12-01 17:06:10 -0800 | [diff] [blame] | 35 | |
Tim Emiola | c85c1ae | 2015-04-17 18:12:32 -0700 | [diff] [blame] | 36 | s.add_development_dependency 'simplecov', '~> 0.9' |
Tim Emiola | 041e039 | 2015-04-15 18:45:57 -0700 | [diff] [blame] | 37 | 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 Emiola | 041e039 | 2015-04-15 18:45:57 -0700 | [diff] [blame] | 40 | s.add_development_dependency 'rspec', '~> 3.2' |
Tim Emiola | f2fb07d | 2015-05-06 10:22:35 -0700 | [diff] [blame] | 41 | s.add_development_dependency 'rubocop', '~> 0.30.0' |
nnoble | 097ef9b | 2014-12-01 17:06:10 -0800 | [diff] [blame] | 42 | |
Tim Emiola | e2860c5 | 2015-01-16 02:58:41 -0800 | [diff] [blame] | 43 | s.extensions = %w(ext/grpc/extconf.rb) |
nnoble | 097ef9b | 2014-12-01 17:06:10 -0800 | [diff] [blame] | 44 | end |