google-protobuf 3.22.0.rc.2-arm64-darwin → 3.22.0.rc.3-arm64-darwin

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: adf86bd95157e98e06a4d279841c2613aee57833aaeb0e2ab33459a598029535
4
- data.tar.gz: 61f05138cd265b788cc3bd5c4cb3179fb030eea4327b1996968b94e887d51765
3
+ metadata.gz: ffcc3310033e7ecb403084de3eecf59f478bb61c830ddd0ceaa2f44352372117
4
+ data.tar.gz: 35416e7ef78cede3a55b1d231d4ee39850d61bfffa61ae8e03e87557610af89c
5
5
  SHA512:
6
- metadata.gz: 151a36dcdc256baf598c65ad3ac9ba6f96ae5ceee6209d1f5084a4a66605b11b4f8bc49c37cb1e2cf51e4e84ffb0c147387deb6c8f9d937f924e832dda3f0f9e
7
- data.tar.gz: 69fc4575c68c1bf9e791d88e322a7dfffe76ad3404d3cfb152c727391ac388a87ade7866ec87b622a1268b296debcf598eea097982faf1cdca39cfaecd962d11
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 -I$(srcdir)/third_party/utf8_range"
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 << "$(srcdir)/third_party/utf8_range"
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; // auto capitalize
1281
+ name[0] -= 32; // auto capitalize
1291
1282
  } else {
1292
1283
  rb_warn(
1293
- "Enum value '%s' does not start with an uppercase letter "
1294
- "as is required for Ruby constants.",
1295
- name);
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));