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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e4b7542ca901c9a7b69721322dfa5cac8294a10c5af3c55fb1e3064f19df156
4
- data.tar.gz: 076dd443693be95e728b601cda49dbc34a93191b62b9b14ea07b351c3cb6158a
3
+ metadata.gz: a8f4e84a0886f658f05bd62ffbe03f0586006a7a1aff9b97a7915c900e2edc6e
4
+ data.tar.gz: d0cd327492b60c398a23d4e4885fa6445e9c4ea1e6b4aff02b264d9c529a8072
5
5
  SHA512:
6
- metadata.gz: 45debfd58a35cc793df8fedf2eded4886f4c085bfdff418c35f3f35b8b2ba10973a1305eecef0650f81b4a991e3687efb86a7a1a35aa16695369a219ccd1b484
7
- data.tar.gz: 0aebc9edd72680f02eca0b7373b2fea2877019cacf39bca631c308cb5639ea711476bba2acc332d20bfc1051a36bc1ff4636606e59cb60a10adbf89c080c7b00
6
+ metadata.gz: a997c5ceaa9730a349965dab37bf09435d723641ad2a8649a848e347673ff317ae90f8eaa1ceb65378b54a1e3eacf7974d2ec6565bd1edb64f458e9a30f43351
7
+ data.tar.gz: 7bc895f73dd85e5a2e1e9ebcd4774d1ba9b4ca911c1abf394825d267dbb27ed2690993c6afcd0fee5d02617959b1bab042403edf306c0aa3a220ee62b4bcee47
data/.gitignore CHANGED
@@ -1,7 +1,7 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
3
  /_yardoc/
4
- /.Gemfile.lock/
4
+ /Gemfile.lock/
5
5
  /coverage/
6
6
  /doc/
7
7
  /pkg/
data/exe/zapishell.rb CHANGED
@@ -13,7 +13,7 @@ opts = Optimist::options do
13
13
  end
14
14
 
15
15
  print "user.login: "
16
- api = Zabbix::Api::Client.new(opts[:url])
16
+ api = Zabbix::Api::Client.new(url: opts[:url])
17
17
 
18
18
  ap api.login(user: opts[:user],pass:opts[:pass])
19
19
 
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Zabbix
4
4
  module Api
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
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.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-21 00:00:00.000000000 Z
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