zapix3 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fdf4aa43d2c84a63b21ae44e2368ede474e52a14
4
- data.tar.gz: f0474e807f3a187c2d196a8754d5c9764afd38ec
3
+ metadata.gz: 8c68f06d39c867a574b46ef8cccaa4872d0485f6
4
+ data.tar.gz: 64a2fed178d18388651064184e452c661824b002
5
5
  SHA512:
6
- metadata.gz: cf060884d337b3ce219fa37fe1852562dd2cc628dc188f218b6df93c5e619c691e68e77eda35a018c19686446791eb446a815da7b3d4ca461c86ec06bfaa55e5
7
- data.tar.gz: 03b995cb6919c21c19f757bf659b31811ff6b300e6d985b5fdf0f0fbfd0225dae06e536a860671fc9ff3e11e824cc978cd89202e4a93bee268f9f3930fcad4bc
6
+ metadata.gz: 1420817be09470a71d2c1c329a5f89af8c586b4774361584e913fe312ca2a1ce25b747bd7759ca9e922084bbf4bbf05c464a1aa01b34701d70a521f43178790c
7
+ data.tar.gz: 32c2ccebcd757f548ba3b53afd89850f11491213f29d2158d7b77b193a5550bf47128b94a6095d1b8f5d3ea6208e428bd26eed9d52ab8cd8ae2dd9ae481d74a0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zapix3 (0.2.4)
4
+ zapix3 (0.2.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module Zapix
2
- VERSION = '0.2.4'.freeze
2
+ VERSION = '0.2.5'.freeze
3
3
  end
@@ -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
- http.request(request).body
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
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-07-19 00:00:00.000000000 Z
11
+ date: 2016-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler