lib/gapic/presenters/service_presenter.rb in gapic-generator-0.4.0 vs lib/gapic/presenters/service_presenter.rb in gapic-generator-0.4.2
- old
+ new
@@ -72,11 +72,11 @@
# delegate's namespace rather than its own. For example, KMS includes
# the common IAMPolicy service, but that service's client should go
# into the KMS namespace.
return common_service_delegate.namespace if common_service_delegate
- return @service.ruby_package if @service.ruby_package.present?
+ return ensure_absolute_namespace @service.ruby_package if @service.ruby_package.present?
namespace = ruby_namespace_for_address @service.address[0...-1]
fix_namespace @api, namespace
end
@@ -93,10 +93,10 @@
end
# The namespace of the protos. This may be different from the client
# namespace for a common service.
def proto_namespace
- return @service.ruby_package if @service.ruby_package.present?
+ return ensure_absolute_namespace @service.ruby_package if @service.ruby_package.present?
namespace = ruby_namespace_for_address @service.address[0...-1]
@api.override_proto_namespaces? ? fix_namespace(@api, namespace) : namespace
end