google-protobuf 3.19.0-x86_64-darwin → 3.19.4-x86_64-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 +4 -4
- data/ext/google/protobuf_c/message.c +2 -1
- data/ext/google/protobuf_c/ruby-upb.c +1 -1
- data/lib/google/2.5/protobuf_c.bundle +0 -0
- data/lib/google/2.6/protobuf_c.bundle +0 -0
- data/lib/google/2.7/protobuf_c.bundle +0 -0
- data/lib/google/3.0/protobuf_c.bundle +0 -0
- data/tests/basic.rb +8 -0
- metadata +7 -15
- data/lib/google/2.3/protobuf_c.bundle +0 -0
- data/lib/google/2.4/protobuf_c.bundle +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 292c7262c2f16c6fcafc72c56a5e781f9811d2df2863f1e1bc3cd382ad1ca96f
|
4
|
+
data.tar.gz: 0e64132eda7fe9fad7a4b24818f414e8cadf2e91d6413345975e218fb82c1cee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c40923bcab4a974ddb7b3c2af1756e674f1577a9508e24d1deccf0d59fb240f776b816872a196de829a1ad6b6c43a3e612cb1e6e0d0f8e99ff7e8a9eda9e5bfe
|
7
|
+
data.tar.gz: cdd9075bf942e4098723bc73e2c900f42353cf00e739eec8a9e18a7cddc0cb21ef0b09f39542095b15d1d898faf47f0e6c53a98f819442a6accbfb8bf0ed5bb0
|
@@ -1012,7 +1012,6 @@ static VALUE Message_decode_json(int argc, VALUE* argv, VALUE klass) {
|
|
1012
1012
|
*/
|
1013
1013
|
static VALUE Message_encode(VALUE klass, VALUE msg_rb) {
|
1014
1014
|
Message* msg = ruby_to_Message(msg_rb);
|
1015
|
-
upb_arena *arena = upb_arena_new();
|
1016
1015
|
const char *data;
|
1017
1016
|
size_t size;
|
1018
1017
|
|
@@ -1020,6 +1019,8 @@ static VALUE Message_encode(VALUE klass, VALUE msg_rb) {
|
|
1020
1019
|
rb_raise(rb_eArgError, "Message of wrong type.");
|
1021
1020
|
}
|
1022
1021
|
|
1022
|
+
upb_arena *arena = upb_arena_new();
|
1023
|
+
|
1023
1024
|
data = upb_encode(msg->msg, upb_msgdef_layout(msg->msgdef), arena,
|
1024
1025
|
&size);
|
1025
1026
|
|
@@ -5583,7 +5583,7 @@ static void make_layout(symtab_addctx *ctx, const upb_msgdef *m) {
|
|
5583
5583
|
}
|
5584
5584
|
|
5585
5585
|
/* Account for space used by hasbits. */
|
5586
|
-
l->size = div_round_up(hasbit, 8);
|
5586
|
+
l->size = div_round_up(hasbit + 1, 8);
|
5587
5587
|
|
5588
5588
|
/* Allocate non-oneof fields. */
|
5589
5589
|
for (upb_msg_field_begin(&it, m); !upb_msg_field_done(&it);
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/tests/basic.rb
CHANGED
@@ -71,6 +71,14 @@ module BasicTest
|
|
71
71
|
TestMessage.encode(msg)
|
72
72
|
end
|
73
73
|
|
74
|
+
def test_issue_9440
|
75
|
+
msg = HelloRequest.new
|
76
|
+
msg.id = 8
|
77
|
+
assert_equal 8, msg.id
|
78
|
+
msg.version = '1'
|
79
|
+
assert_equal 8, msg.id
|
80
|
+
end
|
81
|
+
|
74
82
|
def test_has_field
|
75
83
|
m = TestSingularFields.new
|
76
84
|
assert !m.has_singular_msg?
|
metadata
CHANGED
@@ -1,35 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-protobuf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.19.
|
4
|
+
version: 3.19.4
|
5
5
|
platform: x86_64-darwin
|
6
6
|
authors:
|
7
7
|
- Protobuf Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler-dock
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 1.1.0
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '2.0'
|
23
20
|
type: :development
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 1.1.0
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '2.0'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: rake-compiler
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,8 +80,6 @@ files:
|
|
86
80
|
- ext/google/protobuf_c/ruby-upb.c
|
87
81
|
- ext/google/protobuf_c/ruby-upb.h
|
88
82
|
- ext/google/protobuf_c/wrap_memcpy.c
|
89
|
-
- lib/google/2.3/protobuf_c.bundle
|
90
|
-
- lib/google/2.4/protobuf_c.bundle
|
91
83
|
- lib/google/2.5/protobuf_c.bundle
|
92
84
|
- lib/google/2.6/protobuf_c.bundle
|
93
85
|
- lib/google/2.7/protobuf_c.bundle
|
@@ -115,7 +107,7 @@ homepage: https://developers.google.com/protocol-buffers
|
|
115
107
|
licenses:
|
116
108
|
- BSD-3-Clause
|
117
109
|
metadata:
|
118
|
-
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.19.
|
110
|
+
source_code_uri: https://github.com/protocolbuffers/protobuf/tree/v3.19.4/ruby
|
119
111
|
post_install_message:
|
120
112
|
rdoc_options: []
|
121
113
|
require_paths:
|
@@ -124,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
116
|
requirements:
|
125
117
|
- - ">="
|
126
118
|
- !ruby/object:Gem::Version
|
127
|
-
version: '2.
|
119
|
+
version: '2.5'
|
128
120
|
- - "<"
|
129
121
|
- !ruby/object:Gem::Version
|
130
122
|
version: 3.1.dev
|
@@ -134,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
126
|
- !ruby/object:Gem::Version
|
135
127
|
version: '0'
|
136
128
|
requirements: []
|
137
|
-
rubygems_version: 3.
|
129
|
+
rubygems_version: 3.3.6
|
138
130
|
signing_key:
|
139
131
|
specification_version: 4
|
140
132
|
summary: Protocol Buffers
|
Binary file
|
Binary file
|