google-cloud-pubsub 0.25.0 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c103954443d377024fc1a0c670bf809e48f2515
|
4
|
+
data.tar.gz: a2b506b3a345fb5b73756eb15ef6a96c76de39a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5dda56bd07a86a42541f512fb1ea119333d257d9bc66dc65d73fb59180bfe584cbe2e55ebe51b337dfb6cafa0dd4c2ba013239657e269565b5126f6e0b09cf8
|
7
|
+
data.tar.gz: 98e0759f6a404373b5e793a1eab6cb1c631573e49d4cce29e769ee40e18995bc7bf7f7afddb1cadf0c096255eaf6d938cbdfb8b69f19654358e18d97d967d122
|
data/lib/google/cloud/pubsub.rb
CHANGED
@@ -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,
|
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.
|
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-
|
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
|