google-cloud-pubsub 2.8.1 → 2.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/lib/google/cloud/pubsub/service.rb +16 -4
- data/lib/google/cloud/pubsub/version.rb +1 -1
- data/lib/google/cloud/pubsub.rb +4 -4
- data/lib/google-cloud-pubsub.rb +3 -3
- 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: e56f8ca6212ea03d9ede9593222eda8574a047d56e9c60e3149b722eb4951197
|
4
|
+
data.tar.gz: ac2802eb09654de3efb5011fd15d49f3a51a2ae0b794bee78a4b955adf5748d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dc04aba0cecb3560aa8c667b3e9c79be288f14db5060d9624138f552bfdfe6cdfcc9a3114a977dbeb2918c94527ab166bd111711755796b40b6a672789b6a92
|
7
|
+
data.tar.gz: ae94d8fe7a07afb8a893f3b5ddc102b0b01a4b7649f84c5cda27c6e57dbe535adf8b87c6cc22f0f96af117464efa04997b4db54c6775d5f9fad43d0ea14550e1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 2.9.0 / 2021-10-28
|
4
|
+
|
5
|
+
#### Features
|
6
|
+
|
7
|
+
* Expand timeout type from Integer to Numeric
|
8
|
+
* feat: Expand timeout type from Integer to Numeric. This is backwards-compatible.
|
9
|
+
* Change timeout from Integer to Numeric in Google::Cloud.pubsub
|
10
|
+
* Change timeout from Integer to Numeric in Google::Cloud#pubsub
|
11
|
+
* Change timeout from Integer to Numeric in Google::Cloud::PubSub.configure
|
12
|
+
* Change timeout from Integer to Numeric in Google::Cloud::PubSub.new
|
13
|
+
* fix: Propagate timeout to client RPC configs.
|
14
|
+
|
15
|
+
#### Documentation
|
16
|
+
|
17
|
+
* Add documentation for quota_project Configuration attribute
|
18
|
+
* Fix documentation for PubSub.configure
|
19
|
+
* Remove retries property that does not exist in code.
|
20
|
+
|
3
21
|
### 2.8.1 / 2021-09-22
|
4
22
|
|
5
23
|
#### Bug Fixes
|
@@ -51,7 +51,7 @@ module Google
|
|
51
51
|
return mocked_subscriber if mocked_subscriber
|
52
52
|
@subscriber ||= V1::Subscriber::Client.new do |config|
|
53
53
|
config.credentials = credentials if credentials
|
54
|
-
config
|
54
|
+
override_client_config_timeouts config if timeout
|
55
55
|
config.endpoint = host if host
|
56
56
|
config.lib_name = "gccl"
|
57
57
|
config.lib_version = Google::Cloud::PubSub::VERSION
|
@@ -64,7 +64,7 @@ module Google
|
|
64
64
|
return mocked_publisher if mocked_publisher
|
65
65
|
@publisher ||= V1::Publisher::Client.new do |config|
|
66
66
|
config.credentials = credentials if credentials
|
67
|
-
config
|
67
|
+
override_client_config_timeouts config if timeout
|
68
68
|
config.endpoint = host if host
|
69
69
|
config.lib_name = "gccl"
|
70
70
|
config.lib_version = Google::Cloud::PubSub::VERSION
|
@@ -77,7 +77,7 @@ module Google
|
|
77
77
|
return mocked_iam if mocked_iam
|
78
78
|
@iam ||= V1::IAMPolicy::Client.new do |config|
|
79
79
|
config.credentials = credentials if credentials
|
80
|
-
config
|
80
|
+
override_client_config_timeouts config if timeout
|
81
81
|
config.endpoint = host if host
|
82
82
|
config.lib_name = "gccl"
|
83
83
|
config.lib_version = Google::Cloud::PubSub::VERSION
|
@@ -90,7 +90,7 @@ module Google
|
|
90
90
|
return mocked_schemas if mocked_schemas
|
91
91
|
@schemas ||= V1::SchemaService::Client.new do |config|
|
92
92
|
config.credentials = credentials if credentials
|
93
|
-
config
|
93
|
+
override_client_config_timeouts config if timeout
|
94
94
|
config.endpoint = host if host
|
95
95
|
config.lib_name = "gccl"
|
96
96
|
config.lib_version = Google::Cloud::PubSub::VERSION
|
@@ -461,6 +461,18 @@ module Google
|
|
461
461
|
|
462
462
|
protected
|
463
463
|
|
464
|
+
# Set the timeout in the client config.
|
465
|
+
# Override the default timeout in each individual RPC config as well, since when they are non-nil, these
|
466
|
+
# defaults have precedence over the top-level config.timeout. See Gapic::CallOptions#apply_defaults.
|
467
|
+
def override_client_config_timeouts config
|
468
|
+
config.timeout = timeout
|
469
|
+
rpc_names = config.rpcs.methods - Object.methods
|
470
|
+
rpc_names.each do |rpc_name|
|
471
|
+
rpc = config.rpcs.send rpc_name
|
472
|
+
rpc.timeout = timeout if rpc.respond_to? :timeout=
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
464
476
|
def a_time? obj
|
465
477
|
return false unless obj.respond_to? :to_time
|
466
478
|
# Rails' String#to_time returns nil if the string doesn't parse.
|
data/lib/google/cloud/pubsub.rb
CHANGED
@@ -54,7 +54,7 @@ module Google
|
|
54
54
|
# The default scope is:
|
55
55
|
#
|
56
56
|
# * `https://www.googleapis.com/auth/pubsub`
|
57
|
-
# @param [
|
57
|
+
# @param [Numeric] timeout Default timeout to use in requests. Optional.
|
58
58
|
# @param [String] endpoint Override of the endpoint host name. Optional.
|
59
59
|
# If the param is nil, uses the default endpoint.
|
60
60
|
# @param [String] emulator_host Pub/Sub emulator host. Optional.
|
@@ -121,9 +121,9 @@ module Google
|
|
121
121
|
# parameter `keyfile` is considered deprecated, but may also be used.)
|
122
122
|
# * `scope` - (String, Array<String>) The OAuth 2.0 scopes controlling
|
123
123
|
# the set of resources and operations that the connection can access.
|
124
|
-
# * `
|
125
|
-
#
|
126
|
-
# * `timeout` - (
|
124
|
+
# * `quota_project` - (String) The project ID for a project that can be
|
125
|
+
# used by client libraries for quota and billing purposes.
|
126
|
+
# * `timeout` - (Numeric) Default timeout to use in requests.
|
127
127
|
# * `endpoint` - (String) Override of the endpoint host name, or `nil`
|
128
128
|
# to use the default endpoint.
|
129
129
|
# * `emulator_host` - (String) Host name of the emulator. Defaults to
|
data/lib/google-cloud-pubsub.rb
CHANGED
@@ -41,7 +41,7 @@ module Google
|
|
41
41
|
# The default scope is:
|
42
42
|
#
|
43
43
|
# * `https://www.googleapis.com/auth/pubsub`
|
44
|
-
# @param [
|
44
|
+
# @param [Numeric] timeout Default timeout to use in requests. Optional.
|
45
45
|
#
|
46
46
|
# @return [Google::Cloud::PubSub::Project]
|
47
47
|
#
|
@@ -87,7 +87,7 @@ module Google
|
|
87
87
|
# The default scope is:
|
88
88
|
#
|
89
89
|
# * `https://www.googleapis.com/auth/pubsub`
|
90
|
-
# @param [
|
90
|
+
# @param [Numeric] timeout Default timeout to use in requests. Optional.
|
91
91
|
#
|
92
92
|
# @return [Google::Cloud::PubSub::Project]
|
93
93
|
#
|
@@ -133,7 +133,7 @@ Google::Cloud.configure.add_config! :pubsub do |config|
|
|
133
133
|
config.add_alias! :keyfile, :credentials
|
134
134
|
config.add_field! :scope, default_scopes, match: [String, Array]
|
135
135
|
config.add_field! :quota_project, nil, match: String
|
136
|
-
config.add_field! :timeout, nil, match:
|
136
|
+
config.add_field! :timeout, nil, match: Numeric
|
137
137
|
config.add_field! :emulator_host, default_emulator, match: String, allow_nil: true
|
138
138
|
config.add_field! :on_error, nil, match: Proc
|
139
139
|
config.add_field! :endpoint, "pubsub.googleapis.com", match: String
|
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: 2.
|
4
|
+
version: 2.9.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: 2021-
|
12
|
+
date: 2021-10-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: concurrent-ruby
|