google-geo-type 1.2.0 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b78fbf8bac7010b1b83d41bba399117b3a5ba5a0130ad2f18b3f4fb9a86bbd6f
4
- data.tar.gz: da3225f878c27a93d9c0e60158b9a9702ba4e0cb0386579bffcbfca8edf6e2f9
3
+ metadata.gz: aa7cf53a7f89ffa5e39b4ae233472caa13d018592f1aeeddce3a2b73f3fca441
4
+ data.tar.gz: 11083749a35a3eb214f9d76d7bfdeb4f936ecdeea94a8034c140a91dd0ae62fb
5
5
  SHA512:
6
- metadata.gz: 84a69130f863a4d7974d4767e8532ae2db0323fc6149f7d547f8bf7e85ca2f5aec8838c8f736d3e71efff000744ec597a9ada17e8d7cae05159886017c8c4d5a
7
- data.tar.gz: 4947eeb78b6ab8311f4f60ef33fa0b19b9d9830fd181ce6cd6ce99dffd57efec8147263b8dd43ed5c01b43ab693017186aaf182ccc50fc1b314b393570eaa343
6
+ metadata.gz: 84fba9793b08fbafced1faeb180668f9d0c75d2f4abe30136fcfbe961f3ae699df4b25cf5d254f2a92efbf0232ac95e512db0c206ca9fd248def8018a47edf6a
7
+ data.tar.gz: cd3b30e593318ffa5eda4c9e21a8fd163ef941d85239ceed83e2742b68bd75d4fcf5d0c1afcc8df2909af710760e9651f5c1e2db1f8244ec5d3286cf713a81c5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ### 1.3.0 (2026-10-29)
4
+
5
+ #### Features
6
+
7
+ * Automated update of google-geo-type ([#429](https://github.com/googleapis/common-protos-ruby/issues/429))
8
+
3
9
  ### 1.2.0 (2026-05-19)
4
10
 
5
11
  #### Features
@@ -17,7 +17,7 @@
17
17
  module Google
18
18
  module Geo
19
19
  module Type
20
- VERSION = "1.2.0".freeze
20
+ VERSION = "1.3.0".freeze
21
21
  end
22
22
  end
23
23
  end
@@ -9,8 +9,30 @@ require 'google/type/latlng_pb'
9
9
 
10
10
  descriptor_data = "\n\x1egoogle/geo/type/viewport.proto\x12\x0fgoogle.geo.type\x1a\x18google/type/latlng.proto\"O\n\x08Viewport\x12 \n\x03low\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12!\n\x04high\x18\x02 \x01(\x0b\x32\x13.google.type.LatLngBo\n\x13\x63om.google.geo.typeB\rViewportProtoP\x01Z@google.golang.org/genproto/googleapis/geo/type/viewport;viewport\xa2\x02\x04GGTPb\x06proto3"
11
11
 
12
- pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
- pool.add_serialized_file(descriptor_data)
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.type.LatLng", "google/type/latlng.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
+ end
32
+ end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
35
+ end
14
36
 
15
37
  module Google
16
38
  module Geo
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-geo-type
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC