google-protobuf 3.18.0 → 3.18.1

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 +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d2f2dcb01a739e3c119f6e7e7a5a5c941fd5ee836b10b910c5da89ebcdf12fc3
4
- data.tar.gz: 585efb56cdd7925d0e81ee2fb34c746c943fd4d4744a2213b1cefc5b98ee8f25
3
+ metadata.gz: dd0e8ed8ec0725c7a073fc2e55f68e6d2aea6d8c202262f9c0ae5ffb71cbe891
4
+ data.tar.gz: 0b7e9339a029994aede3ac5232f8747e6fda2aa2d723f94f0c6b98eff40c0117
5
5
  SHA512:
6
- metadata.gz: a076e9f325b025a642aecf4cfb964e78747e9e69ba55122f012bf82ee79146ea5ef9e299df52cda670c074ff46c6cb46d962cced6911ebd27877cd7f5c8db54e
7
- data.tar.gz: e30941aee70746583a3a0f48dd8303113d799e3d6d95653224800f398bd1188e1fa3dd20113e8d1fff6f4ee340cc44ac30c2714210981342d87bfb99b0a90126
6
+ metadata.gz: 3f6d374c5c3bc0dc53f64621c18a213a679650d8bca7a817e27293143b13c16771db3589c22c142a7663e10971192ada4e7a1a4588f803d64f1bafd9861f9828
7
+ data.tar.gz: c238c0606b5726669693fc500e5c3e9bf7295e4c120209184d09ef7f9d2c83ceb9751e5f14aab22253646e5012267b7d59f5cc1929bb5f38121246323f4e1095
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: ruby
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
@@ -124,7 +124,7 @@ homepage: https://developers.google.com/protocol-buffers
124
124
  licenses:
125
125
  - BSD-3-Clause
126
126
  metadata:
127
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.18.0/ruby
127
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.18.1/ruby
128
128
  post_install_message:
129
129
  rdoc_options: []
130
130
  require_paths:
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubygems_version: 3.2.27
143
+ rubygems_version: 3.2.28
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Protocol Buffers