google-protobuf 4.28.3-arm64-darwin → 4.29.0-arm64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 870a203cc10b38fd8032348419347a5a8ea65e708031dca8d2be4baa4a814af0
4
- data.tar.gz: e81d8a3577818ac80b87639316a9bcc33cba7f5fc38190e10b84e79f00888f99
3
+ metadata.gz: f98a48f764713eb7de63b11586a53a83700d03218700b5bea98562ea2b7cebda
4
+ data.tar.gz: 78782b61cb7e4803ddfa54b29bd63617f1104fb0c091ba8709ef24400ae72ff4
5
5
  SHA512:
6
- metadata.gz: a5f23e6506a18906fc8cb0c85b91579f547681efe75a1b0cd3d015481aa41eaf6aff15cc7529f9a55c59f518d4d31447544cf5a2b4b4d07f6703836eec4fd1d3
7
- data.tar.gz: 2241ff0eee1059e7e37b37800a499e5f74824ad062ea9202d2f75d4fa996d4d624483ffc55f2b7b0e9af7b0ca6f1926401231e6b162e533d95384f2570242b32
6
+ metadata.gz: 6d59b91b88e82c869e7ccf75e9a69eb5bd8ee67cad3559726b4a299fe58a4771156a7121e9bb19dacc4b25f261f32c768a23d361ae9d8488a8b141d8c5dc71f0
7
+ data.tar.gz: aac5aec8e954e9d8459ca8ead8c63a91678a5187ecdd4cdd65650560a71c7f8722f82bd44079d94ea83b7d18e0b7338fcc2466b7b58cca374517c2de905b984e
@@ -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"