zabbixapi 0.5.1b7 → 0.5.1b8

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,7 +41,7 @@ class ZabbixApi
41
41
  :method => "#{method_name}.get",
42
42
  :params => {
43
43
  :filter => {
44
- indentify.to_sym => data[indentify.to_sym]
44
+ indentify.to_sym => symbolize_keys(data)[indentify.to_sym]
45
45
  },
46
46
  :output => "extend"
47
47
  }
@@ -53,7 +53,7 @@ class ZabbixApi
53
53
  :method => "#{method_name}.get",
54
54
  :params => {
55
55
  :filter => {
56
- key.to_sym => data[key.to_sym]
56
+ key.to_sym => symbolize_keys(data)[key.to_sym]
57
57
  },
58
58
  :output => "extend"
59
59
  }
@@ -71,7 +71,7 @@ class ZabbixApi
71
71
  def get_id(data)
72
72
  result = symbolize_keys( get_full_data(data) )
73
73
  id = nil
74
- result.each { |item| id = item[key.to_sym].to_i if item[indentify.to_sym] == data[indentify.to_sym] }
74
+ result.each { |item| id = symbolize_keys(item)[key.to_sym].to_i if symbolize_keys(item)[indentify.to_sym] == data[indentify.to_sym] }
75
75
  id
76
76
  end
77
77
 
@@ -1,3 +1,3 @@
1
1
  class ZabbixApi
2
- VERSION = "0.5.1b7"
2
+ VERSION = "0.5.1b8"
3
3
  end
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.1b7
4
+ version: 0.5.1b8
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: 2549650011715709632
66
+ hash: -1952167078845178877
67
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  none: false
69
69
  requirements: