google-protobuf 3.1.0.0.pre-java → 3.2.0.1-java
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/lib/google/protobuf/repeated_field.rb +1 -1
- data/lib/google/protobuf_java.jar +0 -0
- data/tests/basic.rb +19 -0
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03a59cd87af6dbba007f8f12e0ac91477469829f
|
4
|
+
data.tar.gz: 2502195825b055fca07d404e11f18b1a43ea3407
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48e19904038c5738928c81247536d13d671cc28b1eca3b08c2f8f6ab1412b8ce68592f93c5232553cc12995286c326b3c4570fa5aed8bba8afcfbb415721d1cb
|
7
|
+
data.tar.gz: 3494f1d2b1c8097974dff22a5dc22bdd239a29d2c4e76a149e1405d763099097476b55c5405f2ff2dfda164368015e3aa10b41d66f2d2289868eb0a8a69fd596
|
@@ -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
|
|
Binary file
|
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,14 +1,14 @@
|
|
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.1
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Protobuf Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -28,6 +28,9 @@ dependencies:
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
30
|
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.0'
|
33
|
+
- - ">="
|
31
34
|
- !ruby/object:Gem::Version
|
32
35
|
version: 3.0.9
|
33
36
|
name: test-unit
|
@@ -36,6 +39,9 @@ dependencies:
|
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
41
|
- - "~>"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '3.0'
|
44
|
+
- - ">="
|
39
45
|
- !ruby/object:Gem::Version
|
40
46
|
version: 3.0.9
|
41
47
|
- !ruby/object:Gem::Dependency
|
@@ -78,7 +84,7 @@ files:
|
|
78
84
|
- tests/stress.rb
|
79
85
|
homepage: https://developers.google.com/protocol-buffers
|
80
86
|
licenses:
|
81
|
-
- BSD
|
87
|
+
- BSD-3-Clause
|
82
88
|
metadata: {}
|
83
89
|
post_install_message:
|
84
90
|
rdoc_options: []
|
@@ -91,9 +97,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
97
|
version: '0'
|
92
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
99
|
requirements:
|
94
|
-
- - "
|
100
|
+
- - ">="
|
95
101
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
102
|
+
version: '0'
|
97
103
|
requirements: []
|
98
104
|
rubyforge_project:
|
99
105
|
rubygems_version: 2.4.8
|