zabbixapi 0.1.9 → 0.2.0

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.
@@ -33,11 +33,13 @@ module Zabbix
33
33
  @debug = false # Disable debug by default
34
34
  @basic_auth = false #Disable basic_auth by default
35
35
 
36
+ @proxy_uri = nil
37
+
36
38
  unless ENV['http_proxy'].nil?
37
39
  @proxy_uri = URI.parse(ENV['http_proxy'])
38
40
  @proxy_host = proxy_uri.host
39
41
  @proxy_port = proxy_uri.port
40
- @proxy_user, proxy_pass = proxy_uri.userinfo.split(/:/) if proxy_uri.userinfo
42
+ @proxy_user, @proxy_pass = proxy_uri.userinfo.split(/:/) if proxy_uri.userinfo
41
43
  end
42
44
  end
43
45
 
data/zabbixapi.gemspec CHANGED
@@ -4,7 +4,7 @@ require 'rake'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
 
7
- spec.version = '0.1.9'
7
+ spec.version = '0.2.0'
8
8
  spec.name = 'zabbixapi'
9
9
  spec.summary = 'Ruby module for work with zabbix api.'
10
10
 
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.1.9
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: