google-apis-core 0.9.3 → 0.9.4
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 +6 -0
- data/lib/google/apis/core/http_command.rb +30 -14
- data/lib/google/apis/core/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c4ade0959657cd3bff8601534b1f50e10335061306f94f19a1a5f0d31243378
|
4
|
+
data.tar.gz: 97c094fd9c168d9e1bad64607dd4acc9ab3c9e748018b7173246bd76a52505dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38718b83507b48984c0808da6c550092a7d4988574595b8eb769f3303352b1b51af520e323179836289f3c5524f780ea393df25c26f15555d636786788255336
|
7
|
+
data.tar.gz: 967b026074f0a0d016621f78649e41b3d47c04fd7f2da8a14564897d21bfe9cc25aa207fe6612a00a97c044d31a9505018140ca4cf94bd4fc45d1709d0e0d38d
|
data/CHANGELOG.md
CHANGED
@@ -264,7 +264,7 @@ module Google
|
|
264
264
|
# @return [Object] result if no block given
|
265
265
|
# @yield [result, nil] if block given
|
266
266
|
def success(result, &block)
|
267
|
-
logger.debug { sprintf('Success - %s',
|
267
|
+
logger.debug { sprintf('Success - %s', safe_pretty_representation(result)) }
|
268
268
|
block.call(result, nil) if block_given?
|
269
269
|
result
|
270
270
|
end
|
@@ -317,7 +317,7 @@ module Google
|
|
317
317
|
header: request_header,
|
318
318
|
follow_redirect: true)
|
319
319
|
logger.debug { @http_res.status }
|
320
|
-
logger.debug {
|
320
|
+
logger.debug { safe_single_line_representation @http_res }
|
321
321
|
response = process_response(@http_res.status.to_i, @http_res.header, @http_res.body)
|
322
322
|
success(response)
|
323
323
|
rescue => e
|
@@ -351,21 +351,37 @@ module Google
|
|
351
351
|
"Google::Apis::SecretmanagerV1beta1::SecretPayload"
|
352
352
|
]
|
353
353
|
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
354
|
+
module RedactingPPMethods
|
355
|
+
def pp_object obj
|
356
|
+
return super unless UNSAFE_CLASS_NAMES.include? obj.class.name
|
357
|
+
object_address_group obj do
|
358
|
+
text "(fields redacted)"
|
359
|
+
end
|
360
360
|
end
|
361
361
|
end
|
362
362
|
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
363
|
+
class RedactingPP < PP
|
364
|
+
include RedactingPPMethods
|
365
|
+
end
|
366
|
+
|
367
|
+
class RedactingSingleLine < PP::SingleLine
|
368
|
+
include RedactingPPMethods
|
369
|
+
end
|
370
|
+
|
371
|
+
def safe_pretty_representation obj
|
372
|
+
out = ""
|
373
|
+
printer = RedactingPP.new out, 79
|
374
|
+
printer.guard_inspect_key { printer.pp obj }
|
375
|
+
printer.flush
|
376
|
+
out << "\n"
|
377
|
+
end
|
378
|
+
|
379
|
+
def safe_single_line_representation obj
|
380
|
+
out = ""
|
381
|
+
printer = RedactingSingleLine.new out
|
382
|
+
printer.guard_inspect_key { printer.pp obj }
|
383
|
+
printer.flush
|
384
|
+
out
|
369
385
|
end
|
370
386
|
|
371
387
|
def opencensus_begin_span
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: representable
|
@@ -186,7 +186,7 @@ licenses:
|
|
186
186
|
metadata:
|
187
187
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
188
188
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-core/CHANGELOG.md
|
189
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-core/v0.9.
|
189
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-core/v0.9.4
|
190
190
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-core
|
191
191
|
post_install_message:
|
192
192
|
rdoc_options: []
|
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
203
|
- !ruby/object:Gem::Version
|
204
204
|
version: '0'
|
205
205
|
requirements: []
|
206
|
-
rubygems_version: 3.
|
206
|
+
rubygems_version: 3.4.2
|
207
207
|
signing_key:
|
208
208
|
specification_version: 4
|
209
209
|
summary: Common utility and base classes for legacy Google REST clients
|