google-protobuf 3.21.7 → 3.21.8

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: c99bebdfccf85e8fa849d09d6de45e21e15a62c0b8d47afd2990ae409b81937c
4
- data.tar.gz: f425e14d2e9660bde3ce81b87e8d27b940b1688fdb32b7e652b53a9cc39a0100
3
+ metadata.gz: 42878b39e56b69fd23d1c616d81bef82ca279c7872fa11a9d75005b4d0affb3f
4
+ data.tar.gz: a6da6e837daa1b28dad8d2ceaa85a889746fda1eb4e1830266bbbff16a35bec3
5
5
  SHA512:
6
- metadata.gz: 542f2b53318083d74f41671b7f2731baedb1c71e7495ac47e919925b8fec9315872268136a6d68c666fe13e212ce5b4e29ca86a8e7ac8a3d3dba873149d3dd12
7
- data.tar.gz: 0621b7be22e07b3cab6062175dea374504d2129cd8fe25228a27299b7400adc50a97e1cb003227433e0eb4553692412bd033bbf3b90a397aaf7119198cef2b23
6
+ metadata.gz: b08289ac2aaf130780ad52af88d981d931d696690c3f139d054806247bbd472834c19cd6cd625adf17638018239074a7599e3b2878033b932a92e18561b3b815
7
+ data.tar.gz: d29b79ecd9e5cd129d821384eb1cc11052523fde3283d8bd3edb7e29b08509d77e6df2c61f388e66efc3a6313351e1809dccb06578263316f71d73dd54fb7691
@@ -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);
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: ruby
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
@@ -109,7 +109,7 @@ homepage: https://developers.google.com/protocol-buffers
109
109
  licenses:
110
110
  - BSD-3-Clause
111
111
  metadata:
112
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.7/ruby
112
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.8/ruby
113
113
  post_install_message:
114
114
  rdoc_options: []
115
115
  require_paths: