protobuf 2.7.9-java → 2.7.10-java

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -14,4 +14,8 @@ Gemfile.lock
14
14
  tmp/*
15
15
  ext/defs
16
16
  ext/out
17
- ext/ruby_generator/protoc-ruby
17
+ ext/ruby_generator/protoc-ruby
18
+ .ruby-gemset
19
+ .ruby-version
20
+ ext/ruby_generator/gdb.run
21
+ ext/ruby_generator/protoc-ruby.dSYM
@@ -36,16 +36,12 @@ bool RubyGenerator::Generate(const FileDescriptor* file,
36
36
  PrintImportRequires();
37
37
 
38
38
  PrintEnclosingNamespaceModules();
39
+ StoreExtensionFields(file_);
39
40
 
40
41
  PrintEnumsForFileDescriptor(file_, false);
41
- PrintNewLine();
42
42
  PrintMessagesForFileDescriptor(file_, false);
43
- PrintNewLine();
44
-
45
43
  PrintMessagesForFileDescriptor(file_, true);
46
-
47
44
  PrintDanglingExtendedMessages();
48
-
49
45
  PrintServices();
50
46
 
51
47
  PrintEnclosingNamespaceModuleEnds();
@@ -72,6 +68,7 @@ void RubyGenerator::PrintEnclosingNamespaceModules() const {
72
68
 
73
69
  printer_->Print(data, "module $ns$");
74
70
  PrintNewLine();
71
+ PrintNewLine();
75
72
  printer_->Indent();
76
73
  }
77
74
  }
@@ -82,6 +79,7 @@ void RubyGenerator::PrintEnclosingNamespaceModuleEnds() const {
82
79
  printer_->Outdent();
83
80
  printer_->Print("end");
84
81
  PrintNewLine();
82
+ PrintNewLine();
85
83
  }
86
84
  }
87
85
 
@@ -100,12 +98,12 @@ void RubyGenerator::PrintMessagesForFileDescriptor(const FileDescriptor* descrip
100
98
  }
101
99
  else {
102
100
  PrintComment("Message Classes", true);
103
- StoreExtensionFields(descriptor);
104
101
  }
105
102
 
106
103
  for (int i = 0; i < descriptor->message_type_count(); i++) {
107
104
  PrintMessage(descriptor->message_type(i), print_fields);
108
105
  }
106
+ PrintNewLine();
109
107
  }
110
108
  }
111
109
 
@@ -350,6 +348,7 @@ void RubyGenerator::PrintEnumsForFileDescriptor(const FileDescriptor* descriptor
350
348
  for (int i = 0; i < descriptor->enum_type_count(); i++) {
351
349
  PrintEnum(descriptor->enum_type(i));
352
350
  }
351
+ PrintNewLine();
353
352
  }
354
353
  }
355
354
 
@@ -369,7 +368,6 @@ void RubyGenerator::PrintEnum(const EnumDescriptor* descriptor) const {
369
368
  printer_->Outdent();
370
369
  printer_->Print(data, "end");
371
370
  PrintNewLine();
372
-
373
371
  PrintNewLine();
374
372
  }
375
373
 
data/lib/protobuf.rb CHANGED
@@ -7,12 +7,6 @@ require 'active_support/core_ext/object/try'
7
7
  require 'active_support/inflector'
8
8
  require 'active_support/json'
9
9
 
10
- begin # master
11
- require 'active_support/core_ext/object/deep_dup'
12
- rescue LoadError # 3.2.x
13
- require 'active_support/core_ext/hash/deep_dup'
14
- end
15
-
16
10
  module Protobuf
17
11
 
18
12
  # See Protobuf#connector_type documentation.
@@ -5,4 +5,5 @@ module Protobuf
5
5
  class TagCollisionError < Error; end
6
6
  class SerializationError < StandardError; end
7
7
  class FieldNotDefinedError < StandardError; end
8
+ class DuplicateFieldNameError < StandardError; end
8
9
  end
@@ -27,8 +27,14 @@ module Protobuf
27
27
  field_array = options[:extension] ? extension_fields : fields
28
28
  field_name_hash = options[:extension] ? extension_field_name_to_tag : field_name_to_tag
29
29
 
30
- if field_array[tag]
31
- raise TagCollisionError, %!{Field number #{tag} has already been used in "#{self.name}" by field "#{fname}".!
30
+ previous_tag_field = get_field_by_tag(tag) || get_ext_field_by_tag(tag)
31
+ if previous_tag_field
32
+ raise TagCollisionError, %!Field number #{tag} has already been used in "#{self.name}" by field "#{fname}".!
33
+ end
34
+
35
+ previous_name_field = get_field_by_name(fname) || get_ext_field_by_name(fname)
36
+ if previous_name_field
37
+ raise DuplicateFieldNameError, %!Field name #{fname} has already been used in "#{self.name}".!
32
38
  end
33
39
 
34
40
  field_definition = ::Protobuf::Field.build(self, rule, type, fname, tag, options)
@@ -13,7 +13,7 @@ module Protobuf
13
13
  #
14
14
  def initialize(options = {})
15
15
  @available_workers = []
16
- @options = options.deep_dup
16
+ @options = options.dup
17
17
  @expected_worker_count = @options[:threads]
18
18
  @context = ::ZMQ::Context.new
19
19
  @poller = ::ZMQ::Poller.new
@@ -25,10 +25,10 @@ module Protobuf
25
25
  #
26
26
  def poll
27
27
  if frontend.nil?
28
- if local_workers_have_started?
28
+ if local_workers_have_started?
29
29
  # only open the front end when the workers are done booting
30
30
  log_info { "Starting frontend socket in broker, all workers ready!" }
31
- setup_frontend
31
+ setup_frontend
32
32
  end
33
33
  else
34
34
  # Start checking the poller after startup
@@ -1,4 +1,4 @@
1
1
  module Protobuf
2
- VERSION = '2.7.9'
2
+ VERSION = '2.7.10'
3
3
  PROTOC_VERSION = '2.4.1'
4
4
  end
@@ -2,6 +2,54 @@ require 'spec_helper'
2
2
 
3
3
  describe Protobuf::Message do
4
4
 
5
+ describe '.define_field' do
6
+ context 'when defining a field with a tag that has already been used' do
7
+ it 'raises a TagCollisionError' do
8
+ expect {
9
+ Class.new(Protobuf::Message) do
10
+ define_field :optional, ::Protobuf::Field::Int32Field, :foo, 1, {}
11
+ define_field :optional, ::Protobuf::Field::Int32Field, :bar, 1, {}
12
+ end
13
+ }.to raise_error(Protobuf::TagCollisionError, /Field number 1 has already been used/)
14
+ end
15
+ end
16
+
17
+ context 'when defining an extension field with a tag that has already been used' do
18
+ it 'raises a TagCollisionError' do
19
+ expect {
20
+ Class.new(Protobuf::Message) do
21
+ extensions 100...110
22
+ define_field :optional, ::Protobuf::Field::Int32Field, :foo, 100, {}
23
+ define_field :optional, ::Protobuf::Field::Int32Field, :bar, 100, :extension => true
24
+ end
25
+ }.to raise_error(Protobuf::TagCollisionError, /Field number 100 has already been used/)
26
+ end
27
+ end
28
+
29
+ context 'when defining a field with a name that has already been used' do
30
+ it 'raises a DuplicateFieldNameError' do
31
+ expect {
32
+ Class.new(Protobuf::Message) do
33
+ define_field :optional, ::Protobuf::Field::Int32Field, :foo, 1, {}
34
+ define_field :optional, ::Protobuf::Field::Int32Field, :foo, 2, {}
35
+ end
36
+ }.to raise_error(Protobuf::DuplicateFieldNameError, /Field name foo has already been used/)
37
+ end
38
+ end
39
+
40
+ context 'when defining an extension field with a name that has already been used' do
41
+ it 'raises a DuplicateFieldNameError' do
42
+ expect {
43
+ Class.new(Protobuf::Message) do
44
+ extensions 100...110
45
+ define_field :optional, ::Protobuf::Field::Int32Field, :foo, 1, {}
46
+ define_field :optional, ::Protobuf::Field::Int32Field, :foo, 100, :extension => true
47
+ end
48
+ }.to raise_error(Protobuf::DuplicateFieldNameError, /Field name foo has already been used/)
49
+ end
50
+ end
51
+ end
52
+
5
53
  describe '#initialize' do
6
54
  it "initializes the enum getter to 0" do
7
55
  test_enum = Test::EnumTestMessage.new
@@ -9,6 +9,7 @@ require 'protobuf/message'
9
9
  require 'test/resource.pb'
10
10
 
11
11
  module Test
12
+
12
13
  ##
13
14
  # Enum Classes
14
15
  #
@@ -32,6 +33,7 @@ module Test
32
33
  repeated ::Test::EnumTestType, :repeated_enums, 3
33
34
  end
34
35
 
36
+
35
37
  ##
36
38
  # Extended Messages
37
39
  #
@@ -40,3 +42,4 @@ module Test
40
42
  end
41
43
 
42
44
  end
45
+
@@ -1,6 +1,8 @@
1
1
  package test;
2
2
  import 'test/resource.proto';
3
3
 
4
+ // Test extending another message from an imported file.
5
+
4
6
  enum EnumTestType {
5
7
  ONE = 1;
6
8
  TWO = 2;
@@ -0,0 +1,20 @@
1
+ ##
2
+ # This file is auto-generated. DO NOT EDIT!
3
+ #
4
+
5
+ ##
6
+ # Imports
7
+ #
8
+ require 'test/resource.pb'
9
+
10
+ module Test
11
+
12
+ ##
13
+ # Extended Messages
14
+ #
15
+ class ::Test::Resource
16
+ optional ::Protobuf::Field::Int64Field, :deleted_at, 300, :extension => true
17
+ end
18
+
19
+ end
20
+
@@ -0,0 +1,10 @@
1
+ package test;
2
+ import 'test/resource.proto';
3
+
4
+ // Test that we will re-open a class and add
5
+ // extension fields to it even if there are no
6
+ // message or enum definitions in this FileDescriptor.
7
+
8
+ extend test.Resource {
9
+ optional int64 deleted_at = 300;
10
+ }
@@ -0,0 +1,36 @@
1
+ ##
2
+ # This file is auto-generated. DO NOT EDIT!
3
+ #
4
+ require 'protobuf/message'
5
+
6
+ module Test
7
+
8
+ ##
9
+ # Message Classes
10
+ #
11
+ class Header < ::Protobuf::Message
12
+ class Type < ::Protobuf::Enum
13
+ define :PayloadTypeA, 1
14
+ define :PayloadTypeB, 2
15
+ end
16
+
17
+ end
18
+ class PayloadA < ::Protobuf::Message; end
19
+ class PayloadB < ::Protobuf::Message; end
20
+
21
+ ##
22
+ # Message Fields
23
+ #
24
+ class Header
25
+ required ::Test::Header::Type, :type, 1
26
+
27
+ # Extension Fields
28
+ extensions 100...536870912
29
+ optional ::Test::PayloadA, :payload, 100, :extension => true
30
+ # UNCOMMENT TO TEST FAILING WITH MULTIPLE FIELDS
31
+ # optional ::Test::PayloadB, :payload, 101, :extension => true
32
+ end
33
+
34
+
35
+ end
36
+
@@ -0,0 +1,23 @@
1
+ package test;
2
+
3
+ message Header {
4
+ extensions 100 to max;
5
+ enum Type {
6
+ PayloadTypeA = 1;
7
+ PayloadTypeB = 2;
8
+ }
9
+ required Type type = 1;
10
+ }
11
+
12
+ message PayloadA {
13
+ extend Header {
14
+ optional PayloadA payload = 100;
15
+ }
16
+ }
17
+
18
+ message PayloadB {
19
+ extend Header {
20
+ // UNCOMMENT TO TEST FAILING WITH MULTIPLE FIELDS
21
+ // optional PayloadB payload = 101;
22
+ }
23
+ }
@@ -5,6 +5,7 @@ require 'protobuf/message'
5
5
  require 'protobuf/rpc/service'
6
6
 
7
7
  module Test
8
+
8
9
  ##
9
10
  # Enum Classes
10
11
  #
@@ -55,6 +56,8 @@ module Test
55
56
  optional ::Protobuf::Field::BoolField, :ext_is_hidden, 101, :extension => true
56
57
  optional ::Test::Searchable::SearchType, :ext_search_type, 102, :default => ::Test::Searchable::SearchType::FLAT, :extension => true
57
58
  optional ::Protobuf::Field::BoolField, :ext_nested_in_level_one, 105, :extension => true
59
+ optional ::Protobuf::Field::BoolField, :ext_dup_field, 106, :extension => true
60
+ optional ::Protobuf::Field::BoolField, :ext_dup_field, 107, :extension => true
58
61
  end
59
62
 
60
63
  class MessageParent
@@ -85,6 +88,7 @@ module Test
85
88
  optional ::Protobuf::Field::Int64Field, :bar, 101, :extension => true
86
89
  end
87
90
 
91
+
88
92
  ##
89
93
  # Services
90
94
  #
@@ -92,3 +96,4 @@ module Test
92
96
  rpc :find, ::Test::ResourceFindRequest, ::Test::Resource
93
97
  end
94
98
  end
99
+
@@ -54,12 +54,17 @@ message Nested {
54
54
 
55
55
  extend Resource {
56
56
  optional bool ext_nested_in_level_one = 105;
57
+ optional bool ext_dup_field = 106;
57
58
  }
58
59
  }
59
60
 
60
61
  extend NestedLevelOne {
61
62
  optional bool ext_nested_level_one = 100;
62
63
  }
64
+
65
+ extend Resource {
66
+ optional bool ext_dup_field = 107;
67
+ }
63
68
  }
64
69
 
65
70
  extend Nested {
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: protobuf
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.7.9
5
+ version: 2.7.10
6
6
  platform: java
7
7
  authors:
8
8
  - BJ Neilsen
@@ -10,240 +10,149 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-04-07 00:00:00.000000000 Z
13
+ date: 2013-04-16 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
17
- version_requirements: !ruby/object:Gem::Requirement
17
+ version_requirements: &5750 !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ">="
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: !binary |-
22
- MA==
23
- none: false
24
- requirement: !ruby/object:Gem::Requirement
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- version: !binary |-
29
- MA==
21
+ version: '0'
30
22
  none: false
23
+ requirement: *5750
31
24
  prerelease: false
32
25
  type: :runtime
33
26
  - !ruby/object:Gem::Dependency
34
27
  name: ffi
35
- version_requirements: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: !binary |-
40
- MA==
41
- none: false
42
- requirement: !ruby/object:Gem::Requirement
28
+ version_requirements: &5768 !ruby/object:Gem::Requirement
43
29
  requirements:
44
- - - ">="
30
+ - - ! '>='
45
31
  - !ruby/object:Gem::Version
46
- version: !binary |-
47
- MA==
32
+ version: '0'
48
33
  none: false
34
+ requirement: *5768
49
35
  prerelease: false
50
36
  type: :runtime
51
37
  - !ruby/object:Gem::Dependency
52
38
  name: multi_json
53
- version_requirements: !ruby/object:Gem::Requirement
39
+ version_requirements: &5784 !ruby/object:Gem::Requirement
54
40
  requirements:
55
- - - ">="
41
+ - - ! '>='
56
42
  - !ruby/object:Gem::Version
57
- version: !binary |-
58
- MA==
59
- none: false
60
- requirement: !ruby/object:Gem::Requirement
61
- requirements:
62
- - - ">="
63
- - !ruby/object:Gem::Version
64
- version: !binary |-
65
- MA==
43
+ version: '0'
66
44
  none: false
45
+ requirement: *5784
67
46
  prerelease: false
68
47
  type: :runtime
69
48
  - !ruby/object:Gem::Dependency
70
49
  name: thor
71
- version_requirements: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: !binary |-
76
- MA==
77
- none: false
78
- requirement: !ruby/object:Gem::Requirement
50
+ version_requirements: &5800 !ruby/object:Gem::Requirement
79
51
  requirements:
80
- - - ">="
52
+ - - ! '>='
81
53
  - !ruby/object:Gem::Version
82
- version: !binary |-
83
- MA==
54
+ version: '0'
84
55
  none: false
56
+ requirement: *5800
85
57
  prerelease: false
86
58
  type: :runtime
87
59
  - !ruby/object:Gem::Dependency
88
60
  name: eventmachine
89
- version_requirements: !ruby/object:Gem::Requirement
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- version: !binary |-
94
- MA==
95
- none: false
96
- requirement: !ruby/object:Gem::Requirement
61
+ version_requirements: &5816 !ruby/object:Gem::Requirement
97
62
  requirements:
98
- - - ">="
63
+ - - ! '>='
99
64
  - !ruby/object:Gem::Version
100
- version: !binary |-
101
- MA==
65
+ version: '0'
102
66
  none: false
67
+ requirement: *5816
103
68
  prerelease: false
104
69
  type: :development
105
70
  - !ruby/object:Gem::Dependency
106
71
  name: ffi-rzmq
107
- version_requirements: !ruby/object:Gem::Requirement
72
+ version_requirements: &5834 !ruby/object:Gem::Requirement
108
73
  requirements:
109
- - - ">="
74
+ - - ! '>='
110
75
  - !ruby/object:Gem::Version
111
- version: !binary |-
112
- MA==
113
- none: false
114
- requirement: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- version: !binary |-
119
- MA==
76
+ version: '0'
120
77
  none: false
78
+ requirement: *5834
121
79
  prerelease: false
122
80
  type: :development
123
81
  - !ruby/object:Gem::Dependency
124
82
  name: pry
125
- version_requirements: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - ">="
128
- - !ruby/object:Gem::Version
129
- version: !binary |-
130
- MA==
131
- none: false
132
- requirement: !ruby/object:Gem::Requirement
83
+ version_requirements: &5850 !ruby/object:Gem::Requirement
133
84
  requirements:
134
- - - ">="
85
+ - - ! '>='
135
86
  - !ruby/object:Gem::Version
136
- version: !binary |-
137
- MA==
87
+ version: '0'
138
88
  none: false
89
+ requirement: *5850
139
90
  prerelease: false
140
91
  type: :development
141
92
  - !ruby/object:Gem::Dependency
142
93
  name: pry-nav
143
- version_requirements: !ruby/object:Gem::Requirement
94
+ version_requirements: &5866 !ruby/object:Gem::Requirement
144
95
  requirements:
145
- - - ">="
96
+ - - ! '>='
146
97
  - !ruby/object:Gem::Version
147
- version: !binary |-
148
- MA==
149
- none: false
150
- requirement: !ruby/object:Gem::Requirement
151
- requirements:
152
- - - ">="
153
- - !ruby/object:Gem::Version
154
- version: !binary |-
155
- MA==
98
+ version: '0'
156
99
  none: false
100
+ requirement: *5866
157
101
  prerelease: false
158
102
  type: :development
159
103
  - !ruby/object:Gem::Dependency
160
104
  name: rake
161
- version_requirements: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - ">="
164
- - !ruby/object:Gem::Version
165
- version: !binary |-
166
- MA==
167
- none: false
168
- requirement: !ruby/object:Gem::Requirement
105
+ version_requirements: &5882 !ruby/object:Gem::Requirement
169
106
  requirements:
170
- - - ">="
107
+ - - ! '>='
171
108
  - !ruby/object:Gem::Version
172
- version: !binary |-
173
- MA==
109
+ version: '0'
174
110
  none: false
111
+ requirement: *5882
175
112
  prerelease: false
176
113
  type: :development
177
114
  - !ruby/object:Gem::Dependency
178
115
  name: rake-compiler
179
- version_requirements: !ruby/object:Gem::Requirement
180
- requirements:
181
- - - ">="
182
- - !ruby/object:Gem::Version
183
- version: !binary |-
184
- MA==
185
- none: false
186
- requirement: !ruby/object:Gem::Requirement
116
+ version_requirements: &5898 !ruby/object:Gem::Requirement
187
117
  requirements:
188
- - - ">="
118
+ - - ! '>='
189
119
  - !ruby/object:Gem::Version
190
- version: !binary |-
191
- MA==
120
+ version: '0'
192
121
  none: false
122
+ requirement: *5898
193
123
  prerelease: false
194
124
  type: :development
195
125
  - !ruby/object:Gem::Dependency
196
126
  name: rspec
197
- version_requirements: !ruby/object:Gem::Requirement
127
+ version_requirements: &5914 !ruby/object:Gem::Requirement
198
128
  requirements:
199
- - - ">="
129
+ - - ! '>='
200
130
  - !ruby/object:Gem::Version
201
- version: !binary |-
202
- MA==
203
- none: false
204
- requirement: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- version: !binary |-
209
- MA==
131
+ version: '0'
210
132
  none: false
133
+ requirement: *5914
211
134
  prerelease: false
212
135
  type: :development
213
136
  - !ruby/object:Gem::Dependency
214
137
  name: simplecov
215
- version_requirements: !ruby/object:Gem::Requirement
216
- requirements:
217
- - - ">="
218
- - !ruby/object:Gem::Version
219
- version: !binary |-
220
- MA==
221
- none: false
222
- requirement: !ruby/object:Gem::Requirement
138
+ version_requirements: &5930 !ruby/object:Gem::Requirement
223
139
  requirements:
224
- - - ">="
140
+ - - ! '>='
225
141
  - !ruby/object:Gem::Version
226
- version: !binary |-
227
- MA==
142
+ version: '0'
228
143
  none: false
144
+ requirement: *5930
229
145
  prerelease: false
230
146
  type: :development
231
147
  - !ruby/object:Gem::Dependency
232
148
  name: yard
233
- version_requirements: !ruby/object:Gem::Requirement
149
+ version_requirements: &5946 !ruby/object:Gem::Requirement
234
150
  requirements:
235
- - - ">="
151
+ - - ! '>='
236
152
  - !ruby/object:Gem::Version
237
- version: !binary |-
238
- MA==
239
- none: false
240
- requirement: !ruby/object:Gem::Requirement
241
- requirements:
242
- - - ">="
243
- - !ruby/object:Gem::Version
244
- version: !binary |-
245
- MA==
153
+ version: '0'
246
154
  none: false
155
+ requirement: *5946
247
156
  prerelease: false
248
157
  type: :development
249
158
  description: Google Protocol Buffers v2.4.1 Serialization and RPC implementation for Ruby.
@@ -256,9 +165,9 @@ executables:
256
165
  extensions: []
257
166
  extra_rdoc_files: []
258
167
  files:
259
- - ".gitignore"
260
- - ".travis.yml"
261
- - ".yardopts"
168
+ - .gitignore
169
+ - .travis.yml
170
+ - .yardopts
262
171
  - CONTRIBUTING.md
263
172
  - Gemfile
264
173
  - README.md
@@ -462,6 +371,10 @@ files:
462
371
  - spec/support/server.rb
463
372
  - spec/support/test/enum.pb.rb
464
373
  - spec/support/test/enum.proto
374
+ - spec/support/test/extended.pb.rb
375
+ - spec/support/test/extended.proto
376
+ - spec/support/test/multi_field_extensions.pb.rb
377
+ - spec/support/test/multi_field_extensions.proto
465
378
  - spec/support/test/resource.pb.rb
466
379
  - spec/support/test/resource.proto
467
380
  - spec/support/test/resource_service.rb
@@ -518,29 +431,113 @@ require_paths:
518
431
  - lib
519
432
  required_ruby_version: !ruby/object:Gem::Requirement
520
433
  requirements:
521
- - - ">="
434
+ - - ! '>='
522
435
  - !ruby/object:Gem::Version
523
436
  segments:
524
437
  - 0
525
438
  hash: 2
526
- version: !binary |-
527
- MA==
439
+ version: '0'
528
440
  none: false
529
441
  required_rubygems_version: !ruby/object:Gem::Requirement
530
442
  requirements:
531
- - - ">="
443
+ - - ! '>='
532
444
  - !ruby/object:Gem::Version
533
445
  segments:
534
446
  - 0
535
447
  hash: 2
536
- version: !binary |-
537
- MA==
448
+ version: '0'
538
449
  none: false
539
450
  requirements: []
540
451
  rubyforge_project:
541
- rubygems_version: 1.8.24
452
+ rubygems_version: 1.8.15
542
453
  signing_key:
543
454
  specification_version: 3
544
455
  summary: Google Protocol Buffers v2.4.1 Serialization and RPC implementation for Ruby.
545
- test_files: []
456
+ test_files:
457
+ - spec/benchmark/tasks.rb
458
+ - spec/functional/embedded_service_spec.rb
459
+ - spec/functional/evented_server_spec.rb
460
+ - spec/functional/socket_server_spec.rb
461
+ - spec/functional/zmq_server_spec.rb
462
+ - spec/lib/protobuf/cli_spec.rb
463
+ - spec/lib/protobuf/enum_spec.rb
464
+ - spec/lib/protobuf/enum_value_spec.rb
465
+ - spec/lib/protobuf/field/int32_field_spec.rb
466
+ - spec/lib/protobuf/logger_spec.rb
467
+ - spec/lib/protobuf/message_spec.rb
468
+ - spec/lib/protobuf/rpc/client_spec.rb
469
+ - spec/lib/protobuf/rpc/connector_spec.rb
470
+ - spec/lib/protobuf/rpc/connectors/base_spec.rb
471
+ - spec/lib/protobuf/rpc/connectors/common_spec.rb
472
+ - spec/lib/protobuf/rpc/connectors/socket_spec.rb
473
+ - spec/lib/protobuf/rpc/connectors/zmq_spec.rb
474
+ - spec/lib/protobuf/rpc/servers/evented_server_spec.rb
475
+ - spec/lib/protobuf/rpc/servers/socket_server_spec.rb
476
+ - spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
477
+ - spec/lib/protobuf/rpc/servers/zmq/server_spec.rb
478
+ - spec/lib/protobuf/rpc/servers/zmq/util_spec.rb
479
+ - spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
480
+ - spec/lib/protobuf/rpc/service_dispatcher_spec.rb
481
+ - spec/lib/protobuf/rpc/service_filters_spec.rb
482
+ - spec/lib/protobuf/rpc/service_spec.rb
483
+ - spec/lib/protobuf_spec.rb
484
+ - spec/spec_helper.rb
485
+ - spec/support/all.rb
486
+ - spec/support/packed_field.rb
487
+ - spec/support/server.rb
488
+ - spec/support/test/enum.pb.rb
489
+ - spec/support/test/enum.proto
490
+ - spec/support/test/extended.pb.rb
491
+ - spec/support/test/extended.proto
492
+ - spec/support/test/multi_field_extensions.pb.rb
493
+ - spec/support/test/multi_field_extensions.proto
494
+ - spec/support/test/resource.pb.rb
495
+ - spec/support/test/resource.proto
496
+ - spec/support/test/resource_service.rb
497
+ - spec/support/test_app_file.rb
498
+ - spec/support/tolerance_matcher.rb
499
+ - test/data/data.bin
500
+ - test/data/data_source.py
501
+ - test/data/types.bin
502
+ - test/data/types_source.py
503
+ - test/data/unk.png
504
+ - test/proto/addressbook.pb.rb
505
+ - test/proto/addressbook.proto
506
+ - test/proto/addressbook_base.pb.rb
507
+ - test/proto/addressbook_base.proto
508
+ - test/proto/addressbook_ext.pb.rb
509
+ - test/proto/addressbook_ext.proto
510
+ - test/proto/collision.pb.rb
511
+ - test/proto/collision.proto
512
+ - test/proto/ext_collision.pb.rb
513
+ - test/proto/ext_collision.proto
514
+ - test/proto/ext_range.pb.rb
515
+ - test/proto/ext_range.proto
516
+ - test/proto/float_default.proto
517
+ - test/proto/lowercase.pb.rb
518
+ - test/proto/lowercase.proto
519
+ - test/proto/merge.pb.rb
520
+ - test/proto/merge.proto
521
+ - test/proto/nested.pb.rb
522
+ - test/proto/nested.proto
523
+ - test/proto/optional_field.pb.rb
524
+ - test/proto/optional_field.proto
525
+ - test/proto/packed.pb.rb
526
+ - test/proto/packed.proto
527
+ - test/proto/rpc.proto
528
+ - test/proto/types.pb.rb
529
+ - test/proto/types.proto
530
+ - test/test_addressbook.rb
531
+ - test/test_enum_value.rb
532
+ - test/test_extension.rb
533
+ - test/test_lowercase.rb
534
+ - test/test_message.rb
535
+ - test/test_optional_field.rb
536
+ - test/test_packed_field.rb
537
+ - test/test_parse.rb
538
+ - test/test_repeated_types.rb
539
+ - test/test_serialize.rb
540
+ - test/test_standard_message.rb
541
+ - test/test_types.rb
546
542
  has_rdoc:
543
+ ...