diff options
author | ganmacs <ganmacs@gmail.com> | 2018-05-14 18:19:04 +0900 |
---|---|---|
committer | ganmacs <ganmacs@gmail.com> | 2018-05-14 18:47:22 +0900 |
commit | ff456e11df7b2e54ff41c6a56f3c16e97e7c41d9 (patch) | |
tree | 7dcbb7f5dd130d1f6cc713902857e0abcebc8ed3 /templates | |
parent | 61d9a42007a61be9d59fc2e161c59a5ecde32214 (diff) |
Reject test directory in src/ruby/pb from packing as gem
This seems to be a test directory, as the name implies.
So This directory does not need to be include as grpc gem.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/grpc.gemspec.template | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/grpc.gemspec.template b/templates/grpc.gemspec.template index fb54de1c8e..9945456d52 100644 --- a/templates/grpc.gemspec.template +++ b/templates/grpc.gemspec.template @@ -22,7 +22,9 @@ s.files += Dir.glob('src/ruby/bin/**/*') s.files += Dir.glob('src/ruby/ext/**/*') s.files += Dir.glob('src/ruby/lib/**/*') - s.files += Dir.glob('src/ruby/pb/**/*') + s.files += Dir.glob('src/ruby/pb/**/*').reject do |f| + f.match(%r{^src/ruby/pb/test}) + end s.files += Dir.glob('include/grpc/**/*') s.test_files = Dir.glob('src/ruby/spec/**/*') s.bindir = 'src/ruby/bin' |