google-protobuf 3.18.0.rc.1-x86-linux → 3.18.2-x86-linux
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.
Potentially problematic release.
This version of google-protobuf might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/ext/google/protobuf_c/repeated_field.c +1 -0
- data/lib/google/2.5/protobuf_c.so +0 -0
- data/lib/google/2.6/protobuf_c.so +0 -0
- data/lib/google/2.7/protobuf_c.so +0 -0
- data/lib/google/3.0/protobuf_c.so +0 -0
- data/lib/google/protobuf/descriptor_dsl.rb +2 -2
- data/tests/basic.rb +12 -0
- metadata +10 -12
- data/lib/google/2.3/protobuf_c.so +0 -0
- data/lib/google/2.4/protobuf_c.so +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a222992500aaf57089f63c0e51d8c4c2fe6f0aed392e772056b61ba51b74821d
|
4
|
+
data.tar.gz: 4cdcdfe9d3bd6c0b5bd3a458e17d481fb931adaf38ed5e4fdc5edd9d3f330831
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64f7dc3952b3d0045821ca317bc09e86c35ea9fa044a87f0f13f8ce24728b8171f7ca42df960ad9c44b7e63e421f304bc269b3dc31ec3bd984e8d17991d661d7
|
7
|
+
data.tar.gz: c646caed2b8ff3a716bd32f097ca79e1c8646ce764cc5daaf19fd7c02153e40e248d19799f2e61b6bd72673c345f32e8f95acedfffb22ba5933cf0d9f9890f33
|
@@ -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,
|
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: x86-linux
|
6
6
|
authors:
|
7
7
|
- Protobuf Authors
|
8
|
-
autorequire:
|
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
|
@@ -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.so
|
104
|
-
- lib/google/2.4/protobuf_c.so
|
105
103
|
- lib/google/2.5/protobuf_c.so
|
106
104
|
- lib/google/2.6/protobuf_c.so
|
107
105
|
- lib/google/2.7/protobuf_c.so
|
@@ -129,8 +127,8 @@ 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.
|
133
|
-
post_install_message:
|
130
|
+
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.18.2/ruby
|
131
|
+
post_install_message:
|
134
132
|
rdoc_options: []
|
135
133
|
require_paths:
|
136
134
|
- lib
|
@@ -138,18 +136,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
136
|
requirements:
|
139
137
|
- - ">="
|
140
138
|
- !ruby/object:Gem::Version
|
141
|
-
version: '2.
|
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:
|
147
|
+
version: '0'
|
150
148
|
requirements: []
|
151
|
-
rubygems_version: 3.
|
152
|
-
signing_key:
|
149
|
+
rubygems_version: 3.3.4
|
150
|
+
signing_key:
|
153
151
|
specification_version: 4
|
154
152
|
summary: Protocol Buffers
|
155
153
|
test_files:
|
Binary file
|
Binary file
|