google-cloud-pubsub 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 010d13829a25c127763e29f5c44826325d2ac57b
4
- data.tar.gz: 4dd99f0b95e7c054b05794df5a502550d5481bf8
3
+ metadata.gz: 1c103954443d377024fc1a0c670bf809e48f2515
4
+ data.tar.gz: a2b506b3a345fb5b73756eb15ef6a96c76de39a5
5
5
  SHA512:
6
- metadata.gz: da3fe9646eae5487c32352fdc938883d73af6535ab4b1869033cbf1a8ddc74d13362967228bee132dada097d37e46b5f1f7de6114647ed15024b1187a7ece94a
7
- data.tar.gz: b7f054ffd0e941ba6128c5f189ea69357ddf06e3dff36a0fd190278ebdfb2f02111dca12011cc07b10bc15d5d8788e40789ab45ddec2085be622bd03d9994b69
6
+ metadata.gz: b5dda56bd07a86a42541f512fb1ea119333d257d9bc66dc65d73fb59180bfe584cbe2e55ebe51b337dfb6cafa0dd4c2ba013239657e269565b5126f6e0b09cf8
7
+ data.tar.gz: 98e0759f6a404373b5e793a1eab6cb1c631573e49d4cce29e769ee40e18995bc7bf7f7afddb1cadf0c096255eaf6d938cbdfb8b69f19654358e18d97d967d122
@@ -472,6 +472,8 @@ module Google
472
472
  client_config: nil, emulator_host: nil
473
473
  project ||= Google::Cloud::Pubsub::Project.default_project
474
474
  project = project.to_s # Always cast to a string
475
+ fail ArgumentError, "project is missing" if project.empty?
476
+
475
477
  emulator_host ||= ENV["PUBSUB_EMULATOR_HOST"]
476
478
  if emulator_host
477
479
  ps = Google::Cloud::Pubsub::Project.new(
@@ -480,7 +482,9 @@ module Google
480
482
  ps.service.host = emulator_host
481
483
  return ps
482
484
  end
485
+
483
486
  credentials = credentials_with_scope keyfile, scope
487
+
484
488
  Google::Cloud::Pubsub::Project.new(
485
489
  Google::Cloud::Pubsub::Service.new(
486
490
  project, credentials, timeout: timeout,
@@ -15,9 +15,7 @@
15
15
  "INTERNAL",
16
16
  "UNAVAILABLE"
17
17
  ],
18
- "non_idempotent": [
19
- "UNAVAILABLE"
20
- ]
18
+ "non_idempotent": []
21
19
  },
22
20
  "retry_params": {
23
21
  "default": {
@@ -6,9 +6,7 @@
6
6
  "DEADLINE_EXCEEDED",
7
7
  "UNAVAILABLE"
8
8
  ],
9
- "non_idempotent": [
10
- "UNAVAILABLE"
11
- ],
9
+ "non_idempotent": [],
12
10
  "pull": [
13
11
  "CANCELLED",
14
12
  "DEADLINE_EXCEEDED",
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Pubsub
19
- VERSION = "0.25.0"
19
+ VERSION = "0.26.0"
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-pubsub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-06-01 00:00:00.000000000 Z
12
+ date: 2017-07-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core