zabbix-client 0.0.7 → 0.0.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98e061336da61cde9ec724f506387ff91968312f
4
- data.tar.gz: 2e1d52825ff37bcf5687f50f816b9006089cef24
3
+ metadata.gz: 97e009a0f9bd9e5a5e4d1c9ed23071ea7034ea54
4
+ data.tar.gz: 855a219210659c86973708d77f8b7f62620b5a20
5
5
  SHA512:
6
- metadata.gz: 28303aee59b5658c34c2119af8db0c6b2732a6fe7db3a768fa2fbf8dfafa8bd50e329b8c7552a938099d59bfa65d0f69c343fc5fc419717c5634f686c9e0ad1a
7
- data.tar.gz: e970fbc3fb889e368e395b90b30f408c733bfdde3307dae29c303c8b5bc5b258de55979d5c120d3d7a63750a8cb181522b509e170b9a6a295c453eb749b01541
6
+ metadata.gz: 72a255c5b90ea8339bb4687e501c66cf8cdbc6647728916b21dd34d9facf8de95815813ff348062a090d38ecd5498628929494364ce8dac0a049b8932d3f9966
7
+ data.tar.gz: 47c2eaa1d52cad22a4898531733d245a39946fc408937aeb8df3d1e098ec840b9928d89edb07e3b446f9604e80a6247d696be42cd261ee06c3e81d552169e538
data/README.md CHANGED
@@ -53,7 +53,7 @@ client.hostgroup.delete([9, 10])
53
53
  ```ruby
54
54
  Zabbix::Client.new(
55
55
  'http://localhost/zabbix/api_jsonrpc.php',
56
- proxy_user: 'username', proxy_password: 'password'
56
+ proxy_host: 'hostname', proxy_port: 8080
57
57
  )
58
58
  ```
59
59
 
@@ -68,9 +68,9 @@ class Zabbix::Client
68
68
 
69
69
  body = JSON.dump(body)
70
70
 
71
- proxy_user = options[:proxy_user]
72
- proxy_password = options[:proxy_password]
73
- http = Net::HTTP.Proxy(proxy_user, proxy_password).new(@client.url.host, @client.url.port)
71
+ proxy_host = options[:proxy_host]
72
+ proxy_port = options[:proxy_port]
73
+ http = Net::HTTP.Proxy(proxy_host, proxy_port).new(@client.url.host, @client.url.port)
74
74
 
75
75
  if @client.url.scheme == 'https'
76
76
  http.use_ssl = true
@@ -1,5 +1,5 @@
1
1
  module Zabbix
2
2
  class Client
3
- VERSION = '0.0.7'
3
+ VERSION = '0.0.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zabbix-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-30 00:00:00.000000000 Z
11
+ date: 2014-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler