google-protobuf 3.18.0-x86-linux → 3.18.1-x86-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: 5c9a9d7fbe37f854975ca4853cde131a25bbe4b79e5e3ecd571c2b107bcc5886
4
- data.tar.gz: e75283a92a3b5b4b3676780edb01e3c51320ef2249d2b4705e4170ca3bfabd54
3
+ metadata.gz: c9a8251054ae3b622a9bc9e8460679296aadf3db66e23626ce29651ce54832fb
4
+ data.tar.gz: bbc463d3b10635409c76765fdc054a3d6f8d56d9b8d66b9410514383fdea4627
5
5
  SHA512:
6
- metadata.gz: bc3af47ab4eb33281c9ab7135e0c454ed516f4a1a62c656b31b6b0f2c61dbabfe53520e1d2354651a0b08bc62275c1fa6606d428ae14d73bb5fa07fd062360d9
7
- data.tar.gz: 8e599bcfb4c140fc4c6aa60801f559416102e1c9afdd5a3416bbf37d77253e636533e4943a7e748437853dda3f6a9b061b83fdbe49ebe701bd1ed94dc7d0aead
6
+ metadata.gz: e502e3e5d468b8c8c4eea9d140cd280a04118e3bfb083ea6a7c81eda6317ad94f5c3f96c3265aa423acba17653455ccae8f900c01dfb2078f2d374edb44fad9b
7
+ data.tar.gz: 22908b1e6e50e2a2fcc34b58cf168ada30df3a1f84aabe4b46cc5657aec0d33e5d85c079774704363746d0f72ce95550f089e7d984ddd5eb8879841355036b2b
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-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: