AUTHENTICATION.md in google-cloud-redis-v1beta1-0.1.0 vs AUTHENTICATION.md in google-cloud-redis-v1beta1-0.1.1

- old
+ new

@@ -25,11 +25,11 @@ 3. Initialize the client. ```ruby require "google/cloud/redis/v1beta1" -client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new +client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new ``` ## Credential Lookup The google-cloud-redis-v1beta1 library aims to make authentication @@ -62,11 +62,11 @@ **Credentials JSON** itself can be stored for environments such as Docker containers where writing files is difficult or not encouraged. The environment variables that google-cloud-redis-v1beta1 checks for credentials are configured on the service Credentials class (such as -{Google::Cloud::Redis::V1beta1::CloudRedis::Credentials}): +{::Google::Cloud::Redis::V1beta1::CloudRedis::Credentials}): 1. `REDIS_CREDENTIALS` - Path to JSON file, or JSON contents 2. `REDIS_KEYFILE` - Path to JSON file, or JSON contents 3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents 4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents @@ -75,35 +75,35 @@ ```ruby require "google/cloud/redis/v1beta1" ENV["REDIS_CREDENTIALS"] = "path/to/keyfile.json" -client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new +client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new ``` ### Configuration The **Credentials JSON** can be configured instead of placing them in environment variables. Either on an individual client initialization: ```ruby require "google/cloud/redis/v1beta1" -client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new do |config| +client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new do |config| config.credentials = "path/to/keyfile.json" end ``` Or configured globally for all clients: ```ruby require "google/cloud/redis/v1beta1" -Google::Cloud::Redis::V1beta1::CloudRedis::Client.configure do |config| +::Google::Cloud::Redis::V1beta1::CloudRedis::Client.configure do |config| config.credentials = "path/to/keyfile.json" end -client = Google::Cloud::Redis::V1beta1::CloudRedis::Client.new +client = ::Google::Cloud::Redis::V1beta1::CloudRedis::Client.new ``` ### Cloud SDK This option allows for an easy way to authenticate during development. If