google-protobuf 3.21.7-x64-mingw32 → 3.21.8-x64-mingw32

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1d57299ef9cb7650ca7ce51ad063c5420e6b3cdda9e7eb4c15a1784740a2d7c
4
- data.tar.gz: 00aa7a0a0359c6ac6df35850c45ea46fc7b5c3876c0b2c20c2ffe980c3e1946e
3
+ metadata.gz: c19d86e37acbd6cd526d6b66951b46b4e8e2cec30dafb14d548daaea44128e5c
4
+ data.tar.gz: 70c1619519b3c694012c41796fd0a1dd9fc98227e9c2234701a9136c0fcb9b5b
5
5
  SHA512:
6
- metadata.gz: 66a4596789304c51366332676b2a1cc2be04c98c2df0930230bde25f4dcba3ddb45fe0d6464c5eede37934f028299d7cb4b59a429bcb8bfa043cfbd6ec1560a4
7
- data.tar.gz: 778cbdc3784709929d7f2e62bea99f6963288f072c21ec2491fdfbee45ffeddcf815d91182aa11ddb03b2fcd9e1f1a9272585e9a05ad24ec75db6f07995098db
6
+ metadata.gz: 297a091d5ee4cc38e69b0051877fc654626546768c2c3027d736e0d565753b01032290617a67741af81d44b3723c30743b350ff87944564e86a668f65b324424
7
+ data.tar.gz: f7fd9736dd56d9973ce495c7fb059161a044f65491a13bb80ea5d0bb94b2ba5db826d9df245fc60fed7f9c7107927dc7c0674b954757ee04dc6f161bd0c8a19d
@@ -1290,15 +1290,20 @@ VALUE build_module_from_enumdesc(VALUE _enumdesc) {
1290
1290
  int n = upb_EnumDef_ValueCount(e);
1291
1291
  for (int i = 0; i < n; i++) {
1292
1292
  const upb_EnumValueDef* ev = upb_EnumDef_Value(e, i);
1293
- const char* name = upb_EnumValueDef_Name(ev);
1293
+ char* name = strdup(upb_EnumValueDef_Name(ev));
1294
1294
  int32_t value = upb_EnumValueDef_Number(ev);
1295
1295
  if (name[0] < 'A' || name[0] > 'Z') {
1296
- rb_warn(
1296
+ if (name[0] >= 'a' && name[0] <= 'z') {
1297
+ name[0] -= 32; // auto capitalize
1298
+ } else {
1299
+ rb_warn(
1297
1300
  "Enum value '%s' does not start with an uppercase letter "
1298
1301
  "as is required for Ruby constants.",
1299
1302
  name);
1303
+ }
1300
1304
  }
1301
1305
  rb_define_const(mod, name, INT2NUM(value));
1306
+ free(name);
1302
1307
  }
1303
1308
 
1304
1309
  rb_define_singleton_method(mod, "lookup", enum_lookup, 1);
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.21.7
4
+ version: 3.21.8
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-29 00:00:00.000000000 Z
11
+ date: 2022-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler-dock
@@ -112,7 +112,7 @@ homepage: https://developers.google.com/protocol-buffers
112
112
  licenses:
113
113
  - BSD-3-Clause
114
114
  metadata:
115
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.7/ruby
115
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.8/ruby
116
116
  post_install_message:
117
117
  rdoc_options: []
118
118
  require_paths: