grpc 1.0.0-x86-linux → 1.0.1.pre1-x86-linux
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of grpc might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/grpc_c.32.ruby +0 -0
- data/grpc_c.64.ruby +0 -0
- data/src/ruby/ext/grpc/extconf.rb +4 -0
- data/src/ruby/lib/grpc/2.0/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/2.1/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/2.2/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/2.3/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/generic/active_call.rb +0 -4
- data/src/ruby/lib/grpc/generic/rpc_server.rb +0 -1
- data/src/ruby/lib/grpc/grpc.rb +8 -3
- data/src/ruby/lib/grpc/grpc_c.so +0 -0
- data/src/ruby/lib/grpc/version.rb +1 -1
- data/src/ruby/pb/test/server.rb +26 -39
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eb278a456398c0b115744fa71bdac91df849e7d
|
4
|
+
data.tar.gz: 03d5d6da6a02bfdf571c9ab3500f98ab421b1680
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c2134c1efa15ec5b721d3a86181c8df5f4664b9c78fd460a28d5fa8a55af8d166eb45e804e0ebd61d4708a33c00243b84d99c6a8cad2c62e2ce7b50da86af92
|
7
|
+
data.tar.gz: c35a15757015ef63e486b9d904ed37cfeb39f06a73a4e65eccc7b032a172139bc40e83f7e5c9584d809a7b9444d64e5130fdf51ef472c3ca90061f07dad98605
|
data/grpc_c.32.ruby
CHANGED
Binary file
|
data/grpc_c.64.ruby
CHANGED
Binary file
|
@@ -91,6 +91,10 @@ if grpc_config == 'gcov'
|
|
91
91
|
$LDFLAGS << ' -fprofile-arcs -ftest-coverage -rdynamic'
|
92
92
|
end
|
93
93
|
|
94
|
+
if grpc_config == 'dbg'
|
95
|
+
$CFLAGS << ' -O0'
|
96
|
+
end
|
97
|
+
|
94
98
|
$LDFLAGS << ' -Wl,-wrap,memcpy' if RUBY_PLATFORM =~ /linux/
|
95
99
|
$LDFLAGS << ' -static' if windows
|
96
100
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -188,7 +188,6 @@ module GRPC
|
|
188
188
|
# marshalled.
|
189
189
|
def remote_send(req, marshalled = false)
|
190
190
|
# TODO(murgatroid99): ensure metadata was sent
|
191
|
-
GRPC.logger.debug("sending #{req}, marshalled? #{marshalled}")
|
192
191
|
payload = marshalled ? req : @marshal.call(req)
|
193
192
|
@call.run_batch(SEND_MESSAGE => payload)
|
194
193
|
end
|
@@ -225,11 +224,8 @@ module GRPC
|
|
225
224
|
@call.metadata = batch_result.metadata
|
226
225
|
@metadata_received = true
|
227
226
|
end
|
228
|
-
GRPC.logger.debug("received req: #{batch_result}")
|
229
227
|
unless batch_result.nil? || batch_result.message.nil?
|
230
|
-
GRPC.logger.debug("received req.to_s: #{batch_result.message}")
|
231
228
|
res = @unmarshal.call(batch_result.message)
|
232
|
-
GRPC.logger.debug("received_req (unmarshalled): #{res.inspect}")
|
233
229
|
return res
|
234
230
|
end
|
235
231
|
GRPC.logger.debug('found nil; the final response has been sent')
|
@@ -391,7 +391,6 @@ module GRPC
|
|
391
391
|
|
392
392
|
# allow the metadata to be accessed from the call
|
393
393
|
an_rpc.call.metadata = an_rpc.metadata # attaches md to call for handlers
|
394
|
-
GRPC.logger.debug("call md is #{an_rpc.metadata}")
|
395
394
|
connect_md = nil
|
396
395
|
unless @connect_md_proc.nil?
|
397
396
|
connect_md = @connect_md_proc.call(an_rpc.method, an_rpc.metadata)
|
data/src/ruby/lib/grpc/grpc.rb
CHANGED
@@ -28,7 +28,12 @@
|
|
28
28
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
29
29
|
|
30
30
|
begin
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
ruby_version_dirname = /(\d+\.\d+)/.match(RUBY_VERSION).to_s
|
32
|
+
distrib_lib_dir = File.expand_path(ruby_version_dirname,
|
33
|
+
File.dirname(__FILE__))
|
34
|
+
if File.directory?(distrib_lib_dir)
|
35
|
+
require_relative "#{distrib_lib_dir}/grpc_c"
|
36
|
+
else
|
37
|
+
require_relative 'grpc_c'
|
38
|
+
end
|
34
39
|
end
|
data/src/ruby/lib/grpc/grpc_c.so
CHANGED
Binary file
|
data/src/ruby/pb/test/server.rb
CHANGED
@@ -129,27 +129,36 @@ def nulls(l)
|
|
129
129
|
[].pack('x' * l).force_encoding('ascii-8bit')
|
130
130
|
end
|
131
131
|
|
132
|
-
# A
|
133
|
-
class
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
def initialize(sentinel)
|
138
|
-
@q = Queue.new
|
139
|
-
@sentinel = sentinel
|
140
|
-
end
|
132
|
+
# A FullDuplexEnumerator passes requests to a block and yields generated responses
|
133
|
+
class FullDuplexEnumerator
|
134
|
+
include Grpc::Testing
|
135
|
+
include Grpc::Testing::PayloadType
|
141
136
|
|
137
|
+
def initialize(requests)
|
138
|
+
@requests = requests
|
139
|
+
end
|
142
140
|
def each_item
|
143
141
|
return enum_for(:each_item) unless block_given?
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
142
|
+
GRPC.logger.info('interop-server: started receiving')
|
143
|
+
begin
|
144
|
+
cls = StreamingOutputCallResponse
|
145
|
+
@requests.each do |req|
|
146
|
+
req.response_parameters.each do |params|
|
147
|
+
resp_size = params.size
|
148
|
+
GRPC.logger.info("read a req, response size is #{resp_size}")
|
149
|
+
yield cls.new(payload: Payload.new(type: req.response_type,
|
150
|
+
body: nulls(resp_size)))
|
151
|
+
end
|
152
|
+
end
|
153
|
+
GRPC.logger.info('interop-server: finished receiving')
|
154
|
+
rescue StandardError => e
|
155
|
+
GRPC.logger.info('interop-server: failed')
|
156
|
+
GRPC.logger.warn(e)
|
157
|
+
fail e
|
149
158
|
end
|
150
159
|
end
|
151
160
|
end
|
152
|
-
|
161
|
+
|
153
162
|
# A runnable implementation of the schema-specified testing service, with each
|
154
163
|
# service method implemented as required by the interop testing spec.
|
155
164
|
class TestTarget < Grpc::Testing::TestService::Service
|
@@ -182,31 +191,9 @@ class TestTarget < Grpc::Testing::TestService::Service
|
|
182
191
|
|
183
192
|
def full_duplex_call(reqs)
|
184
193
|
# reqs is a lazy Enumerator of the requests sent by the client.
|
185
|
-
|
186
|
-
cls = StreamingOutputCallResponse
|
187
|
-
Thread.new do
|
188
|
-
begin
|
189
|
-
GRPC.logger.info('interop-server: started receiving')
|
190
|
-
reqs.each do |req|
|
191
|
-
req.response_parameters.each do |params|
|
192
|
-
resp_size = params.size
|
193
|
-
GRPC.logger.info("read a req, response size is #{resp_size}")
|
194
|
-
resp = cls.new(payload: Payload.new(type: req.response_type,
|
195
|
-
body: nulls(resp_size)))
|
196
|
-
q.push(resp)
|
197
|
-
end
|
198
|
-
end
|
199
|
-
GRPC.logger.info('interop-server: finished receiving')
|
200
|
-
q.push(self)
|
201
|
-
rescue StandardError => e
|
202
|
-
GRPC.logger.info('interop-server: failed')
|
203
|
-
GRPC.logger.warn(e)
|
204
|
-
q.push(e) # share the exception with the enumerator
|
205
|
-
end
|
206
|
-
end
|
207
|
-
q.each_item
|
194
|
+
FullDuplexEnumerator.new(reqs).each_item
|
208
195
|
end
|
209
|
-
|
196
|
+
|
210
197
|
def half_duplex_call(reqs)
|
211
198
|
# TODO: update with unique behaviour of the half_duplex_call if that's
|
212
199
|
# ever required by any of the tests.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1.pre1
|
5
5
|
platform: x86-linux
|
6
6
|
authors:
|
7
7
|
- gRPC Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: src/ruby/bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 3.0.2
|
20
20
|
type: :runtime
|
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:
|
26
|
+
version: 3.0.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: googleauth
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -294,9 +294,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
294
294
|
version: 2.0.0
|
295
295
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
296
296
|
requirements:
|
297
|
-
- - "
|
297
|
+
- - ">"
|
298
298
|
- !ruby/object:Gem::Version
|
299
|
-
version:
|
299
|
+
version: 1.3.1
|
300
300
|
requirements: []
|
301
301
|
rubyforge_project:
|
302
302
|
rubygems_version: 2.5.1
|