zabbixapi 0.5.1b5 → 0.5.1b6

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,7 +23,7 @@ class ZabbixApi
23
23
 
24
24
  dump = {}
25
25
  item_id = data[key.to_sym].to_i
26
- get_full_data(data).each do |item|
26
+ get_full_data(indentify.to_sym => data[indentify.to_sym]).each do |item|
27
27
  dump = symbolize_keys(item) if item[key].to_i == data[key.to_sym].to_i
28
28
  end
29
29
 
@@ -1,3 +1,3 @@
1
1
  class ZabbixApi
2
- VERSION = "0.5.1b5"
2
+ VERSION = "0.5.1b6"
3
3
  end
data/spec/localhost.rb CHANGED
@@ -11,7 +11,7 @@ zbx = ZabbixApi.connect(
11
11
  :url => api_url,
12
12
  :user => api_login,
13
13
  :password => api_password,
14
- :debug => false
14
+ :debug => true
15
15
  )
16
16
 
17
17
  hostgroup = "hostgroup______1"
@@ -139,7 +139,7 @@ describe ZabbixApi, "test_api" do
139
139
  zbx.items.create_or_update(
140
140
  :description => item,
141
141
  :key_ => "proc.num[aaa]",
142
- :type => 6,
142
+ :status => 0,
143
143
  :hostid => zbx.templates.get_id(:host => template),
144
144
  :applications => [zbx.applications.get_id(:name => application)]
145
145
  ).should be_kind_of(Integer)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zabbixapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1b5
4
+ version: 0.5.1b6
5
5
  prerelease: 5
6
6
  platform: ruby
7
7
  authors:
@@ -63,7 +63,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  segments:
65
65
  - 0
66
- hash: -1201945505207306528
66
+ hash: 703548098159490039
67
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  none: false
69
69
  requirements: