lib/google/cloud/pubsub/v1/credentials.rb in google-cloud-pubsub-0.33.2 vs lib/google/cloud/pubsub/v1/credentials.rb in google-cloud-pubsub-0.34.0

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright 2018 Google LLC +# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # @@ -15,11 +15,11 @@ require "googleauth" module Google module Cloud - module Pubsub + module PubSub module V1 class Credentials < Google::Auth::Credentials SCOPE = ["https://www.googleapis.com/auth/pubsub"].freeze PATH_ENV_VARS = %w(PUBSUB_CREDENTIALS PUBSUB_KEYFILE @@ -33,7 +33,9 @@ GCLOUD_KEYFILE_JSON) DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"] end end end + + Pubsub = PubSub unless const_defined? :Pubsub end end