aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-02-10 17:57:59 -0800
committerGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-02-10 17:57:59 -0800
commit09b19500f496c8e6994bf0d55d832ba1fb20715d (patch)
treef81d9237bfc465762907952413ec4fe4d63280fd
parent673781fff6e3c0f7b4eb3827987c09811c842fca (diff)
parent9fe56a09fd9e3eaaad6da8096f7645f9511ad39e (diff)
Merge pull request #5192 from nicolasnoble/fixing-ruby-example
Fixing Ruby examples.
-rwxr-xr-xexamples/ruby/greeter_client.rb4
-rwxr-xr-xexamples/ruby/route_guide/route_guide_client.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/ruby/greeter_client.rb b/examples/ruby/greeter_client.rb
index e6cb4bad33..2a24316870 100755
--- a/examples/ruby/greeter_client.rb
+++ b/examples/ruby/greeter_client.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-# Copyright 2015, Google Inc.
+# Copyright 2015-2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -41,7 +41,7 @@ require 'grpc'
require 'helloworld_services'
def main
- stub = Helloworld::Greeter::Stub.new('localhost:50051')
+ stub = Helloworld::Greeter::Stub.new('localhost:50051', :this_channel_is_insecure)
user = ARGV.size > 0 ? ARGV[0] : 'world'
message = stub.say_hello(Helloworld::HelloRequest.new(name: user)).message
p "Greeting: #{message}"
diff --git a/examples/ruby/route_guide/route_guide_client.rb b/examples/ruby/route_guide/route_guide_client.rb
index baef0e502b..715a3c08c5 100755
--- a/examples/ruby/route_guide/route_guide_client.rb
+++ b/examples/ruby/route_guide/route_guide_client.rb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
-# Copyright 2015, Google Inc.
+# Copyright 2015-2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -147,7 +147,7 @@ def run_route_chat(stub)
end
def main
- stub = RouteGuide::Stub.new('localhost:50051')
+ stub = RouteGuide::Stub.new('localhost:50051', :this_channel_is_insecure)
run_get_feature(stub)
run_list_features(stub)
run_route_chat(stub)