google-protobuf 3.15.3-x64-mingw32 → 3.15.4-x64-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: fb56632a46e3aa467d834a8ee2fcacea6ab3d0ea83e11ce77e76212f447a4e56
4
- data.tar.gz: 7c48fbc9e096235fb19c68ebb04eef706f63f9f35519e00dc3043b1707ce0551
3
+ metadata.gz: ea2082db1e9d7d386de2c0b025de7d4f8f8886fd141db2bca8214675334ea463
4
+ data.tar.gz: 28b1240941cec4bfe78a4614c01515be6c85347993c703999646e04b14f78b2d
5
5
  SHA512:
6
- metadata.gz: 042c8d93c514c72c7634960e18f0eef8bf2159939104beab382f5533ef1b28df7f0e9c054ac6c1824e1a344774155d822980bf54c5f9be7e1fde77967f893262
7
- data.tar.gz: 70c5a20a1fa30d35afa8e32a6a3aff0d12717d66e7e21c9b3a860a07ec9d8a7ee8a4325aab5cd2fbd8058f070797ce14528585d14d4ab586fbcbb9a8aa928e65
6
+ metadata.gz: bfc5ac101c540fb4f9323681a9bbb4dcc014ff3f4ec7937c9ac67b37831e2ad6019ecd51a04eb5d7b476c42ab86c7d7e43b645731639162d59f4f3d4df7ee661
7
+ data.tar.gz: 81f0bd039eb1d14a60fd6bffe2caef9cb24a641efdee424e4f941e8e916b0d81f902fbc9b83e69e088c902dbdab0f96eff1dfb4cd22f8f21868e442d4a8d6d04
@@ -1250,7 +1250,9 @@ upb_msg* Message_deep_copy(const upb_msg* msg, const upb_msgdef* m,
1250
1250
 
1251
1251
  const upb_msg* Message_GetUpbMessage(VALUE value, const upb_msgdef* m,
1252
1252
  const char* name, upb_arena* arena) {
1253
- if (value == Qnil) return NULL;
1253
+ if (value == Qnil) {
1254
+ rb_raise(cTypeError, "nil message not allowed here.");
1255
+ }
1254
1256
 
1255
1257
  VALUE klass = CLASS_OF(value);
1256
1258
  VALUE desc_rb = rb_ivar_get(klass, descriptor_instancevar_interned);
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/tests/basic.rb CHANGED
@@ -52,10 +52,15 @@ module BasicTest
52
52
 
53
53
  outer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("Outer").msgclass
54
54
 
55
- outer_proto = outer.new(
55
+ outer.new(
56
56
  inners: []
57
- )
58
- outer_proto['inners'].to_s
57
+ )['inners'].to_s
58
+
59
+ assert_raise Google::Protobuf::TypeError do
60
+ outer.new(
61
+ inners: [nil]
62
+ ).to_s
63
+ end
59
64
  end
60
65
 
61
66
  def test_has_field
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.3
4
+ version: 3.15.4
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-25 00:00:00.000000000 Z
11
+ date: 2021-03-03 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.3/ruby
131
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.15.4/ruby
132
132
  post_install_message:
133
133
  rdoc_options: []
134
134
  require_paths: