Switches to using protobuf-ruby.
- Adds a dependency to protobuf-ruby in the gemfile
- Updates math.proto to proto3
- Updates math server and client to use protoc protos
- Updates interop server and client to use protoc protos
Also
- Fixes/Updates the noproto samples
TESTED: math_server and math_client can communicate locally.
Change on 2015/01/07 by temiola <temiola@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83483448
diff --git a/src/ruby/bin/math_server.rb b/src/ruby/bin/math_server.rb
index ed39144..a0f301c 100644
--- a/src/ruby/bin/math_server.rb
+++ b/src/ruby/bin/math_server.rb
@@ -41,7 +41,7 @@
require 'forwardable'
require 'grpc'
-require 'math.pb'
+require 'math_services'
require 'optparse'
# Holds state for a fibonacci series
@@ -168,8 +168,8 @@
'secure' => false
}
OptionParser.new do |opts|
- opts.banner = 'Usage: [--host|-h <hostname>:<port>] [--secure|-s]'
- opts.on('-h', '--host', '<hostname>:<port>') do |v|
+ opts.banner = 'Usage: [--host <hostname>:<port>] [--secure|-s]'
+ opts.on('--host HOST', '<hostname>:<port>') do |v|
options['host'] = v
end
opts.on('-s', '--secure', 'access using test creds') do |v|