zbxapi 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/zbxapi.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61b077a5fa633e31fed897e4e786df74fabcfea7
4
- data.tar.gz: 940ab012cdd8c72daf71edb5c4d2e38e0f05f1ae
3
+ metadata.gz: f75add24c1b9a436b1026533079b95542a36970b
4
+ data.tar.gz: 7215580f5f47c1378947c15e79f44b9875506876
5
5
  SHA512:
6
- metadata.gz: 96fc42cbb86e125aeb8d768e8920474a0f9d7521eb974f0519568e1a486dcc3258bc7004eed94adfac1cc6dcacf90207ea8e77a59aa9fde0d14f62568f2f19c8
7
- data.tar.gz: 7f319d188968e1f084aa7ea79b7ce2693c788447e2e5fdd39dcf8db2d74b417b1b320d2d20243d83734a0947864a75f3a43e9b8945d8afe37332ebc1cdef272c
6
+ metadata.gz: ef5e8946e6aec045ccf4cf959ab6b585c34f2dd9037a8adac156f3952e11bde179cf98d726f647737603d815e0d10226725355b1e40ba0585a2bad0f28344e44
7
+ data.tar.gz: c2feb032db1022a625b62e6071f0cbb4830b60c2f78cb840428b6b641bcc1ad9e504153d7d3f934085d2ff182d3afc6af27668cc8f01d503217064530d8de981
data/zbxapi.rb CHANGED
@@ -75,7 +75,7 @@ class ZabbixAPI
75
75
  @url=nil
76
76
  @verify_ssl=true
77
77
  @proxy_server=nil
78
- @custom_headers=[]
78
+ @custom_headers={}
79
79
 
80
80
  private
81
81
  @user_name=''
@@ -131,7 +131,7 @@ class ZabbixAPI
131
131
  end
132
132
 
133
133
  if options.has_key?:custom_headers
134
- @custom_headers = options[:custom_headers];
134
+ @custom_headers = options[:custom_headers] unless options[:custom_headers].nil?
135
135
  end
136
136
 
137
137
  #Generate the list of sub objects dynamically, from all objects
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zbxapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - A. Nelson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-20 00:00:00.000000000 Z
11
+ date: 2014-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json