graphite-api 0.1.7 → 0.1.8

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
  SHA1:
3
- metadata.gz: 6edfa5c2a70ca38c7eea4ed6bacb87225d8fc0c0
4
- data.tar.gz: c75863c1d0db874d6c4e38e6b602324008fc43f0
3
+ metadata.gz: 14c8492d53a5c59cdc5aac29799bd8f68f65e6a3
4
+ data.tar.gz: f507be4c76cced41e1a341522d5e3f3887a9319a
5
5
  SHA512:
6
- metadata.gz: 612f439b2f0b05501d786b9741083f8aa3899b1d50dac8aea780333d640615f5bc49ca066668a26575c59b11d7b894f0d9ac2dcf8b7a986d3307477cfb9dad4e
7
- data.tar.gz: 7c1368d0ba6a80b439f7c3433e8025c1309974850152011de11d6885f05ee8a4cb6bce94607f9a48266730431f5a66f106e56a199757d816a3afa54ca9d6fca3
6
+ metadata.gz: 2302eb52dbe69f2cb0af57a5388c60f5a744e38bba5ef4d127d7a0ce312bdbb869df4dea21338c0f12756c14224c12b695e63e64418e45271bd9555edb396ef2
7
+ data.tar.gz: 0f17e949e935de4ef4af47ad2a2f2061002cbe7a5965253b3166a4ea21dcb04d5292ffc63e47037434d3fc1a6bc90d550cee4f50862cf707bbf0a9120cad2787
@@ -28,12 +28,13 @@ module GraphiteAPI
28
28
  end
29
29
 
30
30
  def puts message
31
+ counter = 0
31
32
  begin
32
33
  Logger.debug [:connector,:puts,[@host, @port].join(":"),message]
33
34
  socket.puts message + "\n"
34
35
  rescue Errno::EPIPE, Errno::EINVAL, Errno::ETIMEDOUT
35
36
  @socket = nil
36
- retry
37
+ (counter += 1) <= 5 ? retry : raise
37
38
  end
38
39
  end
39
40
 
@@ -1,3 +1,3 @@
1
1
  module GraphiteAPI
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphite-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eran Barak Levi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-09 00:00:00.000000000 Z
11
+ date: 2017-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  version: '0'
83
83
  requirements: []
84
84
  rubyforge_project: graphite-api
85
- rubygems_version: 2.4.6
85
+ rubygems_version: 2.6.10
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Graphite Ruby Client