google-protobuf 4.29.1 → 4.33.1

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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/ext/google/protobuf_c/convert.c +3 -10
  3. data/ext/google/protobuf_c/defs.c +469 -130
  4. data/ext/google/protobuf_c/extconf.rb +20 -10
  5. data/ext/google/protobuf_c/glue.c +63 -0
  6. data/ext/google/protobuf_c/map.c +76 -39
  7. data/ext/google/protobuf_c/message.c +96 -62
  8. data/ext/google/protobuf_c/protobuf.c +3 -2
  9. data/ext/google/protobuf_c/protobuf.h +0 -8
  10. data/ext/google/protobuf_c/repeated_field.c +75 -38
  11. data/ext/google/protobuf_c/ruby-upb.c +14055 -13540
  12. data/ext/google/protobuf_c/ruby-upb.h +4343 -2827
  13. data/ext/google/protobuf_c/third_party/utf8_range/utf8_range.c +21 -281
  14. data/ext/google/protobuf_c/third_party/utf8_range/utf8_range_neon.inc +117 -0
  15. data/ext/google/protobuf_c/third_party/utf8_range/utf8_range_sse.inc +272 -0
  16. data/lib/google/protobuf/any_pb.rb +1 -1
  17. data/lib/google/protobuf/api_pb.rb +2 -2
  18. data/lib/google/protobuf/descriptor_pb.rb +6 -2
  19. data/lib/google/protobuf/duration_pb.rb +1 -1
  20. data/lib/google/protobuf/empty_pb.rb +1 -1
  21. data/lib/google/protobuf/ffi/descriptor.rb +10 -0
  22. data/lib/google/protobuf/ffi/descriptor_pool.rb +3 -1
  23. data/lib/google/protobuf/ffi/enum_descriptor.rb +10 -0
  24. data/lib/google/protobuf/ffi/ffi.rb +0 -1
  25. data/lib/google/protobuf/ffi/field_descriptor.rb +16 -0
  26. data/lib/google/protobuf/ffi/file_descriptor.rb +36 -0
  27. data/lib/google/protobuf/ffi/internal/convert.rb +1 -5
  28. data/lib/google/protobuf/ffi/internal/pointer_helper.rb +2 -1
  29. data/lib/google/protobuf/ffi/map.rb +2 -2
  30. data/lib/google/protobuf/ffi/message.rb +2 -4
  31. data/lib/google/protobuf/ffi/method_descriptor.rb +11 -1
  32. data/lib/google/protobuf/ffi/oneof_descriptor.rb +10 -0
  33. data/lib/google/protobuf/ffi/service_descriptor.rb +11 -1
  34. data/lib/google/protobuf/field_mask_pb.rb +1 -1
  35. data/lib/google/protobuf/message_exts.rb +4 -0
  36. data/lib/google/protobuf/plugin_pb.rb +1 -1
  37. data/lib/google/protobuf/source_context_pb.rb +1 -1
  38. data/lib/google/protobuf/struct_pb.rb +1 -1
  39. data/lib/google/protobuf/timestamp_pb.rb +1 -1
  40. data/lib/google/protobuf/type_pb.rb +1 -1
  41. data/lib/google/protobuf/wrappers_pb.rb +1 -1
  42. data/lib/google/protobuf_ffi.rb +3 -2
  43. data/lib/google/tasks/ffi.rake +1 -1
  44. metadata +23 -22
  45. data/ext/google/protobuf_c/wrap_memcpy.c +0 -29
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 348adc047870ec167a60d9eb6f1e6a908f7c9e853e14eb219bc20fa074a7061d
4
- data.tar.gz: f496b9914e0e71ae82c3ca75efe7111ee8cb68bae54b71b051b28d09dc5ee6b0
3
+ metadata.gz: cf13bbd6816402cb6bc77955bb3c1537b974a0e651c25f89ae5f190dd68ce3a2
4
+ data.tar.gz: 0e2bf38c0dbdf80a7b8c6e40ea8a2c74f5966e97934e53f0777245fcbc3029d2
5
5
  SHA512:
6
- metadata.gz: 5a3e9a110007df61109ae34af8582b5333aa3b2f069377ff305f2acd8e540aaf50dc8930403eb72c777e4252fa82508559814977f0065cdbc34c099bf6a2e6d2
7
- data.tar.gz: 2c1d7253020ee2bb238ef2a5b04fd722cfde1141a24ed41df6ac2906dff2a709eb1637d7053b4b5d22394dd8b03f7e26ff995f16c3573b86dc4b712d4eaee5f5
6
+ metadata.gz: e240066f46981277ac5307282a54c19d66979a184e178b9e29d49dd02a54927ecea038f2aa322df413d81577df386fce776c97ba7e016fe7338b6fac57d151ef
7
+ data.tar.gz: 0e7ac0cb21d0f085c3eee32221b5f4feacfdde57bba16d02e343cde2e73011191d714b866f2db55eb18d3970545d25892b861f040d86699cb00399d07e240a88
@@ -112,16 +112,9 @@ VALUE Convert_CheckStringUtf8(VALUE str) {
112
112
  // not mean that it is *valid* UTF-8. We have to check separately
113
113
  // whether it is valid.
114
114
  if (rb_enc_str_coderange(str) == ENC_CODERANGE_BROKEN) {
115
- // TODO: For now
116
- // we only warn for this case. We will remove the warning and throw an
117
- // exception below in the 30.x release
118
-
119
- rb_warn(
120
- "String is invalid UTF-8. This will be an error in a future "
121
- "version.");
122
- // VALUE exc = rb_const_get_at(
123
- // rb_cEncoding, rb_intern("InvalidByteSequenceError"));
124
- // rb_raise(exc, "String is invalid UTF-8");
115
+ VALUE exc = rb_const_get_at(
116
+ rb_cEncoding, rb_intern("InvalidByteSequenceError"));
117
+ rb_raise(exc, "String is invalid UTF-8");
125
118
  }
126
119
  } else {
127
120
  // Note: this will not duplicate underlying string data unless