google-protobuf 4.28.2-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: d521a550d7894486341b998acf2ec8b6c4b3ea0141c1031c1c68fe5cb4b7d750
4
- data.tar.gz: b8f7e150ecaa6d829e56782811be7c8f6fc3838b44c3ceb478e6efae4acaa26d
3
+ metadata.gz: f98a48f764713eb7de63b11586a53a83700d03218700b5bea98562ea2b7cebda
4
+ data.tar.gz: 78782b61cb7e4803ddfa54b29bd63617f1104fb0c091ba8709ef24400ae72ff4
5
5
  SHA512:
6
- metadata.gz: 9d3a1e501815145b42485386cf11359b2935f78300e3c560807b255d9a3a92dd06231d734281265e37b8e25baa1d11cb73238c7000f46d190e6690c7a5ac710b
7
- data.tar.gz: 16389af93c59826ba388f5356fcc50ab1c7bf16815e3940aacbc0e79e55904f3d8bafa307c1577b5b25ea608effb9ad7dfd94e4073f5286db555903cdd8afac7
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"