blob: ce775ffb90bf7f10cb8767f792fd2a7d72dc2f48 [file] [log] [blame]
murgatroid9928013eb2015-12-18 13:23:40 -08001%YAML 1.2
2--- |
3 # -*- ruby -*-
4 # encoding: utf-8
5 $LOAD_PATH.push File.expand_path('../src/ruby/lib', __FILE__)
6 require 'grpc/version'
7
8 Gem::Specification.new do |s|
9 s.name = 'grpc'
10 s.version = GRPC::VERSION
11 s.authors = ['gRPC Authors']
12 s.email = 'temiola@google.com'
13 s.homepage = 'https://github.com/google/grpc/tree/master/src/ruby'
14 s.summary = 'GRPC system in Ruby'
15 s.description = 'Send RPCs from Ruby using GRPC'
16 s.license = 'BSD-3-Clause'
17
18 s.required_ruby_version = '>= 2.0.0'
murgatroid9928013eb2015-12-18 13:23:40 -080019
Nicolas "Pixel" Nobleed59c7d2016-02-14 07:52:14 +010020 s.files = %w( Makefile .yardopts )
murgatroid9928013eb2015-12-18 13:23:40 -080021 s.files += %w( etc/roots.pem )
22 s.files += Dir.glob('src/ruby/bin/**/*')
23 s.files += Dir.glob('src/ruby/ext/**/*')
24 s.files += Dir.glob('src/ruby/lib/**/*')
25 s.files += Dir.glob('src/ruby/pb/**/*')
26 s.files += Dir.glob('include/grpc/**/*')
27 s.test_files = Dir.glob('src/ruby/spec/**/*')
28 s.bindir = 'src/ruby/bin'
murgatroid9928013eb2015-12-18 13:23:40 -080029 s.require_paths = %w( src/ruby/bin src/ruby/lib src/ruby/pb )
30 s.platform = Gem::Platform::RUBY
31
Nicolas "Pixel" Nobleed59c7d2016-02-14 07:52:14 +010032 s.add_dependency 'google-protobuf', '~> 3.0.0.alpha.5.0.3'
Nicolas "Pixel" Noblecb287a12016-01-28 05:01:01 +010033 s.add_dependency 'googleauth', '~> 0.5.1'
murgatroid9928013eb2015-12-18 13:23:40 -080034
Nicolas "Pixel" Noblecb287a12016-01-28 05:01:01 +010035 s.add_development_dependency 'bundler', '~> 1.9'
vjpaic6e24602016-04-12 15:10:44 -070036 s.add_development_dependency 'facter', '~> 2.4'
Nicolas "Pixel" Noblecb287a12016-01-28 05:01:01 +010037 s.add_development_dependency 'logging', '~> 2.0'
38 s.add_development_dependency 'simplecov', '~> 0.9'
39 s.add_development_dependency 'rake', '~> 10.4'
40 s.add_development_dependency 'rake-compiler', '~> 0.9'
Nicolas "Pixel" Nobleca144fd2016-02-09 03:33:40 +010041 s.add_development_dependency 'rake-compiler-dock', '~> 0.5.1'
Nicolas "Pixel" Noblecb287a12016-01-28 05:01:01 +010042 s.add_development_dependency 'rspec', '~> 3.2'
43 s.add_development_dependency 'rubocop', '~> 0.30.0'
44 s.add_development_dependency 'signet', '~> 0.7.0'
murgatroid9928013eb2015-12-18 13:23:40 -080045
46 s.extensions = %w(src/ruby/ext/grpc/extconf.rb)
47
48 % for lib in libs:
Nicolas "Pixel" Nobled899dce2016-01-28 20:45:39 +010049 % if lib.name in ruby_gem.get('deps', []):
50 % for file in lib.get('public_headers', []) + lib.headers + lib.src:
murgatroid9928013eb2015-12-18 13:23:40 -080051 s.files += %w( ${file} )
52 % endfor
53 % endif
54 % endfor
55 end