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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86a2901f5ddf3c0ba1f2f01c312b191aa34ee3b49f935d8a699e45103d1f18c6
4
- data.tar.gz: cc9d48f4539513115b19d9160db9e1bc505eccdef9a1c73981838c1526ad5ceb
3
+ metadata.gz: 31ec1c9378ba22652effa01e9aa66474cc3cd1796777d5818556a9edf4994a07
4
+ data.tar.gz: 76ad9686c486526f7024d59d86e28d2f5d3c275d60d41adc854ea09c4255af84
5
5
  SHA512:
6
- metadata.gz: af0d176981b3c737759235a33efe832693c8c34eb976d44723b29197ed3cddb4aef9ecb9fb2f7946edfa1216d7c5a81f50a7deb5eb68c048fed9f86357b4baa2
7
- data.tar.gz: f4d9ab85e930c44ec12ee031456d43bc689b381869333656cf6c078f4e37eeb23048c8fb5efea58c7769be5c3e4b85e35587d875601e2ecdd0fe4e939b0e77e3
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
- # TODO
31
+ loop do
32
+ yield(recv)
33
+ end
29
34
  end
30
35
  end
31
36
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GrpcKit
4
- VERSION = '0.1.13'
4
+ VERSION = '0.1.14'
5
5
  end
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.13
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-06 00:00:00.000000000 Z
11
+ date: 2018-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ds9