zabbixapi 0.5.1b13 → 0.5.1b14
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.
- data/lib/zabbixapi/basic/basic_func.rb +5 -4
- data/lib/zabbixapi/version.rb +1 -1
- metadata +2 -2
@@ -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
|
data/lib/zabbixapi/version.rb
CHANGED
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.
|
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:
|
82
|
+
hash: -1777303927943290446
|
83
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
84
|
none: false
|
85
85
|
requirements:
|