google-protobuf 4.27.1-x64-mingw-ucrt → 4.27.3-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of google-protobuf might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 402290d33135257db21f05460f40b794aa0b8cd3b83dd34688773025083e3a77
4
- data.tar.gz: b111f08363eb27526a32f9844a33f587294cb017adb52152c29b8f60a376773a
3
+ metadata.gz: 16b9160ab2d3ca0478ac54477e0489176192afddd464b82c08d4b5b0f0be90e5
4
+ data.tar.gz: 96f2288b9fef9f45038a967b1dbfc867c6347fbc6ff29ed8d2f30344b62e01fb
5
5
  SHA512:
6
- metadata.gz: 8c4fee1d99ecb1b1e11ac0689ffe2e6272539011b697d58840e8910c1f35cb43b246bccd18d6cfe52adf1e0c24d6f0c2e1d852d0bec281419a48016155e0386c
7
- data.tar.gz: 94c7b4a9cb8bcbdd0bffdc7a1fc0ffabff9d3e5423495e2b97b34b52a5acbe1fbfbc217c9353aa2dc223103e951937fcce7f39be0f46c6324e9fddc7e088d5dd
6
+ metadata.gz: 6af996da21439853524d8f933f12088e1256069f46df13e6dc4198a85bd29884452ec94ddfd350ea4ef16606fc4da0e351b2b06aba0adbfca40ae98cddba2059
7
+ data.tar.gz: 00ae110a78b250f6c6cfdef57abbde6d0f9c46132f69839d3761187e813b9dfde1e044dec0fc58fd726b8fe49c993571f9702e4ead57237ac651ab0cbda8ac87
@@ -1510,7 +1510,7 @@ static VALUE MethodDescriptor_initialize(VALUE _self, VALUE cookie,
1510
1510
  }
1511
1511
 
1512
1512
  RB_OBJ_WRITE(_self, &self->descriptor_pool, descriptor_pool);
1513
- self->methoddef = (const upb_ServiceDef*)NUM2ULL(ptr);
1513
+ self->methoddef = (const upb_MethodDef*)NUM2ULL(ptr);
1514
1514
 
1515
1515
  return Qnil;
1516
1516
  }
@@ -13212,8 +13212,7 @@ bool _upb_FieldDef_ValidateUtf8(const upb_FieldDef* f) {
13212
13212
 
13213
13213
  bool _upb_FieldDef_IsGroupLike(const upb_FieldDef* f) {
13214
13214
  // Groups are always tag-delimited.
13215
- if (UPB_DESC(FeatureSet_message_encoding)(upb_FieldDef_ResolvedFeatures(f)) !=
13216
- UPB_DESC(FeatureSet_DELIMITED)) {
13215
+ if (f->type_ != kUpb_FieldType_Group) {
13217
13216
  return false;
13218
13217
  }
13219
13218
 
@@ -13647,12 +13646,6 @@ static void _upb_FieldDef_Create(upb_DefBuilder* ctx, const char* prefix,
13647
13646
  UPB_DESC(FieldDescriptorProto_has_type_name)(field_proto);
13648
13647
 
13649
13648
  f->type_ = (int)UPB_DESC(FieldDescriptorProto_type)(field_proto);
13650
- if (f->type_ == kUpb_FieldType_Message &&
13651
- // TODO: remove once we can deprecate kUpb_FieldType_Group.
13652
- UPB_DESC(FeatureSet_message_encoding)(f->resolved_features) ==
13653
- UPB_DESC(FeatureSet_DELIMITED)) {
13654
- f->type_ = kUpb_FieldType_Group;
13655
- }
13656
13649
 
13657
13650
  if (has_type) {
13658
13651
  switch (f->type_) {
@@ -13673,7 +13666,7 @@ static void _upb_FieldDef_Create(upb_DefBuilder* ctx, const char* prefix,
13673
13666
  }
13674
13667
  }
13675
13668
 
13676
- if (!has_type && has_type_name) {
13669
+ if ((!has_type && has_type_name) || f->type_ == kUpb_FieldType_Message) {
13677
13670
  f->type_ =
13678
13671
  UPB_FIELD_TYPE_UNSPECIFIED; // We'll assign this in resolve_subdef()
13679
13672
  } else {
@@ -13823,8 +13816,15 @@ static void resolve_subdef(upb_DefBuilder* ctx, const char* prefix,
13823
13816
  break;
13824
13817
  case UPB_DEFTYPE_MSG:
13825
13818
  f->sub.msgdef = def;
13826
- f->type_ = kUpb_FieldType_Message; // It appears there is no way of
13827
- // this being a group.
13819
+ f->type_ = kUpb_FieldType_Message;
13820
+ // TODO: remove once we can deprecate
13821
+ // kUpb_FieldType_Group.
13822
+ if (UPB_DESC(FeatureSet_message_encoding)(f->resolved_features) ==
13823
+ UPB_DESC(FeatureSet_DELIMITED) &&
13824
+ !upb_MessageDef_IsMapEntry(def) &&
13825
+ !(f->msgdef && upb_MessageDef_IsMapEntry(f->msgdef))) {
13826
+ f->type_ = kUpb_FieldType_Group;
13827
+ }
13828
13828
  f->has_presence = !upb_FieldDef_IsRepeated(f);
13829
13829
  break;
13830
13830
  default:
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.27.1
4
+ version: 4.27.3
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-05 00:00:00.000000000 Z
11
+ date: 2024-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler-dock
@@ -189,7 +189,7 @@ homepage: https://developers.google.com/protocol-buffers
189
189
  licenses:
190
190
  - BSD-3-Clause
191
191
  metadata:
192
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v4.27.1/ruby
192
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v4.27.3/ruby
193
193
  post_install_message:
194
194
  rdoc_options: []
195
195
  require_paths: