zabbix-api-simple 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/exe/zapishell.rb +1 -1
- data/lib/zabbix/api/client.rb +3 -2
- data/lib/zabbix/api/version.rb +1 -1
- metadata +2 -3
- data/Gemfile.lock +0 -47
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8f4e84a0886f658f05bd62ffbe03f0586006a7a1aff9b97a7915c900e2edc6e
|
4
|
+
data.tar.gz: d0cd327492b60c398a23d4e4885fa6445e9c4ea1e6b4aff02b264d9c529a8072
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a997c5ceaa9730a349965dab37bf09435d723641ad2a8649a848e347673ff317ae90f8eaa1ceb65378b54a1e3eacf7974d2ec6565bd1edb64f458e9a30f43351
|
7
|
+
data.tar.gz: 7bc895f73dd85e5a2e1e9ebcd4774d1ba9b4ca911c1abf394825d267dbb27ed2690993c6afcd0fee5d02617959b1bab042403edf306c0aa3a220ee62b4bcee47
|
data/.gitignore
CHANGED
data/exe/zapishell.rb
CHANGED
data/lib/zabbix/api/client.rb
CHANGED
@@ -59,10 +59,11 @@ module Zabbix
|
|
59
59
|
attr_accessor :zabobject
|
60
60
|
|
61
61
|
|
62
|
-
def initialize(url)
|
62
|
+
def initialize(url: nil,timeout: 60)
|
63
63
|
@conn = Faraday.new(
|
64
64
|
url: url,
|
65
|
-
headers: {'Content-Type' => 'application/json-rpc'}
|
65
|
+
headers: {'Content-Type' => 'application/json-rpc'},
|
66
|
+
request: { timeout: timeout }
|
66
67
|
) do |conn|
|
67
68
|
conn.request :zabbix_api_request
|
68
69
|
end
|
data/lib/zabbix/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zabbix-api-simple
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Parker
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -63,7 +63,6 @@ extra_rdoc_files: []
|
|
63
63
|
files:
|
64
64
|
- ".gitignore"
|
65
65
|
- Gemfile
|
66
|
-
- Gemfile.lock
|
67
66
|
- README.md
|
68
67
|
- Rakefile
|
69
68
|
- bin/bundle
|
data/Gemfile.lock
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
zabbix-api-simple (0.1.1)
|
5
|
-
amazing_print
|
6
|
-
faraday
|
7
|
-
optimist
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
amazing_print (1.3.0)
|
13
|
-
coderay (1.1.3)
|
14
|
-
faraday (1.4.1)
|
15
|
-
faraday-excon (~> 1.1)
|
16
|
-
faraday-net_http (~> 1.0)
|
17
|
-
faraday-net_http_persistent (~> 1.1)
|
18
|
-
multipart-post (>= 1.2, < 3)
|
19
|
-
ruby2_keywords (>= 0.0.4)
|
20
|
-
faraday-excon (1.1.0)
|
21
|
-
faraday-net_http (1.0.1)
|
22
|
-
faraday-net_http_persistent (1.1.0)
|
23
|
-
io-console (0.5.9)
|
24
|
-
irb (1.3.5)
|
25
|
-
reline (>= 0.1.5)
|
26
|
-
method_source (1.0.0)
|
27
|
-
multipart-post (2.1.1)
|
28
|
-
optimist (3.0.1)
|
29
|
-
pry (0.14.1)
|
30
|
-
coderay (~> 1.1)
|
31
|
-
method_source (~> 1.0)
|
32
|
-
rake (13.0.3)
|
33
|
-
reline (0.2.5)
|
34
|
-
io-console (~> 0.5)
|
35
|
-
ruby2_keywords (0.0.4)
|
36
|
-
|
37
|
-
PLATFORMS
|
38
|
-
ruby
|
39
|
-
|
40
|
-
DEPENDENCIES
|
41
|
-
irb
|
42
|
-
pry
|
43
|
-
rake (~> 13.0)
|
44
|
-
zabbix-api-simple!
|
45
|
-
|
46
|
-
BUNDLED WITH
|
47
|
-
2.2.16
|