blob: 462ea52614069e651fab784b922a44c764d7019d [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
Alexander Polcyn370e57a2017-02-02 11:13:32 -080032 s.add_dependency 'google-protobuf', '~> 3.1'
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'
Alexander Polcynd490a9e2017-02-08 19:31:45 -080040 s.add_development_dependency 'rake-compiler', '~> 1.0'
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