grpclb 0.4.4 → 0.4.6

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: 4e80ab9eb796b8eaad091f9ce0627fa84642f465c162b24ce5db3b18477c593c
4
- data.tar.gz: d565b8ae18766ca1eecf13e96643fed70eb1ebf087c0717027c8535d4b43e1ae
3
+ metadata.gz: 72400d9b396ff34efbb4255f39b8a17b4b02ee396050d09548d4b1082864f6e7
4
+ data.tar.gz: fd7c797af9f8d577142f76e281973a2b42d13a6c8524161603f40a202888cc03
5
5
  SHA512:
6
- metadata.gz: b48b989997b1bebb1ed1048db41ad31658b17b7fff7bde04f1f96c2438e29c5dfa22a2381ae079d6b52a13146df21d631aac385371bb77e72fcdc99f639119ec
7
- data.tar.gz: cb9ff1d94ae9ea598c1e710486a91b5fd66a0658f8f85a0f7e2ab9ab824b1adde6d1febbd2db48f990652df93de55947d502dbd81e8605d473d6b5f662a4cb31
6
+ metadata.gz: e347b9525a5f79066f6cb31d4ba2bb41a925e69c363314be6f8a9a36d980c2ca41027ddd86042883b5594316e9a398e371a965082657f335c1c4c1837aab4be9
7
+ data.tar.gz: 7f5c4a28b1607d788adb58d6ea1cb1c6a98c9f19a8021425bde0deee482378eb833b995890e81904cbb12667ca5bf363f318bc2a0a727c6c9b670e7769052388
data/ruby/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # grpclb/ruby
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/grpclb.svg)](https://badge.fury.io/rb/grpclb)
4
+
3
5
  Ruby implementation of grpclb client and server.
4
6
 
5
7
 
@@ -23,8 +23,6 @@ class Grpclb::Client
23
23
  with_reconnect { client.send(meth, *a, &b) }
24
24
  end
25
25
  end
26
-
27
- reconnect!
28
26
  end
29
27
 
30
28
  def reconnect!
@@ -38,6 +36,10 @@ class Grpclb::Client
38
36
 
39
37
  private
40
38
 
39
+ def client
40
+ @client || reconnect!
41
+ end
42
+
41
43
  def with_reconnect
42
44
  retries = 0
43
45
  begin
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpclb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Black Square Media
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-02 00:00:00.000000000 Z
11
+ date: 2018-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc