gapic-common 1.5.0 → 1.6.0
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 +15 -0
- data/lib/gapic/common/version.rb +1 -1
- data/lib/gapic/logging_concerns.rb +5 -3
- data/lib/gapic/rest/grpc_transcoder.rb +5 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ec31c363a735d376c2935c61afafdd95e16034eb9f84d77d53dd509b309fa6bb
|
|
4
|
+
data.tar.gz: a85a971de3b95d60249a5ba260da2be26e5d75f6e69ecb4e669ac93168072e07
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f5739c16e02a1b9305b8a9576f90f631ce188f06279e5e37986d75d2dce59d39407f81d465eefe4fe6aab68fa50eac3bc29d6826c99efd7fed5bf31e60a043b
|
|
7
|
+
data.tar.gz: 1d8032c1483119dc82bbe3322ff535c91623e7b0b4b51b8b8b9cc1e5db391854fcef90655edc84dbe677618b3168a8893687ca94f0d1ac68497c8eff3a6a85c9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
### 1.6.0 (2026-10-22)
|
|
4
|
+
|
|
5
|
+
#### Features
|
|
6
|
+
|
|
7
|
+
* require grpc >= 1.84.1 ([#90](https://github.com/googleapis/ruby-core-libraries/issues/90))
|
|
8
|
+
#### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* ignore inherited Service constants in normalize_service ([#71](https://github.com/googleapis/ruby-core-libraries/issues/71)) ([47c7e98](https://github.com/googleapis/ruby-core-libraries/commit/47c7e9854904caa59955aab31a6fdacd0af200b8)), refs [#70](https://github.com/googleapis/ruby-core-libraries/issues/70)
|
|
11
|
+
|
|
12
|
+
### 1.5.1 (2026-09-30)
|
|
13
|
+
|
|
14
|
+
#### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* tighten path template matching in the REST transcoder ([#83](https://github.com/googleapis/ruby-core-libraries/issues/83))
|
|
17
|
+
|
|
3
18
|
### 1.5.0 (2026-09-29)
|
|
4
19
|
|
|
5
20
|
#### Features
|
data/lib/gapic/common/version.rb
CHANGED
|
@@ -204,12 +204,14 @@ module Gapic
|
|
|
204
204
|
input
|
|
205
205
|
when Class
|
|
206
206
|
mod = input.name.split("::")[..-2].inject(Object) { |m, n| m.const_get n }
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
# inherit: false so a top-level ::Service is not mistaken for the
|
|
208
|
+
# generated gRPC Service sibling that REST stubs do not define.
|
|
209
|
+
if mod.const_defined? "Service", false
|
|
210
|
+
mod.const_get("Service", false).service_name
|
|
209
211
|
else
|
|
210
212
|
name_segments = input.name.split("::")[..-3]
|
|
211
213
|
mod = name_segments.inject(Object) { |m, n| m.const_get n }
|
|
212
|
-
name_segments.join "." if mod.const_defined? "Rest"
|
|
214
|
+
name_segments.join "." if mod.const_defined? "Rest", false
|
|
213
215
|
end
|
|
214
216
|
end
|
|
215
217
|
end
|
|
@@ -111,7 +111,7 @@ module Gapic
|
|
|
111
111
|
# @return [Hash{String, String}]
|
|
112
112
|
# Name to value hash of the variables for the uri template expansion.
|
|
113
113
|
# The values are percent-escaped with slashes potentially preserved.
|
|
114
|
-
# @raise [Gapic::Common::Error] If any parameter value fails path traversal
|
|
114
|
+
# @raise [Gapic::Common::Error] If any parameter value fails path traversal validation.
|
|
115
115
|
def bind_uri_values! http_binding, request_hash
|
|
116
116
|
http_binding.field_bindings.to_h do |field_binding|
|
|
117
117
|
field_path_camel = field_binding.field_path.split(".").map { |part| camel_name_for part }.join(".")
|
|
@@ -252,7 +252,7 @@ module Gapic
|
|
|
252
252
|
# Returns nil if:
|
|
253
253
|
# - the field is not found
|
|
254
254
|
# - the field is a Message or an array,
|
|
255
|
-
# - the regex does not match
|
|
255
|
+
# - the regex does not match the entire string representation
|
|
256
256
|
# @param request_hash [Hash]
|
|
257
257
|
# A hash of the GRPC request or the sub-request with the unset
|
|
258
258
|
# proto3_optional fields removed.
|
|
@@ -266,7 +266,9 @@ module Gapic
|
|
|
266
266
|
|
|
267
267
|
# Covers the case where in `foo.bar.baz`, `baz` is still a submessage or an array.
|
|
268
268
|
return nil if value.is_a?(::Hash) || value.is_a?(::Array)
|
|
269
|
-
|
|
269
|
+
str = value.to_s
|
|
270
|
+
match = regex.match str
|
|
271
|
+
str if match && match.pre_match.empty? && match.post_match.empty?
|
|
270
272
|
end
|
|
271
273
|
|
|
272
274
|
# Finds a value in the hash by path.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gapic-common
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google API Authors
|
|
@@ -139,7 +139,7 @@ dependencies:
|
|
|
139
139
|
requirements:
|
|
140
140
|
- - ">="
|
|
141
141
|
- !ruby/object:Gem::Version
|
|
142
|
-
version:
|
|
142
|
+
version: 1.84.1
|
|
143
143
|
- - "<"
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
145
|
version: 2.a
|
|
@@ -149,7 +149,7 @@ dependencies:
|
|
|
149
149
|
requirements:
|
|
150
150
|
- - ">="
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
|
-
version:
|
|
152
|
+
version: 1.84.1
|
|
153
153
|
- - "<"
|
|
154
154
|
- !ruby/object:Gem::Version
|
|
155
155
|
version: 2.a
|