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

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac38bcf7bc64e0fde46bfba2380e62f02ea262ea7ff2102e76ddce083385e1e4
4
- data.tar.gz: a20bf4b6e63e0b96a1a1c079584eb665ffcdd75b3226a342a7010a59530ffeff
3
+ metadata.gz: b3a45e3a58c21025d46f2e9a86e6cdb9a98e5a70d014341f03612ae8158ce7a7
4
+ data.tar.gz: 712649b7a3f67ccfa75b34e2903841abe37ab203334d44c9d2f6977feb7c50a1
5
5
  SHA512:
6
- metadata.gz: f72368247b7e3d2ae9ceb0172ea43f79659562ac32dc205aef156e60addda1ce07898df2b9c5aa9ac15bbdceaf692e7fde2bc570c40f0e0bf285bb60cb1f127a
7
- data.tar.gz: '04359f464dc8570a9c1b9d36f13b9b8e65fcb4cce295844500d094ee13a87a0d18bd7a32bb7477cda98563de24890f15d47bccab38818a53b736a9a5ade0071b'
6
+ metadata.gz: 44844d38c84cc13655d5a121d183bef7696f1a3c248c740c8853623afbf6c1442a56f304a5e5f9aa21ef3ffac5491de2c828d4894c4bb5820ca28c9b3fd68ec3
7
+ data.tar.gz: 4c6d276d4903fd1cea4288e40f4374262d910adc9a8d9aa52f4a42240c2565cb83a42ed84de87b246db67537e708dadaaf825869a9584e04570a01270d9333f9
@@ -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));