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 | ed59c7d | 2016-02-14 07:52:14 +0100 | [diff] [blame] | 20 | s.files = %w( Makefile .yardopts ) |
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' |
murgatroid99 | 28013eb | 2015-12-18 13:23:40 -0800 | [diff] [blame] | 29 | s.require_paths = %w( src/ruby/bin src/ruby/lib src/ruby/pb ) |
| 30 | s.platform = Gem::Platform::RUBY |
| 31 | |
Nicolas "Pixel" Noble | ed59c7d | 2016-02-14 07:52:14 +0100 | [diff] [blame] | 32 | s.add_dependency 'google-protobuf', '~> 3.0.0.alpha.5.0.3' |
Nicolas "Pixel" Noble | cb287a1 | 2016-01-28 05:01:01 +0100 | [diff] [blame] | 33 | s.add_dependency 'googleauth', '~> 0.5.1' |
murgatroid99 | 28013eb | 2015-12-18 13:23:40 -0800 | [diff] [blame] | 34 | |
Nicolas "Pixel" Noble | cb287a1 | 2016-01-28 05:01:01 +0100 | [diff] [blame] | 35 | s.add_development_dependency 'bundler', '~> 1.9' |
vjpai | c6e2460 | 2016-04-12 15:10:44 -0700 | [diff] [blame] | 36 | s.add_development_dependency 'facter', '~> 2.4' |
Nicolas "Pixel" Noble | cb287a1 | 2016-01-28 05:01:01 +0100 | [diff] [blame] | 37 | 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" Noble | ca144fd | 2016-02-09 03:33:40 +0100 | [diff] [blame] | 41 | s.add_development_dependency 'rake-compiler-dock', '~> 0.5.1' |
Nicolas "Pixel" Noble | cb287a1 | 2016-01-28 05:01:01 +0100 | [diff] [blame] | 42 | 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' |
murgatroid99 | 28013eb | 2015-12-18 13:23:40 -0800 | [diff] [blame] | 45 | |
| 46 | s.extensions = %w(src/ruby/ext/grpc/extconf.rb) |
| 47 | |
| 48 | % for lib in libs: |
Nicolas "Pixel" Noble | d899dce | 2016-01-28 20:45:39 +0100 | [diff] [blame] | 49 | % if lib.name in ruby_gem.get('deps', []): |
| 50 | % for file in lib.get('public_headers', []) + lib.headers + lib.src: |
murgatroid99 | 28013eb | 2015-12-18 13:23:40 -0800 | [diff] [blame] | 51 | s.files += %w( ${file} ) |
| 52 | % endfor |
| 53 | % endif |
| 54 | % endfor |
| 55 | end |