google-protobuf 3.1.0-x86-mingw32 → 3.2.0-x86-mingw32

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.

Binary file
Binary file
Binary file
Binary file
Binary file
@@ -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, :slice,
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.1.0
4
+ version: 3.2.0
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Protobuf Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-27 00:00:00.000000000 Z
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: []
@@ -87,6 +93,7 @@ files:
87
93
  - lib/google/2.1/protobuf_c.so
88
94
  - lib/google/2.2/protobuf_c.so
89
95
  - lib/google/2.3/protobuf_c.so
96
+ - lib/google/2.4/protobuf_c.so
90
97
  - lib/google/protobuf.rb
91
98
  - lib/google/protobuf/any_pb.rb
92
99
  - lib/google/protobuf/api_pb.rb
@@ -106,7 +113,7 @@ files:
106
113
  - tests/stress.rb
107
114
  homepage: https://developers.google.com/protocol-buffers
108
115
  licenses:
109
- - BSD
116
+ - BSD-3-Clause
110
117
  metadata: {}
111
118
  post_install_message:
112
119
  rdoc_options: []
@@ -116,7 +123,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
123
  requirements:
117
124
  - - ">="
118
125
  - !ruby/object:Gem::Version
119
- version: '0'
126
+ version: '2.0'
127
+ - - "<"
128
+ - !ruby/object:Gem::Version
129
+ version: '2.5'
120
130
  required_rubygems_version: !ruby/object:Gem::Requirement
121
131
  requirements:
122
132
  - - ">="
@@ -124,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
134
  version: '0'
125
135
  requirements: []
126
136
  rubyforge_project:
127
- rubygems_version: 2.5.1
137
+ rubygems_version: 2.6.10
128
138
  signing_key:
129
139
  specification_version: 4
130
140
  summary: Protocol Buffers