google-cloud-error_reporting 0.31.5 → 0.31.6

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
  SHA256:
3
- metadata.gz: 1e84f2a7669eb583bb2ea8f772ae9cef36d5909c41c92a33c0ef7d60a76840e7
4
- data.tar.gz: cf642c8e09c1d7b23e13b1b8e0b02cb00730ca84ac01e6ab822c1ea7838a5144
3
+ metadata.gz: 2d5084668828ea4b8f521f068491eed31abc837ec9f06ad8dd8da47650f44111
4
+ data.tar.gz: 01d5cfad4e0ab19968ddc29f660f6427c2cb8a8fc46d2f012f35f4e0ffb2cd3a
5
5
  SHA512:
6
- metadata.gz: bc4e11991ddb663abe4550b33a689a9ea7fdb776228c8b6741fd9b1d847e1da2902a0ab29aae54052243138fbccc9f5dc2c73237694cf87f2fa79b82337bf334
7
- data.tar.gz: 4253173adad55620ca7242a4cf7dccbcdf9279aa21110328cee08e4e7058cc53e6c0c5b9c92fe5e5b1362321b50d26f6236a8f8d79683299669ea3a57ed8c8ed
6
+ metadata.gz: 8a491f93c8b64714bb0f361f1d261038a645b36001fbc6ec2a5a073358fd2c344e796b8a77a8db995a15df5e383e2eadf63fcf8b125f0734c319bd0a28698502
7
+ data.tar.gz: e7545831b190b56de3d7d07f83ccfb9c4fb6a4a905714ffe7e75330216e28c3418ccf8c18a5e275daa15bacd6b8f0d7321babf2b9f72092f44594b8dd530c1c5
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ### 0.31.6 / 2019-07-08
4
+
5
+ * Support overriding service host and port in the low-level interface.
6
+
3
7
  ### 0.31.5 / 2019-06-11
4
8
 
5
9
  * Use VERSION constant in GAPIC client
@@ -102,6 +102,10 @@ module Google
102
102
  # The default timeout, in seconds, for calls made through this client.
103
103
  # @param metadata [Hash]
104
104
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
105
+ # @param service_address [String]
106
+ # Override for the service hostname, or `nil` to leave as the default.
107
+ # @param service_port [Integer]
108
+ # Override for the service port, or `nil` to leave as the default.
105
109
  # @param exception_transformer [Proc]
106
110
  # An optional proc that intercepts any exceptions raised during an API call to inject
107
111
  # custom error handling.
@@ -111,6 +115,8 @@ module Google
111
115
  client_config: {},
112
116
  timeout: DEFAULT_TIMEOUT,
113
117
  metadata: nil,
118
+ service_address: nil,
119
+ service_port: nil,
114
120
  exception_transformer: nil,
115
121
  lib_name: nil,
116
122
  lib_version: ""
@@ -164,8 +170,8 @@ module Google
164
170
  end
165
171
 
166
172
  # Allow overriding the service path/port in subclasses.
167
- service_path = self.class::SERVICE_ADDRESS
168
- port = self.class::DEFAULT_SERVICE_PORT
173
+ service_path = service_address || self.class::SERVICE_ADDRESS
174
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
169
175
  interceptors = self.class::GRPC_INTERCEPTORS
170
176
  @error_group_service_stub = Google::Gax::Grpc.create_stub(
171
177
  service_path,
@@ -114,6 +114,10 @@ module Google
114
114
  # The default timeout, in seconds, for calls made through this client.
115
115
  # @param metadata [Hash]
116
116
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
117
+ # @param service_address [String]
118
+ # Override for the service hostname, or `nil` to leave as the default.
119
+ # @param service_port [Integer]
120
+ # Override for the service port, or `nil` to leave as the default.
117
121
  # @param exception_transformer [Proc]
118
122
  # An optional proc that intercepts any exceptions raised during an API call to inject
119
123
  # custom error handling.
@@ -123,6 +127,8 @@ module Google
123
127
  client_config: {},
124
128
  timeout: DEFAULT_TIMEOUT,
125
129
  metadata: nil,
130
+ service_address: nil,
131
+ service_port: nil,
126
132
  exception_transformer: nil,
127
133
  lib_name: nil,
128
134
  lib_version: ""
@@ -177,8 +183,8 @@ module Google
177
183
  end
178
184
 
179
185
  # Allow overriding the service path/port in subclasses.
180
- service_path = self.class::SERVICE_ADDRESS
181
- port = self.class::DEFAULT_SERVICE_PORT
186
+ service_path = service_address || self.class::SERVICE_ADDRESS
187
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
182
188
  interceptors = self.class::GRPC_INTERCEPTORS
183
189
  @error_stats_service_stub = Google::Gax::Grpc.create_stub(
184
190
  service_path,
@@ -100,6 +100,10 @@ module Google
100
100
  # The default timeout, in seconds, for calls made through this client.
101
101
  # @param metadata [Hash]
102
102
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
103
+ # @param service_address [String]
104
+ # Override for the service hostname, or `nil` to leave as the default.
105
+ # @param service_port [Integer]
106
+ # Override for the service port, or `nil` to leave as the default.
103
107
  # @param exception_transformer [Proc]
104
108
  # An optional proc that intercepts any exceptions raised during an API call to inject
105
109
  # custom error handling.
@@ -109,6 +113,8 @@ module Google
109
113
  client_config: {},
110
114
  timeout: DEFAULT_TIMEOUT,
111
115
  metadata: nil,
116
+ service_address: nil,
117
+ service_port: nil,
112
118
  exception_transformer: nil,
113
119
  lib_name: nil,
114
120
  lib_version: ""
@@ -162,8 +168,8 @@ module Google
162
168
  end
163
169
 
164
170
  # Allow overriding the service path/port in subclasses.
165
- service_path = self.class::SERVICE_ADDRESS
166
- port = self.class::DEFAULT_SERVICE_PORT
171
+ service_path = service_address || self.class::SERVICE_ADDRESS
172
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
167
173
  interceptors = self.class::GRPC_INTERCEPTORS
168
174
  @report_errors_service_stub = Google::Gax::Grpc.create_stub(
169
175
  service_path,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module ErrorReporting
19
- VERSION = "0.31.5".freeze
19
+ VERSION = "0.31.6".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-error_reporting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.5
4
+ version: 0.31.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-12 00:00:00.000000000 Z
11
+ date: 2019-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.0'
47
+ version: '1.7'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.0'
54
+ version: '1.7'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: concurrent-ruby
57
57
  requirement: !ruby/object:Gem::Requirement