zabbixapi 0.5.2b5 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ class ZabbixApi
29
29
  )
30
30
  end
31
31
 
32
- def update__(data)
32
+ def safe_update(data)
33
33
  log "[DEBUG] Call update with parametrs: #{data.inspect}"
34
34
 
35
35
  dump = {}
@@ -0,0 +1,10 @@
1
+ class ZabbixApi
2
+ class Triggers < Basic
3
+
4
+ def create_or_update(data)
5
+ log "[DEBUG] Call create_or_update with parametrs: #{data.inspect}"
6
+ get_or_create(data)
7
+ end
8
+
9
+ end
10
+ end
@@ -1,3 +1,3 @@
1
1
  class ZabbixApi
2
- VERSION = "0.5.2b5"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zabbixapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2b5
5
- prerelease: 5
4
+ version: 0.5.2
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Vasiliev D.V.
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-17 00:00:00.000000000 Z
12
+ date: 2013-01-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -57,6 +57,7 @@ files:
57
57
  - lib/zabbixapi/classes/server.rb
58
58
  - lib/zabbixapi/classes/templates.rb
59
59
  - lib/zabbixapi/classes/triggers.rb
60
+ - lib/zabbixapi/classes/unusable.rb
60
61
  - lib/zabbixapi/classes/usergroups.rb
61
62
  - lib/zabbixapi/classes/users.rb
62
63
  - lib/zabbixapi/client.rb
@@ -79,13 +80,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
80
  version: '0'
80
81
  segments:
81
82
  - 0
82
- hash: -2812187451419365862
83
+ hash: 1798577269349894886
83
84
  required_rubygems_version: !ruby/object:Gem::Requirement
84
85
  none: false
85
86
  requirements:
86
- - - ! '>'
87
+ - - ! '>='
87
88
  - !ruby/object:Gem::Version
88
- version: 1.3.1
89
+ version: '0'
89
90
  requirements: []
90
91
  rubyforge_project: zabbixapi
91
92
  rubygems_version: 1.8.24