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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1581701f0920357a40caf74e135e5893b7caef2bcbf5e675e78acc072177ed0
4
- data.tar.gz: fdb1ecf452f4ae7e99ec59fba3d883aa02be16b7fe1f53e6e55f4756d7776b9f
3
+ metadata.gz: 3f52fb5b2faddf9653e9eee9dd67e8d28d63d13b690dd27609012094bac8d7a4
4
+ data.tar.gz: 896e8009c7503ffc56e54276fab495fca7e7efdf434171707f9fb2636d867777
5
5
  SHA512:
6
- metadata.gz: 8fc649d55af2f891a22cdef09c9d8aaa690dae27b63e5c5c0d7e13fa3a2720729d5b88c7307efa47678ea1be3c56143569fee7212d126ae8b2066419bdf361d3
7
- data.tar.gz: bd3343fa686b52dea9d673de62a8dc42de92ad15bcb78c31eb42e0fee90a521ed1d85da72515610ccccd45b36ee70735a9f2ea380083b67a56a99dd00de71e17
6
+ metadata.gz: 8944711f90b8214669dc8bad863decd6216234731c1b5db4ceda2bbfcbb7d0020ea3664604378b0b2d92191dea778b9f8267aeed5c152cb8c9baa0e83e452b71
7
+ data.tar.gz: 385cf87e1a52e4f0b893d1f1c5c6eb9d514a58a6f509f7a11bb54cc8f9e5badeb1220b250d7e5595d846027e8def6ff7a2c93f198ae7be6586c46d0473241dba
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History for gapic-generator
2
2
 
3
+ ### 0.46.1 / 2025-08-25
4
+
5
+ * Fix: better compare for mixin package includes
6
+
3
7
  ### 0.46.0 / 2025-08-13
4
8
 
5
9
  * Feature: use HTTP binding configuration class from new gapic-common
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Gapic
18
18
  module Generator
19
- VERSION = "0.46.0"
19
+ VERSION = "0.46.1"
20
20
  end
21
21
  end
@@ -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
- service_address = MIXIN_GEM_NAMES.keys.find { |sn| message_field_address.start_with? MIXIN_PACKAGE_NAMES[sn] }
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gapic-generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.0
4
+ version: 0.46.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernest Landrito