From c03138a4832e9b12560d4a0af427f344945cfc34 Mon Sep 17 00:00:00 2001 From: Tim Emiola Date: Thu, 24 Sep 2015 13:11:03 -0700 Subject: Fixes bins in the grpc beta package --- src/ruby/bin/math_server.rb | 2 +- src/ruby/bin/noproto_server.rb | 2 +- src/ruby/grpc.gemspec | 5 +++-- src/ruby/pb/test/server.rb | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/ruby/bin/math_server.rb b/src/ruby/bin/math_server.rb index 562f197317..1ee4c5632d 100755 --- a/src/ruby/bin/math_server.rb +++ b/src/ruby/bin/math_server.rb @@ -195,7 +195,7 @@ def main s.add_http2_port(options['host'], test_server_creds) GRPC.logger.info("... running securely on #{options['host']}") else - s.add_http2_port(options['host']) + s.add_http2_port(options['host'], :this_port_is_insecure) GRPC.logger.info("... running insecurely on #{options['host']}") end diff --git a/src/ruby/bin/noproto_server.rb b/src/ruby/bin/noproto_server.rb index 72a5762040..66554e26f6 100755 --- a/src/ruby/bin/noproto_server.rb +++ b/src/ruby/bin/noproto_server.rb @@ -101,7 +101,7 @@ def main s.add_http2_port(options['host'], test_server_creds) GRPC.logger.info("... running securely on #{options['host']}") else - s.add_http2_port(options['host']) + s.add_http2_port(options['host'], :this_port_is_insecure) GRPC.logger.info("... running insecurely on #{options['host']}") end diff --git a/src/ruby/grpc.gemspec b/src/ruby/grpc.gemspec index 093606bb8b..61cf18cf54 100755 --- a/src/ruby/grpc.gemspec +++ b/src/ruby/grpc.gemspec @@ -17,9 +17,10 @@ Gem::Specification.new do |s| s.requirements << 'libgrpc ~> 0.11.0 needs to be installed' s.files = %w( Rakefile ) - s.files += Dir.glob('lib/**/*') - s.files += Dir.glob('ext/**/*') s.files += Dir.glob('bin/**/*') + s.files += Dir.glob('ext/**/*') + s.files += Dir.glob('lib/**/*') + s.files += Dir.glob('pb/**/*') s.test_files = Dir.glob('spec/**/*') %w(math noproto).each do |b| s.executables += ["#{b}_client.rb", "#{b}_server.rb"] diff --git a/src/ruby/pb/test/server.rb b/src/ruby/pb/test/server.rb index a311bb76e6..32934f70ad 100755 --- a/src/ruby/pb/test/server.rb +++ b/src/ruby/pb/test/server.rb @@ -187,7 +187,7 @@ def main s.add_http2_port(host, test_server_creds) GRPC.logger.info("... running securely on #{host}") else - s.add_http2_port(host) + s.add_http2_port(host, :this_port_is_insecure) GRPC.logger.info("... running insecurely on #{host}") end s.handle(TestTarget) -- cgit v1.2.3