protobuf 3.5.0 → 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.rubocop.yml +3 -0
- data/CHANGES.md +6 -0
- data/CONTRIBUTING.md +1 -1
- data/README.md +1 -1
- data/lib/protobuf/cli.rb +2 -3
- data/lib/protobuf/message/fields.rb +2 -3
- data/lib/protobuf/rpc/servers/socket_runner.rb +1 -3
- data/lib/protobuf/rpc/servers/zmq/server.rb +1 -1
- data/lib/protobuf/rpc/servers/zmq_runner.rb +1 -1
- data/lib/protobuf/rpc/service.rb +2 -0
- data/lib/protobuf/tasks/compile.rake +1 -2
- data/lib/protobuf/version.rb +1 -1
- data/spec/functional/zmq_server_spec.rb +6 -6
- metadata +77 -41
- checksums.yaml +0 -7
data/.rubocop.yml
CHANGED
data/CHANGES.md
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -6,7 +6,7 @@ your code merged.
|
|
6
6
|
|
7
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
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 __existing issues or functionality__, please use __`
|
9
|
+
3. For __existing issues or functionality__, please use the latest stable branch (currently __`3-5-stable`__) as the base branch for the pull request. This helps us maintain a stable gem release strategy. All commits merged to stable will also be merged down to `master`.
|
10
10
|
4. For __new functionality__, please use __`master`__ as the base branch for the pull request. The `master` branch is used to stage all "next iteration" work.
|
11
11
|
5. Be patient with me as I work on your issue.
|
12
12
|
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# protobuf
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/protobuf.svg)](http://badge.fury.io/rb/protobuf)
|
4
|
-
[![Build Status](https://secure.travis-ci.org/
|
4
|
+
[![Build Status](https://secure.travis-ci.org/ruby-protobuf/protobuf.svg?branch=master)](https://travis-ci.org/localshred/protobuf)
|
5
5
|
[![Gitter chat](https://badges.gitter.im/localshred/protobuf.svg)](https://gitter.im/localshred/protobuf)
|
6
6
|
[![protobuf API Documentation](https://www.omniref.com/ruby/gems/protobuf.png)](https://www.omniref.com/ruby/gems/protobuf)
|
7
7
|
|
data/lib/protobuf/cli.rb
CHANGED
@@ -118,8 +118,7 @@ module Protobuf
|
|
118
118
|
:socket
|
119
119
|
elsif options.zmq?
|
120
120
|
:zmq
|
121
|
-
else
|
122
|
-
# above: https://github.com/bbatsov/rubocop/pull/1470/files
|
121
|
+
else
|
123
122
|
case server_type = ENV["PB_SERVER_TYPE"]
|
124
123
|
when nil, /socket/i
|
125
124
|
:socket
|
@@ -182,7 +181,7 @@ module Protobuf
|
|
182
181
|
end
|
183
182
|
|
184
183
|
def runner_options
|
185
|
-
opt = options.symbolize_keys
|
184
|
+
opt = options.to_hash.symbolize_keys
|
186
185
|
|
187
186
|
opt[:workers_only] = (!!ENV['PB_WORKERS_ONLY']) || options.workers_only
|
188
187
|
|
@@ -11,13 +11,12 @@ module Protobuf
|
|
11
11
|
:get_field_by_name => :get_field,
|
12
12
|
:get_field_by_tag => :get_field,
|
13
13
|
)
|
14
|
+
end
|
14
15
|
|
16
|
+
module ClassMethods
|
15
17
|
def inherited(subclass)
|
16
18
|
inherit_fields!(subclass)
|
17
19
|
end
|
18
|
-
end
|
19
|
-
|
20
|
-
module ClassMethods
|
21
20
|
|
22
21
|
##
|
23
22
|
# Field Definition Methods
|
@@ -12,10 +12,8 @@ module Protobuf
|
|
12
12
|
options = case
|
13
13
|
when options.is_a?(OpenStruct) then
|
14
14
|
options.marshal_dump
|
15
|
-
when options.is_a?(Hash) then
|
16
|
-
options
|
17
15
|
when options.respond_to?(:to_hash) then
|
18
|
-
options.to_hash
|
16
|
+
options.to_hash.symbolize_keys
|
19
17
|
else
|
20
18
|
fail "Cannot parser Socket Server - server options"
|
21
19
|
end
|
@@ -284,7 +284,7 @@ module Protobuf
|
|
284
284
|
end
|
285
285
|
|
286
286
|
def start_broker
|
287
|
-
return if @broker && @broker.running? &&
|
287
|
+
return if @broker && @broker.running? && @broker_thread.alive?
|
288
288
|
if @broker && !@broker.running?
|
289
289
|
broadcast_flatline if broadcast_busy?
|
290
290
|
@broker_thread.join if @broker_thread
|
data/lib/protobuf/rpc/service.rb
CHANGED
@@ -18,8 +18,7 @@ namespace :protobuf do
|
|
18
18
|
command << "protoc"
|
19
19
|
command << "--#{args[:plugin]}_out=#{args[:destination]}"
|
20
20
|
command << "-I #{args[:source]}"
|
21
|
-
command << "#{args[:source]}/#{args[:package]}
|
22
|
-
command << "#{args[:source]}/#{args[:package]}/**/*.proto"
|
21
|
+
command << Dir["#{args[:source]}/#{args[:package]}/**/*.proto"].join(" ")
|
23
22
|
full_command = command.join(' ')
|
24
23
|
|
25
24
|
puts full_command
|
data/lib/protobuf/version.rb
CHANGED
@@ -7,12 +7,12 @@ RSpec.describe 'Functional ZMQ Client' do
|
|
7
7
|
before(:all) do
|
8
8
|
load "protobuf/zmq.rb"
|
9
9
|
@runner = ::Protobuf::Rpc::ZmqRunner.new(
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
10
|
+
'host' => '127.0.0.1',
|
11
|
+
'port' => 9399,
|
12
|
+
'worker_port' => 9408,
|
13
|
+
'backlog' => 100,
|
14
|
+
'threshold' => 100,
|
15
|
+
'threads' => 5,
|
16
16
|
)
|
17
17
|
@server_thread = Thread.new(@runner) { |runner| runner.run }
|
18
18
|
Thread.pass until @runner.running?
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protobuf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.1
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- BJ Neilsen
|
@@ -11,202 +12,230 @@ authors:
|
|
11
12
|
autorequire:
|
12
13
|
bindir: bin
|
13
14
|
cert_chain: []
|
14
|
-
date: 2015-
|
15
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
15
16
|
dependencies:
|
16
17
|
- !ruby/object:Gem::Dependency
|
17
18
|
name: activesupport
|
18
19
|
requirement: !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
19
21
|
requirements:
|
20
|
-
- -
|
22
|
+
- - ! '>='
|
21
23
|
- !ruby/object:Gem::Version
|
22
24
|
version: '3.2'
|
23
25
|
type: :runtime
|
24
26
|
prerelease: false
|
25
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
26
29
|
requirements:
|
27
|
-
- -
|
30
|
+
- - ! '>='
|
28
31
|
- !ruby/object:Gem::Version
|
29
32
|
version: '3.2'
|
30
33
|
- !ruby/object:Gem::Dependency
|
31
34
|
name: middleware
|
32
35
|
requirement: !ruby/object:Gem::Requirement
|
36
|
+
none: false
|
33
37
|
requirements:
|
34
|
-
- -
|
38
|
+
- - ! '>='
|
35
39
|
- !ruby/object:Gem::Version
|
36
40
|
version: '0'
|
37
41
|
type: :runtime
|
38
42
|
prerelease: false
|
39
43
|
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
40
45
|
requirements:
|
41
|
-
- -
|
46
|
+
- - ! '>='
|
42
47
|
- !ruby/object:Gem::Version
|
43
48
|
version: '0'
|
44
49
|
- !ruby/object:Gem::Dependency
|
45
50
|
name: thor
|
46
51
|
requirement: !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
47
53
|
requirements:
|
48
|
-
- -
|
54
|
+
- - ! '>='
|
49
55
|
- !ruby/object:Gem::Version
|
50
56
|
version: '0'
|
51
57
|
type: :runtime
|
52
58
|
prerelease: false
|
53
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
54
61
|
requirements:
|
55
|
-
- -
|
62
|
+
- - ! '>='
|
56
63
|
- !ruby/object:Gem::Version
|
57
64
|
version: '0'
|
58
65
|
- !ruby/object:Gem::Dependency
|
59
66
|
name: thread_safe
|
60
67
|
requirement: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
61
69
|
requirements:
|
62
|
-
- -
|
70
|
+
- - ! '>='
|
63
71
|
- !ruby/object:Gem::Version
|
64
72
|
version: '0'
|
65
73
|
type: :runtime
|
66
74
|
prerelease: false
|
67
75
|
version_requirements: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
68
77
|
requirements:
|
69
|
-
- -
|
78
|
+
- - ! '>='
|
70
79
|
- !ruby/object:Gem::Version
|
71
80
|
version: '0'
|
72
81
|
- !ruby/object:Gem::Dependency
|
73
82
|
name: ffi-rzmq
|
74
83
|
requirement: !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
75
85
|
requirements:
|
76
|
-
- -
|
86
|
+
- - ! '>='
|
77
87
|
- !ruby/object:Gem::Version
|
78
88
|
version: '0'
|
79
89
|
type: :development
|
80
90
|
prerelease: false
|
81
91
|
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
none: false
|
82
93
|
requirements:
|
83
|
-
- -
|
94
|
+
- - ! '>='
|
84
95
|
- !ruby/object:Gem::Version
|
85
96
|
version: '0'
|
86
97
|
- !ruby/object:Gem::Dependency
|
87
98
|
name: rake
|
88
99
|
requirement: !ruby/object:Gem::Requirement
|
100
|
+
none: false
|
89
101
|
requirements:
|
90
|
-
- -
|
102
|
+
- - ! '>='
|
91
103
|
- !ruby/object:Gem::Version
|
92
104
|
version: '0'
|
93
105
|
type: :development
|
94
106
|
prerelease: false
|
95
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
96
109
|
requirements:
|
97
|
-
- -
|
110
|
+
- - ! '>='
|
98
111
|
- !ruby/object:Gem::Version
|
99
112
|
version: '0'
|
100
113
|
- !ruby/object:Gem::Dependency
|
101
114
|
name: rspec
|
102
115
|
requirement: !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
103
117
|
requirements:
|
104
|
-
- -
|
118
|
+
- - ! '>='
|
105
119
|
- !ruby/object:Gem::Version
|
106
120
|
version: '3.0'
|
107
121
|
type: :development
|
108
122
|
prerelease: false
|
109
123
|
version_requirements: !ruby/object:Gem::Requirement
|
124
|
+
none: false
|
110
125
|
requirements:
|
111
|
-
- -
|
126
|
+
- - ! '>='
|
112
127
|
- !ruby/object:Gem::Version
|
113
128
|
version: '3.0'
|
114
129
|
- !ruby/object:Gem::Dependency
|
115
130
|
name: rubocop
|
116
131
|
requirement: !ruby/object:Gem::Requirement
|
132
|
+
none: false
|
117
133
|
requirements:
|
118
|
-
- -
|
134
|
+
- - ! '>='
|
119
135
|
- !ruby/object:Gem::Version
|
120
136
|
version: '0'
|
121
137
|
type: :development
|
122
138
|
prerelease: false
|
123
139
|
version_requirements: !ruby/object:Gem::Requirement
|
140
|
+
none: false
|
124
141
|
requirements:
|
125
|
-
- -
|
142
|
+
- - ! '>='
|
126
143
|
- !ruby/object:Gem::Version
|
127
144
|
version: '0'
|
128
145
|
- !ruby/object:Gem::Dependency
|
129
146
|
name: simplecov
|
130
147
|
requirement: !ruby/object:Gem::Requirement
|
148
|
+
none: false
|
131
149
|
requirements:
|
132
|
-
- -
|
150
|
+
- - ! '>='
|
133
151
|
- !ruby/object:Gem::Version
|
134
152
|
version: '0'
|
135
153
|
type: :development
|
136
154
|
prerelease: false
|
137
155
|
version_requirements: !ruby/object:Gem::Requirement
|
156
|
+
none: false
|
138
157
|
requirements:
|
139
|
-
- -
|
158
|
+
- - ! '>='
|
140
159
|
- !ruby/object:Gem::Version
|
141
160
|
version: '0'
|
142
161
|
- !ruby/object:Gem::Dependency
|
143
162
|
name: timecop
|
144
163
|
requirement: !ruby/object:Gem::Requirement
|
164
|
+
none: false
|
145
165
|
requirements:
|
146
|
-
- -
|
166
|
+
- - ! '>='
|
147
167
|
- !ruby/object:Gem::Version
|
148
168
|
version: '0'
|
149
169
|
type: :development
|
150
170
|
prerelease: false
|
151
171
|
version_requirements: !ruby/object:Gem::Requirement
|
172
|
+
none: false
|
152
173
|
requirements:
|
153
|
-
- -
|
174
|
+
- - ! '>='
|
154
175
|
- !ruby/object:Gem::Version
|
155
176
|
version: '0'
|
156
177
|
- !ruby/object:Gem::Dependency
|
157
178
|
name: yard
|
158
179
|
requirement: !ruby/object:Gem::Requirement
|
180
|
+
none: false
|
159
181
|
requirements:
|
160
|
-
- -
|
182
|
+
- - ! '>='
|
161
183
|
- !ruby/object:Gem::Version
|
162
184
|
version: '0'
|
163
185
|
type: :development
|
164
186
|
prerelease: false
|
165
187
|
version_requirements: !ruby/object:Gem::Requirement
|
188
|
+
none: false
|
166
189
|
requirements:
|
167
|
-
- -
|
190
|
+
- - ! '>='
|
168
191
|
- !ruby/object:Gem::Version
|
169
192
|
version: '0'
|
170
193
|
- !ruby/object:Gem::Dependency
|
171
|
-
name: pry-
|
194
|
+
name: pry-debugger
|
172
195
|
requirement: !ruby/object:Gem::Requirement
|
196
|
+
none: false
|
173
197
|
requirements:
|
174
|
-
- -
|
198
|
+
- - ! '>='
|
175
199
|
- !ruby/object:Gem::Version
|
176
200
|
version: '0'
|
177
201
|
type: :development
|
178
202
|
prerelease: false
|
179
203
|
version_requirements: !ruby/object:Gem::Requirement
|
204
|
+
none: false
|
180
205
|
requirements:
|
181
|
-
- -
|
206
|
+
- - ! '>='
|
182
207
|
- !ruby/object:Gem::Version
|
183
208
|
version: '0'
|
184
209
|
- !ruby/object:Gem::Dependency
|
185
210
|
name: pry-stack_explorer
|
186
211
|
requirement: !ruby/object:Gem::Requirement
|
212
|
+
none: false
|
187
213
|
requirements:
|
188
|
-
- -
|
214
|
+
- - ! '>='
|
189
215
|
- !ruby/object:Gem::Version
|
190
216
|
version: '0'
|
191
217
|
type: :development
|
192
218
|
prerelease: false
|
193
219
|
version_requirements: !ruby/object:Gem::Requirement
|
220
|
+
none: false
|
194
221
|
requirements:
|
195
|
-
- -
|
222
|
+
- - ! '>='
|
196
223
|
- !ruby/object:Gem::Version
|
197
224
|
version: '0'
|
198
225
|
- !ruby/object:Gem::Dependency
|
199
226
|
name: ruby-prof
|
200
227
|
requirement: !ruby/object:Gem::Requirement
|
228
|
+
none: false
|
201
229
|
requirements:
|
202
|
-
- -
|
230
|
+
- - ! '>='
|
203
231
|
- !ruby/object:Gem::Version
|
204
232
|
version: '0'
|
205
233
|
type: :development
|
206
234
|
prerelease: false
|
207
235
|
version_requirements: !ruby/object:Gem::Requirement
|
236
|
+
none: false
|
208
237
|
requirements:
|
209
|
-
- -
|
238
|
+
- - ! '>='
|
210
239
|
- !ruby/object:Gem::Version
|
211
240
|
version: '0'
|
212
241
|
description: Google Protocol Buffers serialization and RPC implementation for Ruby.
|
@@ -221,11 +250,11 @@ executables:
|
|
221
250
|
extensions: []
|
222
251
|
extra_rdoc_files: []
|
223
252
|
files:
|
224
|
-
-
|
225
|
-
-
|
226
|
-
-
|
227
|
-
-
|
228
|
-
-
|
253
|
+
- .gitignore
|
254
|
+
- .rubocop.yml
|
255
|
+
- .rubocop_todo.yml
|
256
|
+
- .travis.yml
|
257
|
+
- .yardopts
|
229
258
|
- CHANGES.md
|
230
259
|
- CONTRIBUTING.md
|
231
260
|
- Gemfile
|
@@ -404,26 +433,33 @@ files:
|
|
404
433
|
homepage: https://github.com/localshred/protobuf
|
405
434
|
licenses:
|
406
435
|
- MIT
|
407
|
-
metadata: {}
|
408
436
|
post_install_message:
|
409
437
|
rdoc_options: []
|
410
438
|
require_paths:
|
411
439
|
- lib
|
412
440
|
required_ruby_version: !ruby/object:Gem::Requirement
|
441
|
+
none: false
|
413
442
|
requirements:
|
414
|
-
- -
|
443
|
+
- - ! '>='
|
415
444
|
- !ruby/object:Gem::Version
|
416
445
|
version: '0'
|
446
|
+
segments:
|
447
|
+
- 0
|
448
|
+
hash: 1619440131010607599
|
417
449
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
450
|
+
none: false
|
418
451
|
requirements:
|
419
|
-
- -
|
452
|
+
- - ! '>='
|
420
453
|
- !ruby/object:Gem::Version
|
421
454
|
version: '0'
|
455
|
+
segments:
|
456
|
+
- 0
|
457
|
+
hash: 1619440131010607599
|
422
458
|
requirements: []
|
423
459
|
rubyforge_project:
|
424
|
-
rubygems_version:
|
460
|
+
rubygems_version: 1.8.24
|
425
461
|
signing_key:
|
426
|
-
specification_version:
|
462
|
+
specification_version: 3
|
427
463
|
summary: Google Protocol Buffers serialization and RPC implementation for Ruby.
|
428
464
|
test_files: []
|
429
465
|
has_rdoc:
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 556fc7a33947258f727c68a829cda7f010c17a4a
|
4
|
-
data.tar.gz: 7c2844002d64904f5ba995c16704704966a53296
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: a68b0800fe406544487ec2f2ae1cccc81c21e5f9a59c3f970ef84a0a5023f057a523ad5c6f598b9dfe7ad57acf47a22aa12a4a73c218ec0443149d0ff5a7fc7f
|
7
|
-
data.tar.gz: 0832c9afbfc335acf6fd8517a0713efa4d347e48f6eaa00ea0575134b17e19e3d1648fe1936aabfc9b5422ceed63394b449426018d22a6616849148e5f0ebf44
|