protobuf 2.7.7 → 2.7.8

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -2,6 +2,7 @@ language: ruby
2
2
  rvm:
3
3
  - "1.9.2"
4
4
  - "1.9.3"
5
+ - "2.0.0"
5
6
  script: NO_COMPILE_TEST_PROTOS=1 bundle exec rake spec
6
7
  before_install:
7
- - sudo apt-get install -qq libzmq-dev
8
+ - sudo apt-get install -qq libzmq3-dev
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,16 @@
1
+ # Contributing
2
+
3
+ I love accepting issues and pull requests. I only ask for a few guidelines to
4
+ be followed that will make it much easier for me to solve your issue or get
5
+ your code merged.
6
+
7
+ 1. Use GitHub Issues or Pull Requests over sending an email. It's much easier for me to keep track of your issue through GitHub.
8
+ 2. For __compiler issues__, please provide both a gist for the __source definition(s)__ as well as the __generated output__ (if any).
9
+ 3. For __pull requests__ for __existing issues or functionality__, please use the __base branch `2-7-stable`__ for the pull request. This helps us maintain a stable gem release strategy. All commits merged to `2-7-stable` will also be merged down to `master`.
10
+ 4. For __pull requests__ for __new functionality__, please use the __base branch `master`__ for the pull request. The `master` branch is used to stage all "next iteration" work.
11
+ 5. Be patient with me as I work on your issue.
12
+
13
+ Following these simple guidelines really will help me help you. And really,
14
+ that's what we're here for. :)
15
+
16
+ ## Happy Contributing!
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
@@ -12,8 +12,8 @@ module Protobuf
12
12
 
13
13
  def encode(value)
14
14
  # TODO: make replace character configurable?
15
- value.encode!(::Protobuf::Field::StringField::ENCODING, :invalid => :replace, :undef => :replace, :replace => "")
16
- value.force_encoding(::Protobuf::Field::BytesField::BYTES_ENCODING)
15
+ value.encode!(::Protobuf::Field::StringField::ENCODING, ::Protobuf::Field::BytesField::BYTES_ENCODING, :invalid => :replace, :undef => :replace, :replace => "")
16
+ value.force_encoding(::Protobuf::Field::BytesField::BYTES_ENCODING)
17
17
 
18
18
  string_size = ::Protobuf::Field::VarintField.encode(value.size)
19
19
  string_size << value
@@ -22,11 +22,11 @@ module Protobuf
22
22
  local_worker_threads = options[:threads]
23
23
  log_debug { sign_message("starting server workers") }
24
24
 
25
+ @running = true
25
26
  local_worker_threads.times do
26
27
  self.start_worker
27
28
  end
28
29
 
29
- @running = true
30
30
  log_debug { sign_message("server started") }
31
31
  while self.running? do
32
32
  if options[:workers_only]
@@ -1,4 +1,4 @@
1
1
  module Protobuf
2
- VERSION = '2.7.7'
2
+ VERSION = '2.7.8'
3
3
  PROTOC_VERSION = '2.4.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protobuf
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.7
4
+ version: 2.7.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-03-18 00:00:00.000000000Z
13
+ date: 2013-03-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
17
- requirement: &2157076680 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,15 @@ dependencies:
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2157076680
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
26
31
  - !ruby/object:Gem::Dependency
27
32
  name: ffi
28
- requirement: &2157076260 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
29
34
  none: false
30
35
  requirements:
31
36
  - - ! '>='
@@ -33,10 +38,15 @@ dependencies:
33
38
  version: '0'
34
39
  type: :runtime
35
40
  prerelease: false
36
- version_requirements: *2157076260
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
37
47
  - !ruby/object:Gem::Dependency
38
48
  name: multi_json
39
- requirement: &2157075840 !ruby/object:Gem::Requirement
49
+ requirement: !ruby/object:Gem::Requirement
40
50
  none: false
41
51
  requirements:
42
52
  - - ! '>='
@@ -44,10 +54,15 @@ dependencies:
44
54
  version: '0'
45
55
  type: :runtime
46
56
  prerelease: false
47
- version_requirements: *2157075840
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
48
63
  - !ruby/object:Gem::Dependency
49
64
  name: thor
50
- requirement: &2157075420 !ruby/object:Gem::Requirement
65
+ requirement: !ruby/object:Gem::Requirement
51
66
  none: false
52
67
  requirements:
53
68
  - - ! '>='
@@ -55,10 +70,15 @@ dependencies:
55
70
  version: '0'
56
71
  type: :runtime
57
72
  prerelease: false
58
- version_requirements: *2157075420
73
+ version_requirements: !ruby/object:Gem::Requirement
74
+ none: false
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
59
79
  - !ruby/object:Gem::Dependency
60
80
  name: eventmachine
61
- requirement: &2157075000 !ruby/object:Gem::Requirement
81
+ requirement: !ruby/object:Gem::Requirement
62
82
  none: false
63
83
  requirements:
64
84
  - - ! '>='
@@ -66,10 +86,15 @@ dependencies:
66
86
  version: '0'
67
87
  type: :development
68
88
  prerelease: false
69
- version_requirements: *2157075000
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ! '>='
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
70
95
  - !ruby/object:Gem::Dependency
71
96
  name: ffi-rzmq
72
- requirement: &2157074580 !ruby/object:Gem::Requirement
97
+ requirement: !ruby/object:Gem::Requirement
73
98
  none: false
74
99
  requirements:
75
100
  - - ! '>='
@@ -77,10 +102,15 @@ dependencies:
77
102
  version: '0'
78
103
  type: :development
79
104
  prerelease: false
80
- version_requirements: *2157074580
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ none: false
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
81
111
  - !ruby/object:Gem::Dependency
82
112
  name: pry
83
- requirement: &2157074160 !ruby/object:Gem::Requirement
113
+ requirement: !ruby/object:Gem::Requirement
84
114
  none: false
85
115
  requirements:
86
116
  - - ! '>='
@@ -88,10 +118,15 @@ dependencies:
88
118
  version: '0'
89
119
  type: :development
90
120
  prerelease: false
91
- version_requirements: *2157074160
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ! '>='
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
92
127
  - !ruby/object:Gem::Dependency
93
128
  name: pry-nav
94
- requirement: &2157073740 !ruby/object:Gem::Requirement
129
+ requirement: !ruby/object:Gem::Requirement
95
130
  none: false
96
131
  requirements:
97
132
  - - ! '>='
@@ -99,10 +134,15 @@ dependencies:
99
134
  version: '0'
100
135
  type: :development
101
136
  prerelease: false
102
- version_requirements: *2157073740
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
103
143
  - !ruby/object:Gem::Dependency
104
144
  name: rake
105
- requirement: &2157073320 !ruby/object:Gem::Requirement
145
+ requirement: !ruby/object:Gem::Requirement
106
146
  none: false
107
147
  requirements:
108
148
  - - ! '>='
@@ -110,10 +150,15 @@ dependencies:
110
150
  version: '0'
111
151
  type: :development
112
152
  prerelease: false
113
- version_requirements: *2157073320
153
+ version_requirements: !ruby/object:Gem::Requirement
154
+ none: false
155
+ requirements:
156
+ - - ! '>='
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
114
159
  - !ruby/object:Gem::Dependency
115
160
  name: rake-compiler
116
- requirement: &2157072900 !ruby/object:Gem::Requirement
161
+ requirement: !ruby/object:Gem::Requirement
117
162
  none: false
118
163
  requirements:
119
164
  - - ! '>='
@@ -121,10 +166,15 @@ dependencies:
121
166
  version: '0'
122
167
  type: :development
123
168
  prerelease: false
124
- version_requirements: *2157072900
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ none: false
171
+ requirements:
172
+ - - ! '>='
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
125
175
  - !ruby/object:Gem::Dependency
126
176
  name: rspec
127
- requirement: &2157072480 !ruby/object:Gem::Requirement
177
+ requirement: !ruby/object:Gem::Requirement
128
178
  none: false
129
179
  requirements:
130
180
  - - ! '>='
@@ -132,10 +182,15 @@ dependencies:
132
182
  version: '0'
133
183
  type: :development
134
184
  prerelease: false
135
- version_requirements: *2157072480
185
+ version_requirements: !ruby/object:Gem::Requirement
186
+ none: false
187
+ requirements:
188
+ - - ! '>='
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
136
191
  - !ruby/object:Gem::Dependency
137
192
  name: simplecov
138
- requirement: &2157072060 !ruby/object:Gem::Requirement
193
+ requirement: !ruby/object:Gem::Requirement
139
194
  none: false
140
195
  requirements:
141
196
  - - ! '>='
@@ -143,10 +198,15 @@ dependencies:
143
198
  version: '0'
144
199
  type: :development
145
200
  prerelease: false
146
- version_requirements: *2157072060
201
+ version_requirements: !ruby/object:Gem::Requirement
202
+ none: false
203
+ requirements:
204
+ - - ! '>='
205
+ - !ruby/object:Gem::Version
206
+ version: '0'
147
207
  - !ruby/object:Gem::Dependency
148
208
  name: yard
149
- requirement: &2157071640 !ruby/object:Gem::Requirement
209
+ requirement: !ruby/object:Gem::Requirement
150
210
  none: false
151
211
  requirements:
152
212
  - - ! '>='
@@ -154,7 +214,12 @@ dependencies:
154
214
  version: '0'
155
215
  type: :development
156
216
  prerelease: false
157
- version_requirements: *2157071640
217
+ version_requirements: !ruby/object:Gem::Requirement
218
+ none: false
219
+ requirements:
220
+ - - ! '>='
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
158
223
  description: Google Protocol Buffers v2.4.1 Serialization and RPC implementation for
159
224
  Ruby.
160
225
  email:
@@ -170,6 +235,7 @@ files:
170
235
  - .gitignore
171
236
  - .travis.yml
172
237
  - .yardopts
238
+ - CONTRIBUTING.md
173
239
  - Gemfile
174
240
  - README.md
175
241
  - Rakefile
@@ -434,7 +500,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
434
500
  version: '0'
435
501
  segments:
436
502
  - 0
437
- hash: 3919934468828630933
503
+ hash: -3116923197432389781
438
504
  required_rubygems_version: !ruby/object:Gem::Requirement
439
505
  none: false
440
506
  requirements:
@@ -443,93 +509,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
443
509
  version: '0'
444
510
  segments:
445
511
  - 0
446
- hash: 3919934468828630933
512
+ hash: -3116923197432389781
447
513
  requirements: []
448
514
  rubyforge_project:
449
- rubygems_version: 1.8.15
515
+ rubygems_version: 1.8.25
450
516
  signing_key:
451
517
  specification_version: 3
452
518
  summary: Google Protocol Buffers v2.4.1 Serialization and RPC implementation for Ruby.
453
- test_files:
454
- - spec/benchmark/tasks.rb
455
- - spec/functional/embedded_service_spec.rb
456
- - spec/functional/evented_server_spec.rb
457
- - spec/functional/socket_server_spec.rb
458
- - spec/functional/zmq_server_spec.rb
459
- - spec/lib/protobuf/cli_spec.rb
460
- - spec/lib/protobuf/enum_spec.rb
461
- - spec/lib/protobuf/enum_value_spec.rb
462
- - spec/lib/protobuf/field/int32_field_spec.rb
463
- - spec/lib/protobuf/logger_spec.rb
464
- - spec/lib/protobuf/message_spec.rb
465
- - spec/lib/protobuf/rpc/client_spec.rb
466
- - spec/lib/protobuf/rpc/connector_spec.rb
467
- - spec/lib/protobuf/rpc/connectors/base_spec.rb
468
- - spec/lib/protobuf/rpc/connectors/common_spec.rb
469
- - spec/lib/protobuf/rpc/connectors/socket_spec.rb
470
- - spec/lib/protobuf/rpc/connectors/zmq_spec.rb
471
- - spec/lib/protobuf/rpc/servers/evented_server_spec.rb
472
- - spec/lib/protobuf/rpc/servers/socket_server_spec.rb
473
- - spec/lib/protobuf/rpc/servers/zmq/broker_spec.rb
474
- - spec/lib/protobuf/rpc/servers/zmq/server_spec.rb
475
- - spec/lib/protobuf/rpc/servers/zmq/util_spec.rb
476
- - spec/lib/protobuf/rpc/servers/zmq/worker_spec.rb
477
- - spec/lib/protobuf/rpc/service_dispatcher_spec.rb
478
- - spec/lib/protobuf/rpc/service_filters_spec.rb
479
- - spec/lib/protobuf/rpc/service_spec.rb
480
- - spec/lib/protobuf_spec.rb
481
- - spec/spec_helper.rb
482
- - spec/support/all.rb
483
- - spec/support/packed_field.rb
484
- - spec/support/server.rb
485
- - spec/support/test/enum.pb.rb
486
- - spec/support/test/enum.proto
487
- - spec/support/test/resource.pb.rb
488
- - spec/support/test/resource.proto
489
- - spec/support/test/resource_service.rb
490
- - spec/support/test_app_file.rb
491
- - spec/support/tolerance_matcher.rb
492
- - test/data/data.bin
493
- - test/data/data_source.py
494
- - test/data/types.bin
495
- - test/data/types_source.py
496
- - test/data/unk.png
497
- - test/proto/addressbook.pb.rb
498
- - test/proto/addressbook.proto
499
- - test/proto/addressbook_base.pb.rb
500
- - test/proto/addressbook_base.proto
501
- - test/proto/addressbook_ext.pb.rb
502
- - test/proto/addressbook_ext.proto
503
- - test/proto/collision.pb.rb
504
- - test/proto/collision.proto
505
- - test/proto/ext_collision.pb.rb
506
- - test/proto/ext_collision.proto
507
- - test/proto/ext_range.pb.rb
508
- - test/proto/ext_range.proto
509
- - test/proto/float_default.proto
510
- - test/proto/lowercase.pb.rb
511
- - test/proto/lowercase.proto
512
- - test/proto/merge.pb.rb
513
- - test/proto/merge.proto
514
- - test/proto/nested.pb.rb
515
- - test/proto/nested.proto
516
- - test/proto/optional_field.pb.rb
517
- - test/proto/optional_field.proto
518
- - test/proto/packed.pb.rb
519
- - test/proto/packed.proto
520
- - test/proto/rpc.proto
521
- - test/proto/types.pb.rb
522
- - test/proto/types.proto
523
- - test/test_addressbook.rb
524
- - test/test_enum_value.rb
525
- - test/test_extension.rb
526
- - test/test_lowercase.rb
527
- - test/test_message.rb
528
- - test/test_optional_field.rb
529
- - test/test_packed_field.rb
530
- - test/test_parse.rb
531
- - test/test_repeated_types.rb
532
- - test/test_serialize.rb
533
- - test/test_standard_message.rb
534
- - test/test_types.rb
519
+ test_files: []
535
520
  has_rdoc: