google-protobuf 3.25.4-x86_64-darwin → 3.25.6-x86_64-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.
- checksums.yaml +4 -4
- data/ext/google/protobuf_c/convert.c +6 -3
- data/ext/google/protobuf_c/defs.c +3 -3
- data/ext/google/protobuf_c/map.c +2 -2
- data/ext/google/protobuf_c/message.c +8 -5
- data/ext/google/protobuf_c/ruby-upb.c +29 -3
- data/ext/google/protobuf_c/shared_convert.c +3 -3
- data/ext/google/protobuf_c/shared_convert.h +2 -2
- data/ext/google/protobuf_c/shared_message.c +1 -0
- data/lib/google/2.7/protobuf_c.bundle +0 -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 +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c36686105c60d5f5ccaa8036d5360fcf8c885d1da390d17143455bcd2d0a4003
|
4
|
+
data.tar.gz: 1d1614d5dc52ccfe30b0287004eae014df6964f7afff5f3a2d612576d70b0b1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c7b596d0f215df980972ec5e39648a008c6c78ccb85c9b1af006befc2a7ac803563bc80a4dd65f0b5dd3ec2cc65542896057782065e330acc20a32990b4f354
|
7
|
+
data.tar.gz: 54c54cace62e4f95c430d17888e315f51693fe2914c64e6b23234c47705f6b8adc382ba797a54eee64f24738f09795326a0afe00e041028963f837cfe7347adf
|
@@ -208,7 +208,8 @@ upb_MessageValue Convert_RubyToUpb(VALUE value, const char* name,
|
|
208
208
|
}
|
209
209
|
break;
|
210
210
|
default:
|
211
|
-
|
211
|
+
rb_raise(cTypeError,
|
212
|
+
"Convert_RubyToUpb(): Unexpected type %d", (int)type_info.type);
|
212
213
|
}
|
213
214
|
|
214
215
|
return ret;
|
@@ -296,7 +297,8 @@ bool Msgval_IsEqual(upb_MessageValue val1, upb_MessageValue val2,
|
|
296
297
|
if (upb_Status_IsOk(&status)) {
|
297
298
|
return return_value;
|
298
299
|
} else {
|
299
|
-
rb_raise(rb_eRuntimeError,
|
300
|
+
rb_raise(rb_eRuntimeError, "Msgval_IsEqual(): %s",
|
301
|
+
upb_Status_ErrorMessage(&status));
|
300
302
|
}
|
301
303
|
}
|
302
304
|
|
@@ -309,6 +311,7 @@ uint64_t Msgval_GetHash(upb_MessageValue val, TypeInfo type_info,
|
|
309
311
|
if (upb_Status_IsOk(&status)) {
|
310
312
|
return return_value;
|
311
313
|
} else {
|
312
|
-
rb_raise(rb_eRuntimeError,
|
314
|
+
rb_raise(rb_eRuntimeError, "Msgval_GetHash(): %s",
|
315
|
+
upb_Status_ErrorMessage(&status));
|
313
316
|
}
|
314
317
|
}
|
@@ -862,7 +862,7 @@ static VALUE FieldDescriptor_get(VALUE _self, VALUE msg_rb) {
|
|
862
862
|
static VALUE FieldDescriptor_has(VALUE _self, VALUE msg_rb) {
|
863
863
|
FieldDescriptor* self = ruby_to_FieldDescriptor(_self);
|
864
864
|
const upb_MessageDef* m;
|
865
|
-
const
|
865
|
+
const upb_Message* msg = Message_Get(msg_rb, &m);
|
866
866
|
|
867
867
|
if (m != upb_FieldDef_ContainingType(self->fielddef)) {
|
868
868
|
rb_raise(cTypeError, "has method called on wrong message type");
|
@@ -882,7 +882,7 @@ static VALUE FieldDescriptor_has(VALUE _self, VALUE msg_rb) {
|
|
882
882
|
static VALUE FieldDescriptor_clear(VALUE _self, VALUE msg_rb) {
|
883
883
|
FieldDescriptor* self = ruby_to_FieldDescriptor(_self);
|
884
884
|
const upb_MessageDef* m;
|
885
|
-
|
885
|
+
upb_Message* msg = Message_GetMutable(msg_rb, &m);
|
886
886
|
|
887
887
|
if (m != upb_FieldDef_ContainingType(self->fielddef)) {
|
888
888
|
rb_raise(cTypeError, "has method called on wrong message type");
|
@@ -903,7 +903,7 @@ static VALUE FieldDescriptor_clear(VALUE _self, VALUE msg_rb) {
|
|
903
903
|
static VALUE FieldDescriptor_set(VALUE _self, VALUE msg_rb, VALUE value) {
|
904
904
|
FieldDescriptor* self = ruby_to_FieldDescriptor(_self);
|
905
905
|
const upb_MessageDef* m;
|
906
|
-
|
906
|
+
upb_Message* msg = Message_GetMutable(msg_rb, &m);
|
907
907
|
upb_Arena* arena = Arena_get(Message_GetArena(msg_rb));
|
908
908
|
upb_MessageValue msgval;
|
909
909
|
|
data/ext/google/protobuf_c/map.c
CHANGED
@@ -212,7 +212,7 @@ static VALUE Map_merge_into_self(VALUE _self, VALUE hashmap) {
|
|
212
212
|
Map* self = ruby_to_Map(_self);
|
213
213
|
Map* other = ruby_to_Map(hashmap);
|
214
214
|
upb_Arena* arena = Arena_get(self->arena);
|
215
|
-
|
215
|
+
upb_Map* self_map = Map_GetMutable(_self);
|
216
216
|
|
217
217
|
Arena_fuse(other->arena, arena);
|
218
218
|
|
@@ -225,7 +225,7 @@ static VALUE Map_merge_into_self(VALUE _self, VALUE hashmap) {
|
|
225
225
|
size_t iter = kUpb_Map_Begin;
|
226
226
|
upb_MessageValue key, val;
|
227
227
|
while (upb_Map_Next(other->map, &key, &val, &iter)) {
|
228
|
-
upb_Map_Set(
|
228
|
+
upb_Map_Set(self_map, key, val, arena);
|
229
229
|
}
|
230
230
|
} else {
|
231
231
|
rb_raise(rb_eArgError, "Unknown type merging into Map");
|
@@ -488,7 +488,8 @@ static int Map_initialize_kwarg(VALUE key, VALUE val, VALUE _self) {
|
|
488
488
|
k = Convert_RubyToUpb(key, "", map_init->key_type, NULL);
|
489
489
|
|
490
490
|
if (map_init->val_type.type == kUpb_CType_Message && TYPE(val) == T_HASH) {
|
491
|
-
upb_MiniTable* t =
|
491
|
+
const upb_MiniTable* t =
|
492
|
+
upb_MessageDef_MiniTable(map_init->val_type.def.msgdef);
|
492
493
|
upb_Message* msg = upb_Message_New(t, map_init->arena);
|
493
494
|
Message_InitFromValue(msg, map_init->val_type.def.msgdef, val,
|
494
495
|
map_init->arena);
|
@@ -519,7 +520,7 @@ static upb_MessageValue MessageValue_FromValue(VALUE val, TypeInfo info,
|
|
519
520
|
upb_Arena* arena) {
|
520
521
|
if (info.type == kUpb_CType_Message) {
|
521
522
|
upb_MessageValue msgval;
|
522
|
-
upb_MiniTable* t = upb_MessageDef_MiniTable(info.def.msgdef);
|
523
|
+
const upb_MiniTable* t = upb_MessageDef_MiniTable(info.def.msgdef);
|
523
524
|
upb_Message* msg = upb_Message_New(t, arena);
|
524
525
|
Message_InitFromValue(msg, info.def.msgdef, val, arena);
|
525
526
|
msgval.msg_val = msg;
|
@@ -635,7 +636,7 @@ static VALUE Message_initialize(int argc, VALUE* argv, VALUE _self) {
|
|
635
636
|
Message* self = ruby_to_Message(_self);
|
636
637
|
VALUE arena_rb = Arena_new();
|
637
638
|
upb_Arena* arena = Arena_get(arena_rb);
|
638
|
-
upb_MiniTable* t = upb_MessageDef_MiniTable(self->msgdef);
|
639
|
+
const upb_MiniTable* t = upb_MessageDef_MiniTable(self->msgdef);
|
639
640
|
upb_Message* msg = upb_Message_New(t, arena);
|
640
641
|
|
641
642
|
Message_InitPtr(_self, msg, arena_rb);
|
@@ -678,7 +679,8 @@ bool Message_Equal(const upb_Message* m1, const upb_Message* m2,
|
|
678
679
|
if (upb_Status_IsOk(&status)) {
|
679
680
|
return return_value;
|
680
681
|
} else {
|
681
|
-
rb_raise(cParseError,
|
682
|
+
rb_raise(cParseError, "Message_Equal(): %s",
|
683
|
+
upb_Status_ErrorMessage(&status));
|
682
684
|
}
|
683
685
|
}
|
684
686
|
|
@@ -709,7 +711,8 @@ uint64_t Message_Hash(const upb_Message* msg, const upb_MessageDef* m,
|
|
709
711
|
if (upb_Status_IsOk(&status)) {
|
710
712
|
return return_value;
|
711
713
|
} else {
|
712
|
-
rb_raise(cParseError,
|
714
|
+
rb_raise(cParseError, "Message_Hash(): %s",
|
715
|
+
upb_Status_ErrorMessage(&status));
|
713
716
|
}
|
714
717
|
}
|
715
718
|
|
@@ -5771,9 +5771,35 @@ bool _upb_mapsorter_pushexts(_upb_mapsorter* s,
|
|
5771
5771
|
|
5772
5772
|
// Must be last.
|
5773
5773
|
|
5774
|
-
|
5775
|
-
|
5776
|
-
|
5774
|
+
// The latest win32 SDKs have an invalid definition of NAN.
|
5775
|
+
// https://developercommunity.visualstudio.com/t/NAN-is-no-longer-compile-time-constant-i/10688907
|
5776
|
+
//
|
5777
|
+
// Unfortunately, the `0.0 / 0.0` workaround doesn't work in Clang under C23, so
|
5778
|
+
// try __builtin_nan first, if that exists.
|
5779
|
+
#ifdef _WIN32
|
5780
|
+
#ifdef __has_builtin
|
5781
|
+
#if __has_builtin(__builtin_nan)
|
5782
|
+
#define UPB_NAN __builtin_nan("0")
|
5783
|
+
#endif
|
5784
|
+
#if __has_builtin(__builtin_inf)
|
5785
|
+
#define UPB_INFINITY __builtin_inf()
|
5786
|
+
#endif
|
5787
|
+
#endif
|
5788
|
+
#ifndef UPB_NAN
|
5789
|
+
#define UPB_NAN 0.0 / 0.0
|
5790
|
+
#endif
|
5791
|
+
#ifndef UPB_INFINITY
|
5792
|
+
#define UPB_INFINITY 1.0 / 0.0
|
5793
|
+
#endif
|
5794
|
+
#else
|
5795
|
+
// For !_WIN32, assume math.h works.
|
5796
|
+
#define UPB_NAN NAN
|
5797
|
+
#define UPB_INFINITY INFINITY
|
5798
|
+
#endif
|
5799
|
+
|
5800
|
+
const float kUpb_FltInfinity = UPB_INFINITY;
|
5801
|
+
const double kUpb_Infinity = UPB_INFINITY;
|
5802
|
+
const double kUpb_NaN = UPB_NAN;
|
5777
5803
|
|
5778
5804
|
static const size_t overhead = sizeof(upb_Message_InternalData);
|
5779
5805
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
#include "shared_convert.h"
|
13
13
|
|
14
14
|
bool shared_Msgval_IsEqual(upb_MessageValue val1, upb_MessageValue val2,
|
15
|
-
upb_CType type, upb_MessageDef* msgdef,
|
15
|
+
upb_CType type, const upb_MessageDef* msgdef,
|
16
16
|
upb_Status* status) {
|
17
17
|
switch (type) {
|
18
18
|
case kUpb_CType_Bool:
|
@@ -39,7 +39,7 @@ bool shared_Msgval_IsEqual(upb_MessageValue val1, upb_MessageValue val2,
|
|
39
39
|
}
|
40
40
|
|
41
41
|
uint64_t shared_Msgval_GetHash(upb_MessageValue val, upb_CType type,
|
42
|
-
upb_MessageDef* msgdef, uint64_t seed,
|
42
|
+
const upb_MessageDef* msgdef, uint64_t seed,
|
43
43
|
upb_Status* status) {
|
44
44
|
switch (type) {
|
45
45
|
case kUpb_CType_Bool:
|
@@ -61,4 +61,4 @@ uint64_t shared_Msgval_GetHash(upb_MessageValue val, upb_CType type,
|
|
61
61
|
default:
|
62
62
|
upb_Status_SetErrorMessage(status, "Internal error, unexpected type");
|
63
63
|
}
|
64
|
-
}
|
64
|
+
}
|
@@ -16,11 +16,11 @@
|
|
16
16
|
#include "shared_message.h"
|
17
17
|
|
18
18
|
bool shared_Msgval_IsEqual(upb_MessageValue val1, upb_MessageValue val2,
|
19
|
-
upb_CType type, upb_MessageDef* msgdef,
|
19
|
+
upb_CType type, const upb_MessageDef* msgdef,
|
20
20
|
upb_Status* status);
|
21
21
|
|
22
22
|
uint64_t shared_Msgval_GetHash(upb_MessageValue val, upb_CType type,
|
23
|
-
upb_MessageDef* msgdef, uint64_t seed,
|
23
|
+
const upb_MessageDef* msgdef, uint64_t seed,
|
24
24
|
upb_Status* status);
|
25
25
|
|
26
26
|
#endif // RUBY_PROTOBUF_SHARED_CONVERT_H_
|
Binary file
|
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: 3.25.
|
4
|
+
version: 3.25.6
|
5
5
|
platform: x86_64-darwin
|
6
6
|
authors:
|
7
7
|
- Protobuf Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler-dock
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- ext/google/protobuf_c/third_party/utf8_range/range2-sse.c
|
134
134
|
- ext/google/protobuf_c/third_party/utf8_range/utf8_range.h
|
135
135
|
- ext/google/protobuf_c/wrap_memcpy.c
|
136
|
+
- lib/google/2.7/protobuf_c.bundle
|
136
137
|
- lib/google/3.0/protobuf_c.bundle
|
137
138
|
- lib/google/3.1/protobuf_c.bundle
|
138
139
|
- lib/google/3.2/protobuf_c.bundle
|
@@ -177,7 +178,7 @@ homepage: https://developers.google.com/protocol-buffers
|
|
177
178
|
licenses:
|
178
179
|
- BSD-3-Clause
|
179
180
|
metadata:
|
180
|
-
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.25.
|
181
|
+
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.25.6/ruby
|
181
182
|
post_install_message:
|
182
183
|
rdoc_options: []
|
183
184
|
require_paths:
|
@@ -186,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
186
187
|
requirements:
|
187
188
|
- - ">="
|
188
189
|
- !ruby/object:Gem::Version
|
189
|
-
version: '
|
190
|
+
version: '2.7'
|
190
191
|
- - "<"
|
191
192
|
- !ruby/object:Gem::Version
|
192
193
|
version: 3.4.dev
|
@@ -196,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
197
|
- !ruby/object:Gem::Version
|
197
198
|
version: '0'
|
198
199
|
requirements: []
|
199
|
-
rubygems_version: 3.3.
|
200
|
+
rubygems_version: 3.3.27
|
200
201
|
signing_key:
|
201
202
|
specification_version: 4
|
202
203
|
summary: Protocol Buffers
|