zapix3 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/zapix/version.rb +1 -1
- data/lib/zapix/zabbix_rpc_client.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c68f06d39c867a574b46ef8cccaa4872d0485f6
|
4
|
+
data.tar.gz: 64a2fed178d18388651064184e452c661824b002
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1420817be09470a71d2c1c329a5f89af8c586b4774361584e913fe312ca2a1ce25b747bd7759ca9e922084bbf4bbf05c464a1aa01b34701d70a521f43178790c
|
7
|
+
data.tar.gz: 32c2ccebcd757f548ba3b53afd89850f11491213f29d2158d7b77b193a5550bf47128b94a6095d1b8f5d3ea6208e428bd26eed9d52ab8cd8ae2dd9ae481d74a0
|
data/Gemfile.lock
CHANGED
data/lib/zapix/version.rb
CHANGED
@@ -37,7 +37,13 @@ class ZabbixRPCClient
|
|
37
37
|
request.content_type = 'application/json'
|
38
38
|
request.body = post_body
|
39
39
|
puts "[DEBUG] Send request: #{request.body}" if debug
|
40
|
-
|
40
|
+
|
41
|
+
begin
|
42
|
+
return http.request(request).body
|
43
|
+
rescue
|
44
|
+
puts "[DEBUG] Retrying sending request: #{request.body}" if debug
|
45
|
+
retry
|
46
|
+
end
|
41
47
|
end
|
42
48
|
|
43
49
|
def authenticate
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zapix3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- stoyan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|