templates/default/service/client/_client.erb in gapic-generator-0.8.0 vs templates/default/service/client/_client.erb in gapic-generator-0.9.0

- old
+ new

@@ -102,10 +102,10 @@ enable_self_signed_jwt = @config.scope == <%= service.client_name %>.configure.scope && @config.endpoint == <%= service.client_name %>.configure.endpoint && !@config.endpoint.split(".").first.include?("-") credentials ||= Credentials.default scope: @config.scope, enable_self_signed_jwt: enable_self_signed_jwt - if credentials.is_a?(String) || credentials.is_a?(Hash) + if credentials.is_a?(::String) || credentials.is_a?(::Hash) credentials = Credentials.new credentials, scope: @config.scope end <%- end -%> @quota_project_id = @config.quota_project @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id