grpc_kit 0.1.13 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grpc_kit/calls/client_server_streamer.rb +6 -1
- data/lib/grpc_kit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31ec1c9378ba22652effa01e9aa66474cc3cd1796777d5818556a9edf4994a07
|
4
|
+
data.tar.gz: 76ad9686c486526f7024d59d86e28d2f5d3c275d60d41adc854ea09c4255af84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18e6fee2fb90e49fad73264fabe145aa7b1b989aff8d8b8228b8e76b929871e7efb94d5e10aa65b22442a0189821be0eae92b63ef0e38dcdddc0b5e563f62df7
|
7
|
+
data.tar.gz: 90c5c08f4b147629e5cf6805402426feb48cf3c30c613ecf2914e62c0dae5d4efc179b1630f6ed0aaf8258e2b80772071a55af4c33eeeadf98125c7c47540757
|
@@ -5,6 +5,8 @@ require 'grpc_kit/calls'
|
|
5
5
|
module GrpcKit
|
6
6
|
module Calls::Client
|
7
7
|
class ServerStreamer < GrpcKit::Calls::Call
|
8
|
+
include Enumerable
|
9
|
+
|
8
10
|
alias outgoing_metadata metadata
|
9
11
|
|
10
12
|
# @param data [Object] request message
|
@@ -24,8 +26,11 @@ module GrpcKit
|
|
24
26
|
@stream.recv_msg(last: last)
|
25
27
|
end
|
26
28
|
|
29
|
+
# @yieldparam response [Object] each response object of server streaming RPC
|
27
30
|
def each
|
28
|
-
|
31
|
+
loop do
|
32
|
+
yield(recv)
|
33
|
+
end
|
29
34
|
end
|
30
35
|
end
|
31
36
|
end
|
data/lib/grpc_kit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grpc_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ganmacs
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ds9
|