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.
- checksums.yaml +4 -4
- data/ext/google/protobuf_c/convert.c +3 -10
- data/ext/google/protobuf_c/defs.c +469 -130
- data/ext/google/protobuf_c/extconf.rb +20 -10
- data/ext/google/protobuf_c/glue.c +63 -0
- data/ext/google/protobuf_c/map.c +76 -39
- data/ext/google/protobuf_c/message.c +96 -62
- data/ext/google/protobuf_c/protobuf.c +3 -2
- data/ext/google/protobuf_c/protobuf.h +0 -8
- data/ext/google/protobuf_c/repeated_field.c +75 -38
- data/ext/google/protobuf_c/ruby-upb.c +14055 -13540
- data/ext/google/protobuf_c/ruby-upb.h +4343 -2827
- data/ext/google/protobuf_c/third_party/utf8_range/utf8_range.c +21 -281
- data/ext/google/protobuf_c/third_party/utf8_range/utf8_range_neon.inc +117 -0
- data/ext/google/protobuf_c/third_party/utf8_range/utf8_range_sse.inc +272 -0
- data/lib/google/protobuf/any_pb.rb +1 -1
- data/lib/google/protobuf/api_pb.rb +2 -2
- data/lib/google/protobuf/descriptor_pb.rb +6 -2
- data/lib/google/protobuf/duration_pb.rb +1 -1
- data/lib/google/protobuf/empty_pb.rb +1 -1
- data/lib/google/protobuf/ffi/descriptor.rb +10 -0
- data/lib/google/protobuf/ffi/descriptor_pool.rb +3 -1
- data/lib/google/protobuf/ffi/enum_descriptor.rb +10 -0
- data/lib/google/protobuf/ffi/ffi.rb +0 -1
- data/lib/google/protobuf/ffi/field_descriptor.rb +16 -0
- data/lib/google/protobuf/ffi/file_descriptor.rb +36 -0
- data/lib/google/protobuf/ffi/internal/convert.rb +1 -5
- data/lib/google/protobuf/ffi/internal/pointer_helper.rb +2 -1
- data/lib/google/protobuf/ffi/map.rb +2 -2
- data/lib/google/protobuf/ffi/message.rb +2 -4
- data/lib/google/protobuf/ffi/method_descriptor.rb +11 -1
- data/lib/google/protobuf/ffi/oneof_descriptor.rb +10 -0
- data/lib/google/protobuf/ffi/service_descriptor.rb +11 -1
- data/lib/google/protobuf/field_mask_pb.rb +1 -1
- data/lib/google/protobuf/message_exts.rb +4 -0
- data/lib/google/protobuf/plugin_pb.rb +1 -1
- data/lib/google/protobuf/source_context_pb.rb +1 -1
- data/lib/google/protobuf/struct_pb.rb +1 -1
- data/lib/google/protobuf/timestamp_pb.rb +1 -1
- data/lib/google/protobuf/type_pb.rb +1 -1
- data/lib/google/protobuf/wrappers_pb.rb +1 -1
- data/lib/google/protobuf_ffi.rb +3 -2
- data/lib/google/tasks/ffi.rake +1 -1
- metadata +23 -22
- 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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cf13bbd6816402cb6bc77955bb3c1537b974a0e651c25f89ae5f190dd68ce3a2
|
|
4
|
+
data.tar.gz: 0e2bf38c0dbdf80a7b8c6e40ea8a2c74f5966e97934e53f0777245fcbc3029d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|