google-protobuf 3.1.0 → 3.2.0
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/defs.c +2 -2
- data/ext/google/protobuf_c/encode_decode.c +4 -4
- data/ext/google/protobuf_c/message.c +44 -0
- data/ext/google/protobuf_c/upb.c +3120 -1982
- data/ext/google/protobuf_c/upb.h +755 -471
- data/lib/google/protobuf/repeated_field.rb +1 -1
- data/tests/basic.rb +19 -0
- metadata +24 -18
@@ -74,7 +74,7 @@ module Google
|
|
74
74
|
:include?, :index, :inspect, :join,
|
75
75
|
:pack, :permutation, :product, :pretty_print, :pretty_print_cycle,
|
76
76
|
:rassoc, :repeated_combination, :repeated_permutation, :reverse,
|
77
|
-
:rindex, :rotate, :sample, :shuffle, :shelljoin,
|
77
|
+
:rindex, :rotate, :sample, :shuffle, :shelljoin,
|
78
78
|
:to_s, :transpose, :uniq, :|
|
79
79
|
|
80
80
|
|
data/tests/basic.rb
CHANGED
@@ -667,6 +667,13 @@ module BasicTest
|
|
667
667
|
end
|
668
668
|
end
|
669
669
|
|
670
|
+
def test_map_corruption
|
671
|
+
# This pattern led to a crash in a previous version of upb/protobuf.
|
672
|
+
m = MapMessage.new(map_string_int32: { "aaa" => 1 })
|
673
|
+
m.map_string_int32['podid'] = 2
|
674
|
+
m.map_string_int32['aaa'] = 3
|
675
|
+
end
|
676
|
+
|
670
677
|
def test_map_encode_decode
|
671
678
|
m = MapMessage.new(
|
672
679
|
:map_string_int32 => {"a" => 1, "b" => 2},
|
@@ -1181,5 +1188,17 @@ module BasicTest
|
|
1181
1188
|
m2 = MapMessage.decode_json(MapMessage.encode_json(m))
|
1182
1189
|
assert m == m2
|
1183
1190
|
end
|
1191
|
+
|
1192
|
+
def test_comparison_with_arbitrary_object
|
1193
|
+
assert MapMessage.new != nil
|
1194
|
+
end
|
1195
|
+
|
1196
|
+
def test_respond_to
|
1197
|
+
# This test fails with JRuby 1.7.23, likely because of an old JRuby bug.
|
1198
|
+
return if RUBY_PLATFORM == "java"
|
1199
|
+
msg = MapMessage.new
|
1200
|
+
assert msg.respond_to?(:map_string_int32)
|
1201
|
+
assert !msg.respond_to?(:bacon)
|
1202
|
+
end
|
1184
1203
|
end
|
1185
1204
|
end
|
metadata
CHANGED
@@ -1,71 +1,77 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-protobuf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
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: 2017-02-13 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
|
-
version:
|
19
|
+
version: 0.6.0
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.6.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake-compiler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.9.5
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.9.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: test-unit
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
45
48
|
- - ">="
|
46
49
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
50
|
+
version: 3.0.9
|
48
51
|
type: :development
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
55
|
+
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '3.0'
|
52
58
|
- - ">="
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
60
|
+
version: 3.0.9
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: rubygems-tasks
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
|
-
- - "
|
65
|
+
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
67
|
+
version: 0.2.4
|
62
68
|
type: :development
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
|
-
- - "
|
72
|
+
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
74
|
+
version: 0.2.4
|
69
75
|
description: Protocol Buffers are Google's data interchange format.
|
70
76
|
email: protobuf@googlegroups.com
|
71
77
|
executables: []
|
@@ -103,7 +109,7 @@ files:
|
|
103
109
|
- tests/stress.rb
|
104
110
|
homepage: https://developers.google.com/protocol-buffers
|
105
111
|
licenses:
|
106
|
-
- BSD
|
112
|
+
- BSD-3-Clause
|
107
113
|
metadata: {}
|
108
114
|
post_install_message:
|
109
115
|
rdoc_options: []
|
@@ -121,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
127
|
version: '0'
|
122
128
|
requirements: []
|
123
129
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.
|
130
|
+
rubygems_version: 2.6.10
|
125
131
|
signing_key:
|
126
132
|
specification_version: 4
|
127
133
|
summary: Protocol Buffers
|