google-protobuf 3.15.3 → 3.15.4

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: 46075d9778b236e0f1e75e03e1a9c6da3204864dceea47df28fdf1173eec0e00
4
- data.tar.gz: f2df957ec73d41fb5a3ba7c39e4bd955a972898342e37988fdcf751e863e50cd
3
+ metadata.gz: 46c2622ad6f76f6c6d68c895a9a3fd8fd4c017040ffd2692b7af45c3550537b1
4
+ data.tar.gz: a58556ee162ecbefaf6752b3ae2e2c8b237d771239cafdb6964770219ee85023
5
5
  SHA512:
6
- metadata.gz: 4fa77308872b2278593e036da2d896b13560b2c8c5ca2e297bdcd281480f4343b91f8ffa34f4f267cf81ec6feeee3c6b6ad9b02cc7bf96cda0e2f6c47e4cee72
7
- data.tar.gz: b365ff4f17e7e0ddeb4cb9f3cb17dc5aeece254d21754262af96584569fe8e3a39fd7b07fd3fd8b6e7fe93487eafd1c45b1272cacbb9d673870bb312260a8835
6
+ metadata.gz: 94cd6e0e0d2f179254448862f3987a54d184b3e0f2f73ea81738cb9498cc4a36c01bdf5bb8d5e454f1dfe4d6f313a9df2df544b72c45518673145b1d1461486c
7
+ data.tar.gz: 9e147c6e490a000b9a247e6911c52d5f55f824cbf4dfd1e57489139c97e25d4a829a17de3c7e8f71f3a953890784d76822dea6d9977a74363c2536f012d71d92
@@ -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);
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: ruby
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
@@ -123,7 +123,7 @@ homepage: https://developers.google.com/protocol-buffers
123
123
  licenses:
124
124
  - BSD-3-Clause
125
125
  metadata:
126
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.15.3/ruby
126
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.15.4/ruby
127
127
  post_install_message:
128
128
  rdoc_options: []
129
129
  require_paths:
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubygems_version: 3.2.11
142
+ rubygems_version: 3.2.13
143
143
  signing_key:
144
144
  specification_version: 4
145
145
  summary: Protocol Buffers