google-cloud-pubsub 0.38.0 → 0.38.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/cloud/pubsub.rb +7 -4
- data/lib/google/cloud/pubsub/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f651d0f3a5709a23fe001543fdc0c362b1b125e9641cfb86464724e84318b744
|
|
4
|
+
data.tar.gz: 9d95824382157ffeb3e42148b6504c5915d6a92feea9882fde9cad7208cc53ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9ae5641b74e9ec7277645ca7ef401613c7a3347f590ecea6994a67ced0562bfd0b5dee1928acd2ecbeacbae937b7bc09419f6f5878f8157f884414411f0d52c4
|
|
7
|
+
data.tar.gz: 5d2f57bb4eb865e8f876b5e6ec5468550058de0a58a17c5bacbd392aee4f2200119758d26c26743dccadc9515d5cc069abca9796153c1b22e24baad011efca8b
|
data/CHANGELOG.md
CHANGED
data/lib/google/cloud/pubsub.rb
CHANGED
|
@@ -59,6 +59,8 @@ module Google
|
|
|
59
59
|
# @param [Integer] timeout Default timeout to use in requests. Optional.
|
|
60
60
|
# @param [Hash] client_config A hash of values to override the default
|
|
61
61
|
# behavior of the API client. Optional.
|
|
62
|
+
# @param [String] endpoint Override of the endpoint host name. Optional.
|
|
63
|
+
# If the param is nil, uses the default endpoint.
|
|
62
64
|
# @param [String] emulator_host Pub/Sub emulator host. Optional.
|
|
63
65
|
# If the param is nil, uses the value of the `emulator_host` config.
|
|
64
66
|
# @param [String] project Alias for the `project_id` argument. Deprecated.
|
|
@@ -70,18 +72,19 @@ module Google
|
|
|
70
72
|
# @example
|
|
71
73
|
# require "google/cloud/pubsub"
|
|
72
74
|
#
|
|
73
|
-
# pubsub = Google::Cloud.
|
|
75
|
+
# pubsub = Google::Cloud::PubSub.new
|
|
74
76
|
#
|
|
75
77
|
# topic = pubsub.topic "my-topic"
|
|
76
78
|
# topic.publish "task completed"
|
|
77
79
|
#
|
|
78
80
|
def self.new project_id: nil, credentials: nil, scope: nil, timeout: nil,
|
|
79
|
-
client_config: nil,
|
|
80
|
-
keyfile: nil
|
|
81
|
+
client_config: nil, endpoint: nil, emulator_host: nil,
|
|
82
|
+
project: nil, keyfile: nil
|
|
81
83
|
project_id ||= (project || default_project_id)
|
|
82
84
|
scope ||= configure.scope
|
|
83
85
|
timeout ||= configure.timeout
|
|
84
86
|
client_config ||= configure.client_config
|
|
87
|
+
endpoint ||= configure.endpoint
|
|
85
88
|
emulator_host ||= configure.emulator_host
|
|
86
89
|
|
|
87
90
|
if emulator_host
|
|
@@ -111,7 +114,7 @@ module Google
|
|
|
111
114
|
PubSub::Project.new(
|
|
112
115
|
PubSub::Service.new(
|
|
113
116
|
project_id, credentials, timeout: timeout,
|
|
114
|
-
host:
|
|
117
|
+
host: endpoint,
|
|
115
118
|
client_config: client_config
|
|
116
119
|
)
|
|
117
120
|
)
|
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.38.
|
|
4
|
+
version: 0.38.1
|
|
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: 2019-08-
|
|
12
|
+
date: 2019-08-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: google-cloud-core
|