zabbixapi 0.5.3b6 → 0.5.3b7

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.
@@ -29,7 +29,7 @@ class ZabbixApi
29
29
  end
30
30
 
31
31
  def delete(data)
32
- result = @client.api_request(:method => "screen.delete", :params => data )
32
+ result = @client.api_request(:method => "screen.delete", :params => [data] )
33
33
  result.empty? ? nil : result['screenids'][0].to_i
34
34
  end
35
35
 
@@ -1,3 +1,3 @@
1
1
  class ZabbixApi
2
- VERSION = "0.5.3b6"
2
+ VERSION = "0.5.3b7"
3
3
  end
data/spec/localhost.rb CHANGED
@@ -367,7 +367,7 @@ describe ZabbixApi do
367
367
 
368
368
  it "SCREEN: Delete" do
369
369
  zbx.screens.delete(
370
- [zbx.screens.get_id(:name => "#{host}_graphs")]
370
+ zbx.screens.get_id(:name => "#{host}_graphs")
371
371
  ).should eq screenid
372
372
  end
373
373
 
data/spec/run.rb CHANGED
@@ -340,7 +340,7 @@ describe ZabbixApi do
340
340
 
341
341
  it "SCREEN: Delete" do
342
342
  zbx.screens.delete(
343
- [zbx.screens.get_id(:name => "#{host}_graphs")]
343
+ zbx.screens.get_id(:name => "#{host}_graphs")
344
344
  ).should eq screenid
345
345
  end
346
346
 
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.3b6
4
+ version: 0.5.3b7
5
5
  prerelease: 5
6
6
  platform: ruby
7
7
  authors:
@@ -98,7 +98,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  segments:
100
100
  - 0
101
- hash: -3274520725239869374
101
+ hash: -3473690676502910074
102
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  none: false
104
104
  requirements: