jitera-google-protobuf 3.21.12.pre.beta.1 → 3.21.12.pre.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/google/protobuf_c/message.c +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70fd1d714d169c5dc5dd513912b73c45de100665940f313b2758358d28b597b1
|
4
|
+
data.tar.gz: 902b36cff007ed6130e1ab483fce9ee318b05d555a133c2ed0a3229dfc50af06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47895541e16e438cda329d11f291358fde3406a34cab767167298ed23f74d2c0ef99444c06539fc686f454d5be27383b383da1163fd50c87b2515dc762e8b6e1
|
7
|
+
data.tar.gz: dacd07d3d15005728e1754e0fb4a09e2faaf7877816adac59226ad13da4eb6e5b4b74388be1429453bf5386b0980832afe3db178d7d42e9fb5a50c2df1c45cdd
|
@@ -1138,7 +1138,7 @@ static VALUE Message_encode(int argc, VALUE* argv, VALUE klass) {
|
|
1138
1138
|
*/
|
1139
1139
|
static VALUE Message_encode_json(int argc, VALUE* argv, VALUE klass) {
|
1140
1140
|
Message* msg = ruby_to_Message(argv[0]);
|
1141
|
-
int options =
|
1141
|
+
int options = 0;
|
1142
1142
|
char buf[1024];
|
1143
1143
|
size_t size;
|
1144
1144
|
upb_Status status;
|
@@ -1171,6 +1171,11 @@ static VALUE Message_encode_json(int argc, VALUE* argv, VALUE klass) {
|
|
1171
1171
|
Qfalse))) {
|
1172
1172
|
options |= upb_JsonEncode_EmitDefaults;
|
1173
1173
|
}
|
1174
|
+
|
1175
|
+
if (RTEST(rb_hash_lookup2(hash_args, ID2SYM(rb_intern("enums_as_integers")),
|
1176
|
+
Qfalse))) {
|
1177
|
+
options |= upb_JsonEncode_FormatEnumsAsIntegers;
|
1178
|
+
}
|
1174
1179
|
}
|
1175
1180
|
|
1176
1181
|
upb_Status_Clear(&status);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jitera-google-protobuf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.21.12.pre.beta.
|
4
|
+
version: 3.21.12.pre.beta.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Protobuf Authors
|
@@ -106,7 +106,7 @@ homepage: https://developers.google.com/protocol-buffers
|
|
106
106
|
licenses:
|
107
107
|
- BSD-3-Clause
|
108
108
|
metadata:
|
109
|
-
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.12.pre.beta.
|
109
|
+
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.21.12.pre.beta.3/ruby
|
110
110
|
post_install_message:
|
111
111
|
rdoc_options: []
|
112
112
|
require_paths:
|