gapic-generator 0.46.0 → 0.46.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/gapic/generator/version.rb +1 -1
- data/lib/gapic/model/mixins.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f52fb5b2faddf9653e9eee9dd67e8d28d63d13b690dd27609012094bac8d7a4
|
4
|
+
data.tar.gz: 896e8009c7503ffc56e54276fab495fca7e7efdf434171707f9fb2636d867777
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8944711f90b8214669dc8bad863decd6216234731c1b5db4ceda2bbfcbb7d0020ea3664604378b0b2d92191dea778b9f8267aeed5c152cb8c9baa0e83e452b71
|
7
|
+
data.tar.gz: 385cf87e1a52e4f0b893d1f1c5c6eb9d514a58a6f509f7a11bb54cc8f9e5badeb1220b250d7e5595d846027e8def6ff7a2c93f198ae7be6586c46d0473241dba
|
data/CHANGELOG.md
CHANGED
data/lib/gapic/model/mixins.rb
CHANGED
@@ -176,7 +176,11 @@ module Gapic
|
|
176
176
|
def self.mixin_message_field_address? message_field_address, gem_name: nil
|
177
177
|
message_field_address = message_field_address.join "." unless message_field_address.is_a? String
|
178
178
|
# NB: messages are checked against package, not service
|
179
|
-
|
179
|
+
# The dot is added to the package name to ensure that e.g. `google.iam.v1` is not considered
|
180
|
+
# a parent package to messages and fields within `google.iam.v1beta1`
|
181
|
+
service_address = MIXIN_GEM_NAMES.keys.find do |sn|
|
182
|
+
message_field_address.start_with? "#{MIXIN_PACKAGE_NAMES[sn]}."
|
183
|
+
end
|
180
184
|
|
181
185
|
!service_address.nil? && gem_name != MIXIN_GEM_NAMES[service_address]
|
182
186
|
end
|