AUTHENTICATION.md in google-cloud-pubsub-0.33.2 vs AUTHENTICATION.md in google-cloud-pubsub-0.34.0

- old
+ new

@@ -76,11 +76,11 @@ The environment variables that Pub/Sub checks for project ID are: 1. `PUBSUB_PROJECT` 2. `GOOGLE_CLOUD_PROJECT` -The environment variables that Pub/Sub checks for credentials are configured on {Google::Cloud::Pubsub::V1::Credentials}: +The environment variables that Pub/Sub checks for credentials are configured on {Google::Cloud::PubSub::V1::Credentials}: 1. `PUBSUB_CREDENTIALS` - Path to JSON file, or JSON contents 2. `PUBSUB_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 @@ -90,25 +90,25 @@ require "google/cloud/pubsub" ENV["PUBSUB_PROJECT"] = "my-project-id" ENV["PUBSUB_CREDENTIALS"] = "path/to/keyfile.json" -pubsub = Google::Cloud::Pubsub.new +pubsub = Google::Cloud::PubSub.new ``` ### Configuration The **Project ID** and **Credentials JSON** can be configured instead of placing them in environment variables or providing them as arguments. ```ruby require "google/cloud/pubsub" -Google::Cloud::Pubsub.configure do |config| +Google::Cloud::PubSub.configure do |config| config.project_id = "my-project-id" config.credentials = "path/to/keyfile.json" end -pubsub = Google::Cloud::Pubsub.new +pubsub = Google::Cloud::PubSub.new ``` ### Cloud SDK This option allows for an easy way to authenticate during development. If