zbxapi 0.1.324 → 0.1.335

Sign up to get free protection for your applications and to get access to all the features.
data/api_classes/host.rb CHANGED
@@ -71,6 +71,14 @@ class ZbxAPI_Host < ZbxAPI_Sub
71
71
  obj['result']
72
72
  end
73
73
 
74
+ def update(options={})
75
+ checkauth
76
+ checkversion(1,3)
77
+
78
+ obj=do_request(json_obj('host.update',options))
79
+ obj['result']
80
+ end
81
+
74
82
  def create_template(options={})
75
83
  checkauth
76
84
  checkversion(1,3)
data/zbxapi.rb CHANGED
@@ -19,8 +19,8 @@
19
19
  #--
20
20
  ##########################################
21
21
  # Subversion information
22
- # $Id: zbxapi.rb 319 2011-09-25 21:53:30Z nelsonab $
23
- # $Revision: 319 $
22
+ # $Id: zbxapi.rb 335 2011-10-14 15:36:12Z nelsonab $
23
+ # $Revision: 335 $
24
24
  ##########################################
25
25
  #++
26
26
 
@@ -29,6 +29,9 @@
29
29
  class ZabbixAPI #create a stub to be defined later
30
30
  end
31
31
 
32
+ class ZbxAPI_Sub < ZabbixAPI #create a stub to be defined later
33
+ end
34
+
32
35
  #setup our search path or libraries
33
36
  $: << File.expand_path(File.join(File.dirname(__FILE__), '.'))
34
37
 
data/zbxapi/revision.rb CHANGED
@@ -4,4 +4,4 @@
4
4
  #the rakefile was run
5
5
 
6
6
  ZBXAPI_VERSION="0.1"
7
- ZBXAPI_REVISION="324"
7
+ ZBXAPI_REVISION="335"
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zbxapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.324
4
+ hash: 645
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 335
10
+ version: 0.1.335
5
11
  platform: ruby
6
12
  authors:
7
13
  - A. Nelson
@@ -9,19 +15,23 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2011-09-26 00:00:00 -04:00
18
+ date: 2011-10-14 00:00:00 -04:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: json
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
23
32
  version: "0"
24
- version:
33
+ type: :runtime
34
+ version_requirements: *id001
25
35
  description: Provides a straight forward interface to manipulate Zabbix servers using the Zabbix API.
26
36
  email: nelsonab@red-tux.net
27
37
  executables: []
@@ -57,21 +67,27 @@ rdoc_options: []
57
67
  require_paths:
58
68
  - .
59
69
  required_ruby_version: !ruby/object:Gem::Requirement
70
+ none: false
60
71
  requirements:
61
72
  - - ">="
62
73
  - !ruby/object:Gem::Version
74
+ hash: 3
75
+ segments:
76
+ - 0
63
77
  version: "0"
64
- version:
65
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
+ none: false
66
80
  requirements:
67
81
  - - ">="
68
82
  - !ruby/object:Gem::Version
83
+ hash: 3
84
+ segments:
85
+ - 0
69
86
  version: "0"
70
- version:
71
87
  requirements:
72
88
  - Requires json
73
89
  rubyforge_project: zbxapi
74
- rubygems_version: 1.3.5
90
+ rubygems_version: 1.3.7
75
91
  signing_key:
76
92
  specification_version: 3
77
93
  summary: Ruby wrapper to the Zabbix API