google-protobuf 3.21.6-x86_64-darwin → 3.21.8-x86_64-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: 0e4ccea6f60247458be03e4a6b4ef4c0eaef610921d21978441c42bcde53283f
4
- data.tar.gz: '08a8dea26a7d20a942ff2077b6d6214c338ad9b92dc76e57d031e637447317a8'
3
+ metadata.gz: 222896c025b2dbea5aa60cdb3d0cf961ff32c591e4ae05fe8aba42f2540d0a1b
4
+ data.tar.gz: e0dc836ba971c9313ff5ed32f187b83d9f4381fb559c7b0694fa96e2b514fa0c
5
5
  SHA512:
6
- metadata.gz: e83d29b4b5d55e122b0f25bdd91d4ac770802a25be6a2f55809a9af361aeea8d90fa3c5ea7c2bdf54f44892c5b78c198adb3e6d418465255dc2adcfd4db3edd4
7
- data.tar.gz: ba4ceacbbd53d4af77820b904b8ac6f07b884c016c664a35e3e7dab47fd5654d4da39d83267eadf32ceef7afa54beaf2c28d774c9a8583a0a70e02a73afc708d
6
+ metadata.gz: 33fa590f468320e71edaed0a5dcd5c8ac62275bac70fd86b33b0d437485c6bd9c1d956cae445aafa07bb940b58490ee84bd2054da7889312860cac8c680dd324
7
+ data.tar.gz: 89bfcdd32424161365889aa4eada430d7058ea27c021f12deeae98da7ba38b0154da827a28f9cb6dd73b1835b5de937f961acb8981791520edd3f9637a394e30
@@ -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
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.6
4
+ version: 3.21.8
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-13 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
@@ -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.6/ruby
116
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.8/ruby
117
117
  post_install_message:
118
118
  rdoc_options: []
119
119
  require_paths: