google-protobuf 4.28.0.rc.2-arm64-darwin → 4.28.1-arm64-darwin
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.
Potentially problematic release.
This version of google-protobuf might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/ext/google/protobuf_c/convert.c +2 -1
- data/ext/google/protobuf_c/defs.c +1 -1
- data/ext/google/protobuf_c/ruby-upb.c +3 -3
- data/ext/google/protobuf_c/ruby-upb.h +24 -0
- data/lib/google/3.0/protobuf_c.bundle +0 -0
- data/lib/google/3.1/protobuf_c.bundle +0 -0
- data/lib/google/3.2/protobuf_c.bundle +0 -0
- data/lib/google/3.3/protobuf_c.bundle +0 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ca544b969f56005ed5a7dd8997647e49c8f03e1692769aa01ed7b9fde0fc163
|
4
|
+
data.tar.gz: '085fb4e55637ce65ea1c0ec0850c19f85825e766a208e48ac4ff68c8e77a99ba'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c6ff5d7cefdc1af45daf0dffd516ea12c5adddc4f46e3e8c9f3ec96e955af7eccbee300932c4a1220dc6a7b40b83359f6cea490d728c87570229e58dc2ad79c
|
7
|
+
data.tar.gz: 6d52589835df3c729109ed99da8a7859603a4b1a365eb298f385e4e1a0e5980924b320e6f4a0ce27eb70486ab0d0b2d91e3926074782698c6be5f6fae551432d
|
@@ -228,7 +228,8 @@ upb_MessageValue Convert_RubyToUpb(VALUE value, const char* name,
|
|
228
228
|
ret.uint64_val = NUM2ULL(value);
|
229
229
|
break;
|
230
230
|
default:
|
231
|
-
|
231
|
+
rb_raise(cTypeError, "Convert_RubyToUpb(): Unexpected type %d",
|
232
|
+
(int)type_info.type);
|
232
233
|
}
|
233
234
|
break;
|
234
235
|
default:
|
@@ -726,7 +726,7 @@ static VALUE FieldDescriptor__type(VALUE _self) {
|
|
726
726
|
static VALUE FieldDescriptor_default(VALUE _self) {
|
727
727
|
FieldDescriptor* self = ruby_to_FieldDescriptor(_self);
|
728
728
|
const upb_FieldDef* f = self->fielddef;
|
729
|
-
upb_MessageValue default_val =
|
729
|
+
upb_MessageValue default_val = upb_MessageValue_Zero();
|
730
730
|
if (upb_FieldDef_IsSubMessage(f)) {
|
731
731
|
return Qnil;
|
732
732
|
} else if (!upb_FieldDef_IsRepeated(f)) {
|
@@ -2570,7 +2570,7 @@ static upb_MessageValue jsondec_int(jsondec* d, const upb_FieldDef* f) {
|
|
2570
2570
|
|
2571
2571
|
/* Parse UINT32 or UINT64 value. */
|
2572
2572
|
static upb_MessageValue jsondec_uint(jsondec* d, const upb_FieldDef* f) {
|
2573
|
-
upb_MessageValue val
|
2573
|
+
upb_MessageValue val;
|
2574
2574
|
|
2575
2575
|
switch (jsondec_peek(d)) {
|
2576
2576
|
case JD_NUMBER: {
|
@@ -2607,7 +2607,7 @@ static upb_MessageValue jsondec_uint(jsondec* d, const upb_FieldDef* f) {
|
|
2607
2607
|
/* Parse DOUBLE or FLOAT value. */
|
2608
2608
|
static upb_MessageValue jsondec_double(jsondec* d, const upb_FieldDef* f) {
|
2609
2609
|
upb_StringView str;
|
2610
|
-
upb_MessageValue val
|
2610
|
+
upb_MessageValue val;
|
2611
2611
|
|
2612
2612
|
switch (jsondec_peek(d)) {
|
2613
2613
|
case JD_NUMBER:
|
@@ -15255,7 +15255,7 @@ bool upb_Message_Next(const upb_Message* msg, const upb_MessageDef* m,
|
|
15255
15255
|
const upb_MiniTable* mt = upb_MessageDef_MiniTable(m);
|
15256
15256
|
size_t i = *iter;
|
15257
15257
|
size_t n = upb_MiniTable_FieldCount(mt);
|
15258
|
-
|
15258
|
+
upb_MessageValue zero = upb_MessageValue_Zero();
|
15259
15259
|
UPB_UNUSED(ext_pool);
|
15260
15260
|
|
15261
15261
|
// Iterate over normal fields, returning the first one that is set.
|
@@ -1048,7 +1048,14 @@ UPB_API_INLINE size_t upb_Array_Size(const struct upb_Array* arr) {
|
|
1048
1048
|
#define UPB_MESSAGE_VALUE_H_
|
1049
1049
|
|
1050
1050
|
#include <stdint.h>
|
1051
|
+
#include <string.h>
|
1052
|
+
|
1053
|
+
|
1054
|
+
// Must be last.
|
1051
1055
|
|
1056
|
+
#ifdef __cplusplus
|
1057
|
+
extern "C" {
|
1058
|
+
#endif
|
1052
1059
|
|
1053
1060
|
typedef union {
|
1054
1061
|
bool bool_val;
|
@@ -1070,12 +1077,29 @@ typedef union {
|
|
1070
1077
|
uintptr_t tagged_msg_val; // upb_TaggedMessagePtr
|
1071
1078
|
} upb_MessageValue;
|
1072
1079
|
|
1080
|
+
UPB_API_INLINE upb_MessageValue upb_MessageValue_Zero(void) {
|
1081
|
+
upb_MessageValue zero;
|
1082
|
+
memset(&zero, 0, sizeof(zero));
|
1083
|
+
return zero;
|
1084
|
+
}
|
1085
|
+
|
1073
1086
|
typedef union {
|
1074
1087
|
struct upb_Array* array;
|
1075
1088
|
struct upb_Map* map;
|
1076
1089
|
struct upb_Message* msg;
|
1077
1090
|
} upb_MutableMessageValue;
|
1078
1091
|
|
1092
|
+
UPB_API_INLINE upb_MutableMessageValue upb_MutableMessageValue_Zero(void) {
|
1093
|
+
upb_MutableMessageValue zero;
|
1094
|
+
memset(&zero, 0, sizeof(zero));
|
1095
|
+
return zero;
|
1096
|
+
}
|
1097
|
+
|
1098
|
+
#ifdef __cplusplus
|
1099
|
+
} /* extern "C" */
|
1100
|
+
#endif
|
1101
|
+
|
1102
|
+
|
1079
1103
|
#endif /* UPB_MESSAGE_VALUE_H_ */
|
1080
1104
|
|
1081
1105
|
#ifndef UPB_MINI_TABLE_FIELD_H_
|
Binary file
|
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.28.
|
4
|
+
version: 4.28.1
|
5
5
|
platform: arm64-darwin
|
6
6
|
authors:
|
7
7
|
- Protobuf Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler-dock
|
@@ -190,7 +190,7 @@ homepage: https://developers.google.com/protocol-buffers
|
|
190
190
|
licenses:
|
191
191
|
- BSD-3-Clause
|
192
192
|
metadata:
|
193
|
-
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v4.28.
|
193
|
+
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v4.28.1/ruby
|
194
194
|
post_install_message:
|
195
195
|
rdoc_options: []
|
196
196
|
require_paths:
|
@@ -205,9 +205,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
205
|
version: 3.4.dev
|
206
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
207
|
requirements:
|
208
|
-
- - "
|
208
|
+
- - ">="
|
209
209
|
- !ruby/object:Gem::Version
|
210
|
-
version:
|
210
|
+
version: '0'
|
211
211
|
requirements: []
|
212
212
|
rubygems_version: 3.3.26
|
213
213
|
signing_key:
|