aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/ruby
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-02-11 02:08:17 +0100
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-02-11 02:08:17 +0100
commit7cc94e9381ccfb3fd35696fd32b477d5541c890b (patch)
tree6cb8d78bd76ada845b97b91035b713893c65c0b3 /examples/ruby
parent673781fff6e3c0f7b4eb3827987c09811c842fca (diff)
Fixing Ruby examples.
Diffstat (limited to 'examples/ruby')
-rwxr-xr-xexamples/ruby/greeter_client.rb2
-rwxr-xr-xexamples/ruby/route_guide/route_guide_client.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/ruby/greeter_client.rb b/examples/ruby/greeter_client.rb
index e6cb4bad33..cb4aa195e7 100755
--- a/examples/ruby/greeter_client.rb
+++ b/examples/ruby/greeter_client.rb
@@ -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..26e3a8614e 100755
--- a/examples/ruby/route_guide/route_guide_client.rb
+++ b/examples/ruby/route_guide/route_guide_client.rb
@@ -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)