google-protobuf 3.18.0.rc.1-universal-darwin → 3.18.2-universal-darwin

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: 19f0215a230ff6c7cc342a1d3d8933215d9a7f7f13f6c4fff9f3cf1916fe4430
4
- data.tar.gz: 7f96df0ff5b646062a2bfe41116ab360392f2dc3ac1ecf84d940d754d8652018
3
+ metadata.gz: b4e8c0d368d75c18636e6748fc878ebfd441d4edecf8b711eb2a8e79ae409d35
4
+ data.tar.gz: 57001381314b068030d87560b40784b236f82cea5e6595cf51d1bd516e04ea13
5
5
  SHA512:
6
- metadata.gz: e7db7af463fd938f7e9f62ada868757c75238d5925abebf7e9d01a5490934b0a7c0efe85b66c95b3f5a751d677b88690de62e160f37461596ced46ae0ebdc7cb
7
- data.tar.gz: 1c7bc8162c2889ed21f3c2605f25bf1756df2a0f859133dd2d3e322c6083dac552130058bc78a0e2216d4564f8615029faa22451a1933ae9fb935d2f97c83362
6
+ metadata.gz: caf4dfb2e8bf6681811503ac57634101fe2bced2066a42d4ab3bba9d4918ffc1725776c7672ccaa9d86b3f5c57ee1d3c363aaa71cab06c6999ec5ffe9dd83ab1
7
+ data.tar.gz: 0d52452eadad7e047fb1ce77d1bedb148fbb88c4d0213da06708a480f9239e1e9a1bcde29bb7407ff1d6f140b79c333b637fd6bcbc17874a70f8bbeec76eaeb1
@@ -551,6 +551,7 @@ VALUE RepeatedField_plus(VALUE _self, VALUE list) {
551
551
  RepeatedField* dupped = ruby_to_RepeatedField(dupped_);
552
552
  upb_array *dupped_array = RepeatedField_GetMutable(dupped_);
553
553
  upb_arena* arena = Arena_get(dupped->arena);
554
+ Arena_fuse(list_rptfield->arena, arena);
554
555
  int size = upb_array_size(list_rptfield->array);
555
556
  int i;
556
557
 
Binary file
Binary file
Binary file
Binary file
@@ -301,8 +301,8 @@ module Google
301
301
  internal_add_field(:LABEL_REQUIRED, name, type, number, type_class, options)
302
302
  end
303
303
 
304
- def repeated(name, type, number, type_class = nil)
305
- internal_add_field(:LABEL_REPEATED, name, type, number, type_class, nil)
304
+ def repeated(name, type, number, type_class = nil, options=nil)
305
+ internal_add_field(:LABEL_REPEATED, name, type, number, type_class, options)
306
306
  end
307
307
 
308
308
  def oneof(name, &block)
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.rc.1
4
+ version: 3.18.2
5
5
  platform: universal-darwin
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-19 00:00:00.000000000 Z
11
+ date: 2022-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler-dock
@@ -100,8 +100,6 @@ files:
100
100
  - ext/google/protobuf_c/ruby-upb.c
101
101
  - ext/google/protobuf_c/ruby-upb.h
102
102
  - ext/google/protobuf_c/wrap_memcpy.c
103
- - lib/google/2.3/protobuf_c.bundle
104
- - lib/google/2.4/protobuf_c.bundle
105
103
  - lib/google/2.5/protobuf_c.bundle
106
104
  - lib/google/2.6/protobuf_c.bundle
107
105
  - lib/google/2.7/protobuf_c.bundle
@@ -129,7 +127,7 @@ homepage: https://developers.google.com/protocol-buffers
129
127
  licenses:
130
128
  - BSD-3-Clause
131
129
  metadata:
132
- source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.18.0-rc1/ruby
130
+ source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.18.2/ruby
133
131
  post_install_message:
134
132
  rdoc_options: []
135
133
  require_paths:
@@ -138,17 +136,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
138
136
  requirements:
139
137
  - - ">="
140
138
  - !ruby/object:Gem::Version
141
- version: '2.3'
139
+ version: '2.5'
142
140
  - - "<"
143
141
  - !ruby/object:Gem::Version
144
142
  version: 3.1.dev
145
143
  required_rubygems_version: !ruby/object:Gem::Requirement
146
144
  requirements:
147
- - - ">"
145
+ - - ">="
148
146
  - !ruby/object:Gem::Version
149
- version: 1.3.1
147
+ version: '0'
150
148
  requirements: []
151
- rubygems_version: 3.2.26
149
+ rubygems_version: 3.3.4
152
150
  signing_key:
153
151
  specification_version: 4
154
152
  summary: Protocol Buffers
Binary file
Binary file