murgatroid99 | 28013eb | 2015-12-18 13:23:40 -0800 | [diff] [blame] | 1 | %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' |
murgatroid99 | 28013eb | 2015-12-18 13:23:40 -0800 | [diff] [blame] | 19 | |
Nicolas "Pixel" Noble | cb287a1 | 2016-01-28 05:01:01 +0100 | [diff] [blame] | 20 | s.files = %w( Makefile ) |
murgatroid99 | 28013eb | 2015-12-18 13:23:40 -0800 | [diff] [blame] | 21 | 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' |
| 29 | ${'%'}w(math noproto).each do |b| |
| 30 | s.executables += ["#{b}_client.rb", "#{b}_server.rb"] |
| 31 | end |
| 32 | s.executables += %w(grpc_ruby_interop_client grpc_ruby_interop_server) |
| 33 | s.require_paths = %w( src/ruby/bin src/ruby/lib src/ruby/pb ) |
| 34 | s.platform = Gem::Platform::RUBY |
| 35 | |
Nicolas "Pixel" Noble | f9e3c23 | 2016-02-09 03:33:40 +0100 | [diff] [blame] | 36 | s.add_dependency 'google-protobuf', '~> 3.0.0.alpha.5.0' |
Nicolas "Pixel" Noble | cb287a1 | 2016-01-28 05:01:01 +0100 | [diff] [blame] | 37 | s.add_dependency 'googleauth', '~> 0.5.1' |
murgatroid99 | 28013eb | 2015-12-18 13:23:40 -0800 | [diff] [blame] | 38 | |
Nicolas "Pixel" Noble | cb287a1 | 2016-01-28 05:01:01 +0100 | [diff] [blame] | 39 | s.add_development_dependency 'bundler', '~> 1.9' |
| 40 | s.add_development_dependency 'logging', '~> 2.0' |
| 41 | s.add_development_dependency 'simplecov', '~> 0.9' |
| 42 | s.add_development_dependency 'rake', '~> 10.4' |
| 43 | s.add_development_dependency 'rake-compiler', '~> 0.9' |
| 44 | s.add_development_dependency 'rake-compiler-dock', '~> 0.5' |
| 45 | s.add_development_dependency 'rspec', '~> 3.2' |
| 46 | s.add_development_dependency 'rubocop', '~> 0.30.0' |
| 47 | s.add_development_dependency 'signet', '~> 0.7.0' |
murgatroid99 | 28013eb | 2015-12-18 13:23:40 -0800 | [diff] [blame] | 48 | |
| 49 | s.extensions = %w(src/ruby/ext/grpc/extconf.rb) |
| 50 | |
| 51 | % for lib in libs: |
Nicolas "Pixel" Noble | d899dce | 2016-01-28 20:45:39 +0100 | [diff] [blame] | 52 | % if lib.name in ruby_gem.get('deps', []): |
| 53 | % for file in lib.get('public_headers', []) + lib.headers + lib.src: |
murgatroid99 | 28013eb | 2015-12-18 13:23:40 -0800 | [diff] [blame] | 54 | s.files += %w( ${file} ) |
| 55 | % endfor |
| 56 | % endif |
| 57 | % endfor |
| 58 | end |