google-protobuf 3.18.0-x86_64-linux → 3.18.1-x86_64-linux

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.

Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/tests/basic.rb +12 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56599dd582ea09758b2d50735fa60f6647da23c1251c67adf32e6bcc6be880c9
4
- data.tar.gz: cca3accf45bfae9ffb8e0dd0b71b244c17de14e69913746b7c9850b4110e93b9
3
+ metadata.gz: c0b28a1431ce6112f1743be5a205bdc7d4991331904551ca2407e5c34337ffe4
4
+ data.tar.gz: 210dba0273f83ac73caed076f910c97e649f87fb23f7247ddb30ea273e80fc87
5
5
  SHA512:
6
- metadata.gz: a6866c6cd3b847175765320b4d4dab46bc835c96911010f72224650ac66fb0ab1fb71450640539eb3d51b1efefb5971b54d708a53c085d1fbd041788290f9df7
7
- data.tar.gz: 61bf715fdcfc809abde78d1ae395376b82ce216f3c85da8c7bf8edd57c790dca9e2da69b0090a04f5877247f0a73f10d1cb1ef1a1e6110182970a7b4772c6f35
6
+ metadata.gz: 2fb29413dede7b8e6f9172c346dd775e40af9725d171aa03f92754021279ee76c299448c4a5d26a426fcfa2d262c22f0e8e00fe22d74eb0faf67d668ec4049bb
7
+ data.tar.gz: 82975f04cb10c3d851b18712742c4dc9a03adf9ca8a27f64e1b039c778ba2a11dccb4379238aec4a64b5a234fc19f0277c1a40bc99282efdc09d3dce4df070ab
data/tests/basic.rb CHANGED
@@ -168,6 +168,17 @@ module BasicTest
168
168
  assert_equal nil, m.singular_msg
169
169
  end
170
170
 
171
+ def test_import_proto2
172
+ m = TestMessage.new
173
+ assert !m.has_optional_proto2_submessage?
174
+ m.optional_proto2_submessage = ::FooBar::Proto2::TestImportedMessage.new
175
+ assert m.has_optional_proto2_submessage?
176
+ assert TestMessage.descriptor.lookup('optional_proto2_submessage').has?(m)
177
+
178
+ m.clear_optional_proto2_submessage
179
+ assert !m.has_optional_proto2_submessage?
180
+ end
181
+
171
182
  def test_clear_repeated_fields
172
183
  m = TestMessage.new
173
184
 
@@ -487,6 +498,7 @@ module BasicTest
487
498
  :optional_int64=>0,
488
499
  :optional_msg=>nil,
489
500
  :optional_msg2=>nil,
501
+ :optional_proto2_submessage=>nil,
490
502
  :optional_string=>"foo",
491
503
  :optional_uint32=>0,
492
504
  :optional_uint64=>0,
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.18.0
4
+ version: 3.18.1
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-15 00:00:00.000000000 Z
11
+ date: 2021-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler-dock
@@ -129,7 +129,7 @@ homepage: https://developers.google.com/protocol-buffers
129
129
  licenses:
130
130
  - BSD-3-Clause
131
131
  metadata:
132
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.18.0/ruby
132
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.18.1/ruby
133
133
  post_install_message:
134
134
  rdoc_options: []
135
135
  require_paths: