zabbixapi 0.5.1b13 → 0.5.1b14

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,8 +10,8 @@ class ZabbixApi
10
10
  b_new = normalize_hash(b)
11
11
  hash1 = a_new.merge(b_new)
12
12
  hash2 = b_new.merge(a_new)
13
- log("hash1 == #{hash1}")
14
- log("hash2 == #{hash2}")
13
+ #log("hash1 == #{hash1}")
14
+ #log("hash2 == #{hash2}")
15
15
  hash1 == hash2
16
16
  end
17
17
 
@@ -23,12 +23,13 @@ class ZabbixApi
23
23
 
24
24
  def normalize_hash(hash)
25
25
  result = hash.dup
26
+ result.delete(:hostid)
26
27
  result.each do |key, value|
27
28
  case value
28
- when Hash
29
- result[key] = value.to_s
30
29
  when Array
31
30
  result.delete(key)
31
+ else
32
+ result[key] = value.to_s
32
33
  end
33
34
  end
34
35
  result
@@ -1,3 +1,3 @@
1
1
  class ZabbixApi
2
- VERSION = "0.5.1b13"
2
+ VERSION = "0.5.1b14"
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.1b13
4
+ version: 0.5.1b14
5
5
  prerelease: 5
6
6
  platform: ruby
7
7
  authors:
@@ -79,7 +79,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
79
  version: '0'
80
80
  segments:
81
81
  - 0
82
- hash: 2834936151065301027
82
+ hash: -1777303927943290446
83
83
  required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements: