google-protobuf 3.22.0.rc.2-arm64-darwin → 3.22.0.rc.3-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/extconf.rb +2 -3
- data/ext/google/protobuf_c/message.c +4 -13
- data/ext/google/protobuf_c/ruby-upb.c +360 -218
- data/ext/google/protobuf_c/ruby-upb.h +239 -210
- data/lib/google/2.6/protobuf_c.bundle +0 -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
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffcc3310033e7ecb403084de3eecf59f478bb61c830ddd0ceaa2f44352372117
|
4
|
+
data.tar.gz: 35416e7ef78cede3a55b1d231d4ee39850d61bfffa61ae8e03e87557610af89c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bef8c88e52312e8bd217fd37f45d14e2522b4f1aa51697fd5221379a67f0d3093e1e1e666895c86165e3bef1d38185092c8ef2d6af3be11148d38b9c135cc149
|
7
|
+
data.tar.gz: 027f7680365001b2dd8bb1dd90c5139e194a736d505f12c275f24d1232ab9a4edb0be789e34ff7a9cf0acb97e38622ab68083479c028516c7a34dcb87047153a
|
@@ -7,19 +7,18 @@ ext_name = "google/protobuf_c"
|
|
7
7
|
dir_config(ext_name)
|
8
8
|
|
9
9
|
if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ || RUBY_PLATFORM =~ /freebsd/
|
10
|
-
$CFLAGS += " -std=gnu99 -O3 -DNDEBUG -fvisibility=hidden -Wall -Wsign-compare -Wno-declaration-after-statement
|
10
|
+
$CFLAGS += " -std=gnu99 -O3 -DNDEBUG -fvisibility=hidden -Wall -Wsign-compare -Wno-declaration-after-statement"
|
11
11
|
else
|
12
12
|
$CFLAGS += " -std=gnu99 -O3 -DNDEBUG"
|
13
13
|
end
|
14
14
|
|
15
|
-
|
16
15
|
if RUBY_PLATFORM =~ /linux/
|
17
16
|
# Instruct the linker to point memcpy calls at our __wrap_memcpy wrapper.
|
18
17
|
$LDFLAGS += " -Wl,-wrap,memcpy"
|
19
18
|
end
|
20
19
|
|
21
20
|
$VPATH << "$(srcdir)/third_party/utf8_range"
|
22
|
-
$INCFLAGS
|
21
|
+
$INCFLAGS += " -I$(srcdir)/third_party/utf8_range"
|
23
22
|
|
24
23
|
$srcs = ["protobuf.c", "convert.c", "defs.c", "message.c",
|
25
24
|
"repeated_field.c", "map.c", "ruby-upb.c", "wrap_memcpy.c",
|
@@ -243,15 +243,6 @@ static int extract_method_call(VALUE method_name, Message* self,
|
|
243
243
|
if (Match(m, name, f, o, "clear_", "")) return METHOD_CLEAR;
|
244
244
|
if (Match(m, name, f, o, "has_", "?") &&
|
245
245
|
(*o || (*f && upb_FieldDef_HasPresence(*f)))) {
|
246
|
-
// Disallow oneof hazzers for proto3.
|
247
|
-
// TODO(haberman): remove this test when we are enabling oneof hazzers for
|
248
|
-
// proto3.
|
249
|
-
if (*f && !upb_FieldDef_IsSubMessage(*f) &&
|
250
|
-
upb_FieldDef_RealContainingOneof(*f) &&
|
251
|
-
upb_MessageDef_Syntax(upb_FieldDef_ContainingType(*f)) !=
|
252
|
-
kUpb_Syntax_Proto2) {
|
253
|
-
return METHOD_UNKNOWN;
|
254
|
-
}
|
255
246
|
return METHOD_PRESENCE;
|
256
247
|
}
|
257
248
|
if (Match(m, name, f, o, "", "_as_value") && *f &&
|
@@ -1287,12 +1278,12 @@ VALUE build_module_from_enumdesc(VALUE _enumdesc) {
|
|
1287
1278
|
int32_t value = upb_EnumValueDef_Number(ev);
|
1288
1279
|
if (name[0] < 'A' || name[0] > 'Z') {
|
1289
1280
|
if (name[0] >= 'a' && name[0] <= 'z') {
|
1290
|
-
name[0] -= 32;
|
1281
|
+
name[0] -= 32; // auto capitalize
|
1291
1282
|
} else {
|
1292
1283
|
rb_warn(
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1284
|
+
"Enum value '%s' does not start with an uppercase letter "
|
1285
|
+
"as is required for Ruby constants.",
|
1286
|
+
name);
|
1296
1287
|
}
|
1297
1288
|
}
|
1298
1289
|
rb_define_const(mod, name, INT2NUM(value));
|