google-protobuf 3.21.7-x86_64-linux → 3.21.9-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8b58b2cfa3ba2f7dbf27a23d1b8e46793737242b477e37ce9ffc8d8c7919902
4
- data.tar.gz: ed5005b4373f02ad42cf3ff8cde6247366d5ad4354ba663861fe0de43374d1af
3
+ metadata.gz: 871ed0d5e37a9682bf1c954c8a263706fd53927d77abc31020dc9a3669a4c029
4
+ data.tar.gz: 99d908306fb5506fc8682aa71c516138ca6410ddddf40760fa5a0eab3b54d66d
5
5
  SHA512:
6
- metadata.gz: 2045ae3b8333c626ed0fe92958594425ccb48308bb6ea632804ef7bf72c4adcd3e7d29a2bcf3d340d2813dd9d2a0c9537563637b05c16f06538489590da88597
7
- data.tar.gz: 30b5b1e5abca6c9ff717d8121b7cab343a6639233290a7be3d9615d50bf7d288ac0d95c258027b15a73728cacd3b48af6d98c5f1be0ab37a355d8da3f1610bb4
6
+ metadata.gz: 1d8d18357ff001231b0337a407a398df9dac67b841a0f1ebb8dfbb9255252c9220cba7273076ac1570c24902abb75f8e02c779aeca020f002d9ddcdf41f0f336
7
+ data.tar.gz: 906011d8804086e6a089f4d844b78e24681e3428d3c59b8b488294dfeaa47b590c47efb7bf583fddf14e93b98672021032c35218a36540e7ea2e5ca70a2df303
@@ -1290,15 +1290,22 @@ 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
+ upb_Arena* arena = upb_Arena_New();
1294
+ const char* src_name = upb_EnumValueDef_Name(ev);
1295
+ char* name = upb_strdup2(src_name, strlen(src_name), arena);
1294
1296
  int32_t value = upb_EnumValueDef_Number(ev);
1295
1297
  if (name[0] < 'A' || name[0] > 'Z') {
1296
- rb_warn(
1298
+ if (name[0] >= 'a' && name[0] <= 'z') {
1299
+ name[0] -= 32; // auto capitalize
1300
+ } else {
1301
+ rb_warn(
1297
1302
  "Enum value '%s' does not start with an uppercase letter "
1298
1303
  "as is required for Ruby constants.",
1299
1304
  name);
1305
+ }
1300
1306
  }
1301
1307
  rb_define_const(mod, name, INT2NUM(value));
1308
+ upb_Arena_Free(arena);
1302
1309
  }
1303
1310
 
1304
1311
  rb_define_singleton_method(mod, "lookup", enum_lookup, 1);
Binary file
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.9
5
5
  platform: x86_64-linux
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-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler-dock
@@ -113,7 +113,7 @@ homepage: https://developers.google.com/protocol-buffers
113
113
  licenses:
114
114
  - BSD-3-Clause
115
115
  metadata:
116
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.7/ruby
116
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.9/ruby
117
117
  post_install_message:
118
118
  rdoc_options: []
119
119
  require_paths: