google-protobuf 3.18.0.rc.1 → 3.18.2
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.
- checksums.yaml +4 -4
- data/ext/google/protobuf_c/repeated_field.c +1 -0
- data/lib/google/protobuf/descriptor_dsl.rb +2 -2
- data/tests/basic.rb +12 -0
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d2c077f2d8d8883097db40127dcc48f3de9b1b0aa6b3357c9099d6e4cc8d8555
|
|
4
|
+
data.tar.gz: a2e7debcf216e1dc75a1d142c74691fe71277bd86a0574dae814348d50960396
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96042233a673738b00ab5fd87f7803ad1c7b9955ecc66faeb67a44c57248ab2d3bb8e5402eefd7c8ec9de3a943147d8a496ad787933b01d6456e25cc8a2f05b7
|
|
7
|
+
data.tar.gz: 6c3343e8741cd668618da39b766137d682b20777e6d4467d5976a994a303b556562d414a612bd0cff85810c4d80cff93c861300b3a014edb258b04eb3b7c7539
|
|
@@ -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
|
|
|
@@ -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,
|
|
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.
|
|
4
|
+
version: 3.18.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Protobuf Authors
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
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
|
|
@@ -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.
|
|
127
|
+
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.18.2/ruby
|
|
128
128
|
post_install_message:
|
|
129
129
|
rdoc_options: []
|
|
130
130
|
require_paths:
|
|
@@ -136,11 +136,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
136
136
|
version: '2.3'
|
|
137
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
requirements:
|
|
139
|
-
- - "
|
|
139
|
+
- - ">="
|
|
140
140
|
- !ruby/object:Gem::Version
|
|
141
|
-
version:
|
|
141
|
+
version: '0'
|
|
142
142
|
requirements: []
|
|
143
|
-
rubygems_version: 3.
|
|
143
|
+
rubygems_version: 3.3.4
|
|
144
144
|
signing_key:
|
|
145
145
|
specification_version: 4
|
|
146
146
|
summary: Protocol Buffers
|