google-protobuf 3.22.0.rc.2-x86_64-linux → 3.22.0.rc.3-x86_64-linux
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 +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.so +0 -0
- data/lib/google/2.7/protobuf_c.so +0 -0
- data/lib/google/3.0/protobuf_c.so +0 -0
- data/lib/google/3.1/protobuf_c.so +0 -0
- data/lib/google/3.2/protobuf_c.so +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: d94f8b93e55a27a3410fcb82bc31813828c160df232be3f90965e3a305237d64
|
4
|
+
data.tar.gz: ef56d43ae3e64562a8857aa97c114daedf0ddf18ffa20010869889969c39284d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea81fdb00939c9daa8e55e113617f2f549f04b8a5663277b9d12cc660069c885f6576d3b65e1bdff2a191cd3771a3fecb60be61e6ad4ed818589c01d2e0acc39
|
7
|
+
data.tar.gz: ef23eca5189f357ca1269055d8a2544284727920bae698d3dc9266d89d60cf7d50b2ad3a610130981d47d0bbabecd1cf351f5b09cad9cf0c3729070dec9205ad
|
@@ -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));
|