google-protobuf 4.28.2-aarch64-linux → 4.29.0-aarch64-linux

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11f3027a92d90a0734b66ca64c3add02f840a825c60084e48d165f2634c46578
4
- data.tar.gz: 20e680c3c2b9dd0b3cbacbda4616a0d6ab357ad16c3a050a165c2add6000c4c5
3
+ metadata.gz: b1173907911c3c1679ddcb394a008a8804d68a78c758524504e3c9225fa0f861
4
+ data.tar.gz: 7872ef2a97badccc8a887f658402c828277b5e05224067c2919859f926798012
5
5
  SHA512:
6
- metadata.gz: a29ac7966fda880bb753a464d871388dd3b95f2ff3a81bb4b4c379fd49cc6c660cebc36eb27f652eb8efcd36c66c8ec3fa7377b0a9fa603ddfd2a4f41cdaf245
7
- data.tar.gz: 6c7a6249673e74b4435ba71afedc48394634b16b3cc901b392e67d0b78c667a2cbe0ba275e7ccb697bb3312918a0f65e5291512b425d53d8cfe6a8da6843b8fd
6
+ metadata.gz: 95538ae513f8e389c2ddd2e0d7efd8139407fd49bdec10d7c55f6a3ad99fdd582e4da1f36c3ce2b9f3af9c3bb539427e4d2126fd71119293ce980a565b7d831d
7
+ data.tar.gz: 7bc974e30e5f6b85b9073c39f1c4baf84ee10f42580c4424b9f81c744c01363359c7b7412ee1c44bc9427afbd4b860a6f8a03f399f600196d07ff2610358c3c5
@@ -7,7 +7,6 @@
7
7
 
8
8
  #include <ctype.h>
9
9
  #include <errno.h>
10
- #include <ruby/version.h>
11
10
 
12
11
  #include "convert.h"
13
12
  #include "message.h"
@@ -1038,11 +1038,21 @@ static VALUE Message_decode_json(int argc, VALUE* argv, VALUE klass) {
1038
1038
 
1039
1039
  upb_Status_Clear(&status);
1040
1040
  const upb_DefPool* pool = upb_FileDef_Pool(upb_MessageDef_File(msg->msgdef));
1041
- if (!upb_JsonDecode(RSTRING_PTR(data), RSTRING_LEN(data),
1042
- (upb_Message*)msg->msg, msg->msgdef, pool, options,
1043
- Arena_get(msg->arena), &status)) {
1044
- rb_raise(cParseError, "Error occurred during parsing: %s",
1045
- upb_Status_ErrorMessage(&status));
1041
+
1042
+ int result = upb_JsonDecodeDetectingNonconformance(
1043
+ RSTRING_PTR(data), RSTRING_LEN(data), (upb_Message*)msg->msg,
1044
+ msg->msgdef, pool, options, Arena_get(msg->arena), &status);
1045
+
1046
+ switch (result) {
1047
+ case kUpb_JsonDecodeResult_Ok:
1048
+ break;
1049
+ case kUpb_JsonDecodeResult_OkWithEmptyStringNumerics:
1050
+ rb_warn("%s", upb_Status_ErrorMessage(&status));
1051
+ break;
1052
+ case kUpb_JsonDecodeResult_Error:
1053
+ rb_raise(cParseError, "Error occurred during parsing: %s",
1054
+ upb_Status_ErrorMessage(&status));
1055
+ break;
1046
1056
  }
1047
1057
 
1048
1058
  return msg_rb;
@@ -7,8 +7,6 @@
7
7
 
8
8
  #include "protobuf.h"
9
9
 
10
- #include <ruby/version.h>
11
-
12
10
  #include "defs.h"
13
11
  #include "map.h"
14
12
  #include "message.h"