zabbixapi 0.5.2b2 → 0.5.2b3

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,6 +39,11 @@ class ZabbixApi
39
39
  applicationid = nil
40
40
  result.each { |app| applicationid = app['applicationid'].to_i if app['name'] == data[:name] }
41
41
  applicationid
42
+ if %w(127.0.0.1 localhost).include? host
43
+ host_cmd = ""
44
+ else
45
+ host_cmd = "-h #{host}"
46
+ end
42
47
  end
43
48
 
44
49
  end
@@ -29,7 +29,7 @@ class ZabbixApi
29
29
  )
30
30
  end
31
31
 
32
- def update(data)
32
+ def update__(data)
33
33
  log "[DEBUG] Call update with parametrs: #{data.inspect}"
34
34
 
35
35
  dump = {}
@@ -1,3 +1,3 @@
1
1
  class ZabbixApi
2
- VERSION = "0.5.2b2"
2
+ VERSION = "0.5.2b3"
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.2b2
4
+ version: 0.5.2b3
5
5
  prerelease: 5
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-25 00:00:00.000000000 Z
12
+ date: 2013-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -79,7 +79,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
79
  version: '0'
80
80
  segments:
81
81
  - 0
82
- hash: 3153601881555273577
82
+ hash: -3164288809874027028
83
83
  required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements: