Merge pull request #6537 from grpc/release-0_14

Upmerge from 0.14.0, again :D
pull/6541/head
Nicolas Noble 9 years ago
commit f624a796e7
  1. 7
      src/ruby/lib/grpc/generic/client_stub.rb

@ -49,7 +49,12 @@ module GRPC
fail(TypeError, '!Channel') unless alt_chan.is_a?(Core::Channel)
return alt_chan
end
kw['grpc.primary_user_agent'] = "grpc-ruby/#{VERSION}"
if kw['grpc.primary_user_agent'].nil?
kw['grpc.primary_user_agent'] = ''
else
kw['grpc.primary_user_agent'] += ' '
end
kw['grpc.primary_user_agent'] += "grpc-ruby/#{VERSION}"
unless creds.is_a?(Core::ChannelCredentials) || creds.is_a?(Symbol)
fail(TypeError, '!ChannelCredentials or Symbol')
end

Loading…
Cancel
Save