google-protobuf 3.15.3-x86-mingw32 → 3.15.4-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: 93b76c47fe555801365fb049f454f139cbad5e4bdeca3d229146cab95134cbb4
4
- data.tar.gz: b6d5520724e02ef61a2f995f3bbc46103c246836ddd02cda6604a735bf5f06d5
3
+ metadata.gz: 2011322937bd4267ce6cb196edc9b3d6f4d4c5f06ce8f023e36930af968b83a0
4
+ data.tar.gz: 47c2edce0c2ff66f3b89242d823c4a5cb75b960ef7b102c275ae58d96f60ceaa
5
5
  SHA512:
6
- metadata.gz: cba7b0482c0c86fd9ca41275c5ca03ef079c8249ee6ea24c2d75166ddc5b8397ea3d45b418e8738a8ee42a35f10391fe48c541db246cce84ca769132e2a02380
7
- data.tar.gz: 87c09672578091c479e3a0a53b1d3d4f3e229bade04cb161baa76865ef376920ec08077c923dc5dff74d1f8655d4d85ad2bca0cf77178e744c91dd7153485aed
6
+ metadata.gz: 91798a4cf155affee65bded439ba48d5a05ff90f8ddec7b09526ccf088d9750234d5f57e5f4a4220b63814c6acb97a57db430cb756617a33967b8bbdfb3956f5
7
+ data.tar.gz: d44cdb0c1e972a0e5489f6cad19715f15770718278b31fbb4fd7575924bc9fd05a8a5c309363714072751a044b49295b907e6621d79fbd399a332fcddf087581
@@ -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: x86-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: