google-protobuf 3.15.1-x86-mingw32 → 3.15.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of google-protobuf might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec5c815076282cb80c611d9a32c6bfbc406405bcdedc063e394dca56545ac0bf
4
- data.tar.gz: b68e07f6c65893abb0d496b6736a36b05e5804c34bf2b8d3659bf5d6fa071ab7
3
+ metadata.gz: 5e0da29d93f84f55616583d245d47d1cf29abdc187416d63505a1d56d553a207
4
+ data.tar.gz: 9a81c456bff80ae3bb08e7fbb5f2cdd29cab6950e5e4892ccf6af18f52016515
5
5
  SHA512:
6
- metadata.gz: c25affa9ea57491645b6484738e907e38e1e26f0b001ad3afe2d778b17134c51e0ab532cef055cdb8625d1767d1c01768e5d368f36a9c2993fde582cff28a878
7
- data.tar.gz: a05e850981681b09e0a658fee23e175c03afbe5031e0a4e96a95155f2f35f8ac60b2861fd3a8fb75057673889f4f349da6961168b1c3c0dd68924d58af3ac615
6
+ metadata.gz: 20204a21fdb5bc5a21b220ab5d35f558d9956dd9b040f01937ffda6cb9292a622614430d3d757f122ef7a8f0bb8490ed4c9573f697eeadaf24057b98c46939ef
7
+ data.tar.gz: b9b3bf8978d753243a325c7b85c0b2aa1a6d40bec468f804ee35d139fe411efdaa2a6846b38c29c4bb03ab432d66ae3445cfc204bdaff3e1df9b0136dc304e29
@@ -960,16 +960,14 @@ static VALUE FieldDescriptor_subtype(VALUE _self) {
960
960
  static VALUE FieldDescriptor_get(VALUE _self, VALUE msg_rb) {
961
961
  FieldDescriptor* self = ruby_to_FieldDescriptor(_self);
962
962
  const upb_msgdef *m;
963
- const upb_msgdef *msg = Message_Get(msg_rb, &m);
964
- VALUE arena = Message_GetArena(msg_rb);
965
- upb_msgval msgval;
963
+
964
+ Message_Get(msg_rb, &m);
966
965
 
967
966
  if (m != upb_fielddef_containingtype(self->fielddef)) {
968
967
  rb_raise(cTypeError, "get method called on wrong message type");
969
968
  }
970
969
 
971
- msgval = upb_msg_get(msg, self->fielddef);
972
- return Convert_UpbToRuby(msgval, TypeInfo_get(self->fielddef), arena);
970
+ return Message_getfield(msg_rb, self->fielddef);
973
971
  }
974
972
 
975
973
  /*
@@ -292,7 +292,7 @@ static void Message_setfield(upb_msg* msg, const upb_fielddef* f, VALUE val,
292
292
  upb_msg_set(msg, f, msgval, arena);
293
293
  }
294
294
 
295
- static VALUE Message_getfield(VALUE _self, const upb_fielddef* f) {
295
+ VALUE Message_getfield(VALUE _self, const upb_fielddef* f) {
296
296
  Message* self = ruby_to_Message(_self);
297
297
  // This is a special-case: upb_msg_mutable() for map & array are logically
298
298
  // const (they will not change what is serialized) but physically
@@ -63,6 +63,9 @@ const upb_msg* Message_GetUpbMessage(VALUE value, const upb_msgdef* m,
63
63
  // object will reference |arena| and ensure that it outlives this object.
64
64
  VALUE Message_GetRubyWrapper(upb_msg* msg, const upb_msgdef* m, VALUE arena);
65
65
 
66
+ // Gets the given field from this message.
67
+ VALUE Message_getfield(VALUE _self, const upb_fielddef* f);
68
+
66
69
  // Implements #inspect for this message, printing the text to |b|.
67
70
  void Message_PrintMessage(StringBuilder* b, const upb_msg* msg,
68
71
  const upb_msgdef* m);
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.15.1
4
+ version: 3.15.2
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-19 00:00:00.000000000 Z
11
+ date: 2021-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler-dock
@@ -128,7 +128,7 @@ homepage: https://developers.google.com/protocol-buffers
128
128
  licenses:
129
129
  - BSD-3-Clause
130
130
  metadata:
131
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.15.1/ruby
131
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.15.2/ruby
132
132
  post_install_message:
133
133
  rdoc_options: []
134
134
  require_paths: