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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ca33b8f0bd85f47befdb4255d39e7bd45eae96c3cb52c294a88cec38e441a65
4
- data.tar.gz: a65e43adaa23f53160c773a82f3efb6c96f84ae8947a4db2f3a2e2604f428c03
3
+ metadata.gz: 70fd1d714d169c5dc5dd513912b73c45de100665940f313b2758358d28b597b1
4
+ data.tar.gz: 902b36cff007ed6130e1ab483fce9ee318b05d555a133c2ed0a3229dfc50af06
5
5
  SHA512:
6
- metadata.gz: 24d1983d0221c26aebc26d0fb2bb4af696921ef106ddd7b09219ad54374bf40759c545aad18765b97a1123523f5f1f435234a6b9f363a1789ef63213dd6d7832
7
- data.tar.gz: 82cc4715a7d9d6416b5d20a68eb7c4d9e4124e6bd786b0a65d21a630496b14ac037d82709981f943227fa67f7f60ecd2e637862277bc64cca0965d9568af85e6
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 = upb_JsonEncode_FormatEnumsAsIntegers;
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.1
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.1/ruby
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: