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.
- data/lib/zabbixapi/base.rb +3 -1
- data/zabbixapi.gemspec +1 -1
- metadata +1 -1
data/lib/zabbixapi/base.rb
CHANGED
@@ -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