google-protobuf 3.15.3-universal-darwin → 3.15.4-universal-darwin

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: 1c356fe98ab9a1aadd9845103acd28fbb12bc7d4941dc4a513c153f4fb1ad3ba
4
- data.tar.gz: ab019f9df5b49dede589adb6d2f099be1e72726aaaaed9dd914ea197a4b6436a
3
+ metadata.gz: 431e98a0b234fcdd82aa07af397001afa41ebe94b312cb6aabcbf7e74e1310d4
4
+ data.tar.gz: 5c815788f81bcb60e8a4e1f2e90c00699e46f88490110f4a36e2d226f9604f7d
5
5
  SHA512:
6
- metadata.gz: 62e332c28f044eff12256f3da2ec77617dfc2c5d5db024f530815905d784ac0ca7e06d54e5b2d329a6cd274e86b6364b18265b65e4b810666e2c2daf17751275
7
- data.tar.gz: b0db658b8f7db0129a38ba363dc62a260161f3929d8f025c14a6dbf7e4f8834706d295f5a0df22dc28e068dc56ba79ae8a1cf490e9e900e251224829478e9897
6
+ metadata.gz: 8e5e1644f03b56af9e11bc2ee837a971beb9b40e3e72896fd178989933e4845136a7d8e3bef96cd98028202cb46e51fe30eaaa163de41286b955b5368ff11e39
7
+ data.tar.gz: 6a554090608f251be8e59201fa897216b9946195ed2180d0b309ea2cb644268a7b3743e005b6c44a7fa320b9d985a2cde20f1732f62e38388035aec035a329f6
@@ -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: universal-darwin
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:
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  requirements: []
150
- rubygems_version: 3.2.11
150
+ rubygems_version: 3.2.13
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Protocol Buffers