google-protobuf 3.15.3 → 3.15.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of google-protobuf might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/ext/google/protobuf_c/message.c +3 -1
- data/tests/basic.rb +8 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46c2622ad6f76f6c6d68c895a9a3fd8fd4c017040ffd2692b7af45c3550537b1
|
4
|
+
data.tar.gz: a58556ee162ecbefaf6752b3ae2e2c8b237d771239cafdb6964770219ee85023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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
|
-
|
55
|
+
outer.new(
|
56
56
|
inners: []
|
57
|
-
)
|
58
|
-
|
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.
|
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-
|
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.
|
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.
|
142
|
+
rubygems_version: 3.2.13
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Protocol Buffers
|