zbxapi 0.3.7 → 0.3.8

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: f75add24c1b9a436b1026533079b95542a36970b
4
- data.tar.gz: 7215580f5f47c1378947c15e79f44b9875506876
3
+ metadata.gz: 5c078a90f1aa2ae9df5568188547fe6140d5f16c
4
+ data.tar.gz: e9623098f38c3b9b9a180bff52347fadf09b710b
5
5
  SHA512:
6
- metadata.gz: ef5e8946e6aec045ccf4cf959ab6b585c34f2dd9037a8adac156f3952e11bde179cf98d726f647737603d815e0d10226725355b1e40ba0585a2bad0f28344e44
7
- data.tar.gz: c2feb032db1022a625b62e6071f0cbb4830b60c2f78cb840428b6b641bcc1ad9e504153d7d3f934085d2ff182d3afc6af27668cc8f01d503217064530d8de981
6
+ metadata.gz: b9c4da2662fbdb9c25288e840cb6af0892fbdf094a5eb75e796dd8b231e0917d8c8be7327e997d9bfde19cd45524cd58c25be61830fadc3aa8ec46d17f03ebeb
7
+ data.tar.gz: 9e45e6997e456fa25532fbfae9aa694a34a945980417675f657b675f4e85e6a76a9b471b2b33c113cfe0176105e40c19d039df4a13b1bcba21559874180ac8b0
@@ -0,0 +1,30 @@
1
+ # Title:: Zabbix API Ruby Library
2
+ # License:: LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
3
+ # Copyright:: Copyright (C) 2009,2010 Andrew Nelson nelsonab(at)red-tux(dot)net
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ require "api_classes/api_dsl"
20
+
21
+ class Maintenance < ZabbixAPI_Base
22
+
23
+ end
24
+
25
+ Maintenance.create
26
+ Maintenance.delete
27
+ Maintenance.exists
28
+ Maintenance.get
29
+ Maintenance.update
30
+
data/zbxapi.rb CHANGED
@@ -132,6 +132,8 @@ class ZabbixAPI
132
132
 
133
133
  if options.has_key?:custom_headers
134
134
  @custom_headers = options[:custom_headers] unless options[:custom_headers].nil?
135
+ else
136
+ @custom_headers = {}
135
137
  end
136
138
 
137
139
  #Generate the list of sub objects dynamically, from all objects
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zbxapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - A. Nelson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-27 00:00:00.000000000 Z
11
+ date: 2014-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -53,6 +53,7 @@ files:
53
53
  - api_classes/dsl_usermedia.rb
54
54
  - api_classes/dsl_hostinterface.rb
55
55
  - api_classes/dsl_action.rb
56
+ - api_classes/dsl_maintenance.rb
56
57
  - api_classes/dsl_item.rb
57
58
  - api_classes/dsl_history.rb
58
59
  - api_classes/dsl_dcheck.rb