zabbix-api-simple 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29edc33eb38ffc5637044d089db8de87c61188c9b939610f35fa17371cd68e54
4
- data.tar.gz: 8695fad3a891752d7baae725742f816614e11259cc30977c1278db86c4598299
3
+ metadata.gz: a22800f0fc86c622d9aed2347de3474493f11063afe93574722d9775d3e183a7
4
+ data.tar.gz: 3e2d7da66ec9eec2a62b793016af6190b3682e23151599a0e5b92bf336b0ac51
5
5
  SHA512:
6
- metadata.gz: 43e8c89766180de14705412c8c4983fe941d26782d05ccca9b215d7511e093f82ea0f16416e4025db9165cc40bd418d218f0e17882fbcdf0d03dd6e907a97b84
7
- data.tar.gz: 78b1efab5a179280b9372758e70d9d0a040dbbb746c39b2e28b2c65d1069d16273ef47da075fbcf37d67cb4136c320058be621ec5e0f123c1ef3c5e989a4ce46
6
+ metadata.gz: eff8065f139dbeefff931f0939b65ef5e1205e0d8d2869e5c6fecff3582b4f4c12182ff0084bbc3a40f8d9f702d31d382eda3585fe609c6509b7c8a7de6c3487
7
+ data.tar.gz: 07c4520f7944ec3a6d5253af1416c78fb62419fe885cae49db5e9409ecb7ef7b208fb56e69e69abd6918d9e69d0151beae9b2105410566bf712b462d018fbb5e
data/CHANGELOG.md CHANGED
@@ -7,3 +7,5 @@
7
7
  - change zapishell.rb to start in the api context
8
8
  - add exception for apiinfo.version (refuses auth token for some reason)
9
9
  - add pretty inspection mode to zapishell.rb
10
+ # 0.1.6
11
+ - force faraday 1.8 - 2.0 appears to break things
data/README.md CHANGED
@@ -36,6 +36,8 @@ Once you have an authenticated instance of the client, syntax is basically alway
36
36
 
37
37
  `clientinstance.object.verb(<param kv pairs>)`
38
38
 
39
+ ![simple translation](images/zabbix-api-simple-simplicity.png)
40
+
39
41
  If "object" is unknown, "Unknown zabbix object given" will be raised.
40
42
 
41
43
  If this call results in an error from the API, a RuntimeError will be raised indicating the specifics.
@@ -106,12 +108,6 @@ It attempts to authenticate you to the given server, and then drops you to a pry
106
108
 
107
109
  Refer to the API documentation for your version of Zabbix for the particulars.
108
110
 
109
- ## Development
110
-
111
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
112
-
113
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
114
-
115
111
  ## Contributing
116
112
 
117
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/zabbix-api.
113
+ Bug reports and pull requests are welcome on GitLab at https://gitlab.com/svdasein/zabbix-api
Binary file
Binary file
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Zabbix
4
4
  module Api
5
- VERSION = "0.1.5"
5
+ VERSION = "0.1.6"
6
6
  end
7
7
  end
@@ -1092,7 +1092,7 @@
1092
1092
  </div>
1093
1093
 
1094
1094
  <div id="footer">
1095
- Generated on Sat Sep 18 20:44:22 2021 by
1095
+ Generated on Sun Sep 19 10:15:06 2021 by
1096
1096
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1097
1097
  0.9.26 (ruby-2.7.4).
1098
1098
  </div>
@@ -331,7 +331,7 @@
331
331
  </div>
332
332
 
333
333
  <div id="footer">
334
- Generated on Sat Sep 18 20:44:22 2021 by
334
+ Generated on Sun Sep 19 10:15:06 2021 by
335
335
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
336
336
  0.9.26 (ruby-2.7.4).
337
337
  </div>
@@ -105,7 +105,7 @@
105
105
  </div>
106
106
 
107
107
  <div id="footer">
108
- Generated on Sat Sep 18 20:44:22 2021 by
108
+ Generated on Sun Sep 19 10:15:06 2021 by
109
109
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
110
110
  0.9.26 (ruby-2.7.4).
111
111
  </div>
@@ -374,7 +374,7 @@
374
374
  </div>
375
375
 
376
376
  <div id="footer">
377
- Generated on Sat Sep 18 20:44:22 2021 by
377
+ Generated on Sun Sep 19 10:15:06 2021 by
378
378
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
379
379
  0.9.26 (ruby-2.7.4).
380
380
  </div>
@@ -125,7 +125,7 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Sat Sep 18 20:44:22 2021 by
128
+ Generated on Sun Sep 19 10:15:06 2021 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.9.26 (ruby-2.7.4).
131
131
  </div>
data/public/Zabbix.html CHANGED
@@ -107,7 +107,7 @@
107
107
  </div>
108
108
 
109
109
  <div id="footer">
110
- Generated on Sat Sep 18 20:44:22 2021 by
110
+ Generated on Sun Sep 19 10:15:06 2021 by
111
111
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112
112
  0.9.26 (ruby-2.7.4).
113
113
  </div>
data/public/_index.html CHANGED
@@ -170,7 +170,7 @@
170
170
  </div>
171
171
 
172
172
  <div id="footer">
173
- Generated on Sat Sep 18 20:44:22 2021 by
173
+ Generated on Sun Sep 19 10:15:06 2021 by
174
174
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
175
175
  0.9.26 (ruby-2.7.4).
176
176
  </div>
@@ -79,7 +79,7 @@
79
79
  </div></div>
80
80
 
81
81
  <div id="footer">
82
- Generated on Sat Sep 18 20:44:22 2021 by
82
+ Generated on Sun Sep 19 10:15:06 2021 by
83
83
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
84
84
  0.9.26 (ruby-2.7.4).
85
85
  </div>
@@ -60,7 +60,7 @@
60
60
  <div id="content"><div id='filecontents'>MIT License<br/><br/>Copyright (c) 2021 David Parker<br/><br/>Permission is hereby granted, free of charge, to any person obtaining a copy<br/>of this software and associated documentation files (the &quot;Software&quot;), to deal<br/>in the Software without restriction, including without limitation the rights<br/>to use, copy, modify, merge, publish, distribute, sublicense, and/or sell<br/>copies of the Software, and to permit persons to whom the Software is<br/>furnished to do so, subject to the following conditions:<br/><br/>The above copyright notice and this permission notice shall be included in all<br/>copies or substantial portions of the Software.<br/><br/>THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br/>IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br/>FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE<br/>AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br/>LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,<br/>OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE<br/>SOFTWARE.</div></div>
61
61
 
62
62
  <div id="footer">
63
- Generated on Sat Sep 18 20:44:22 2021 by
63
+ Generated on Sun Sep 19 10:15:06 2021 by
64
64
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
65
65
  0.9.26 (ruby-2.7.4).
66
66
  </div>
@@ -100,6 +100,8 @@
100
100
 
101
101
  <p><code>clientinstance.object.verb(&lt;param kv pairs&gt;)</code></p>
102
102
 
103
+ <p><img src="images/zabbix-api-simple-simplicity.png"></p>
104
+
103
105
  <p>If “object” is unknown, “Unknown zabbix object given” will be raised.</p>
104
106
 
105
107
  <p>If this call results in an error from the API, a RuntimeError will be raised indicating the specifics.</p>
@@ -168,19 +170,13 @@ Options:
168
170
 
169
171
  <p>Refer to the API documentation for your version of Zabbix for the particulars.</p>
170
172
 
171
- <h2 id="label-Development">Development</h2>
172
-
173
- <p>After checking out the repo, run <code>bin/setup</code> to install dependencies. You can also run <code>bin/console</code> for an interactive prompt that will allow you to experiment.</p>
174
-
175
- <p>To install this gem onto your local machine, run <code>bundle exec rake install</code>. To release a new version, update the version number in <code>version.rb</code>, and then run <code>bundle exec rake release</code>, which will create a git tag for the version, push git commits and the created tag, and push the <code>.gem</code> file to <a href="https://rubygems.org">rubygems.org</a>.</p>
176
-
177
173
  <h2 id="label-Contributing">Contributing</h2>
178
174
 
179
- <p>Bug reports and pull requests are welcome on GitHub at <a href="https://github.com/[USERNAME]/zabbix-api">github.com/[USERNAME]/zabbix-api</a>.</p>
175
+ <p>Bug reports and pull requests are welcome on GitLab at <a href="https://gitlab.com/svdasein/zabbix-api">gitlab.com/svdasein/zabbix-api</a></p>
180
176
  </div></div>
181
177
 
182
178
  <div id="footer">
183
- Generated on Sat Sep 18 20:44:22 2021 by
179
+ Generated on Sun Sep 19 10:15:06 2021 by
184
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
181
  0.9.26 (ruby-2.7.4).
186
182
  </div>
data/public/index.html CHANGED
@@ -100,6 +100,8 @@
100
100
 
101
101
  <p><code>clientinstance.object.verb(&lt;param kv pairs&gt;)</code></p>
102
102
 
103
+ <p><img src="images/zabbix-api-simple-simplicity.png"></p>
104
+
103
105
  <p>If “object” is unknown, “Unknown zabbix object given” will be raised.</p>
104
106
 
105
107
  <p>If this call results in an error from the API, a RuntimeError will be raised indicating the specifics.</p>
@@ -168,19 +170,13 @@ Options:
168
170
 
169
171
  <p>Refer to the API documentation for your version of Zabbix for the particulars.</p>
170
172
 
171
- <h2 id="label-Development">Development</h2>
172
-
173
- <p>After checking out the repo, run <code>bin/setup</code> to install dependencies. You can also run <code>bin/console</code> for an interactive prompt that will allow you to experiment.</p>
174
-
175
- <p>To install this gem onto your local machine, run <code>bundle exec rake install</code>. To release a new version, update the version number in <code>version.rb</code>, and then run <code>bundle exec rake release</code>, which will create a git tag for the version, push git commits and the created tag, and push the <code>.gem</code> file to <a href="https://rubygems.org">rubygems.org</a>.</p>
176
-
177
173
  <h2 id="label-Contributing">Contributing</h2>
178
174
 
179
- <p>Bug reports and pull requests are welcome on GitHub at <a href="https://github.com/[USERNAME]/zabbix-api">github.com/[USERNAME]/zabbix-api</a>.</p>
175
+ <p>Bug reports and pull requests are welcome on GitLab at <a href="https://gitlab.com/svdasein/zabbix-api">gitlab.com/svdasein/zabbix-api</a></p>
180
176
  </div></div>
181
177
 
182
178
  <div id="footer">
183
- Generated on Sat Sep 18 20:44:22 2021 by
179
+ Generated on Sun Sep 19 10:15:06 2021 by
184
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
185
181
  0.9.26 (ruby-2.7.4).
186
182
  </div>
@@ -100,7 +100,7 @@
100
100
  </div>
101
101
 
102
102
  <div id="footer">
103
- Generated on Sat Sep 18 20:44:22 2021 by
103
+ Generated on Sun Sep 19 10:15:06 2021 by
104
104
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
105
  0.9.26 (ruby-2.7.4).
106
106
  </div>
data/zabbix-api.gemspec CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
33
33
 
34
34
  # For more information and examples about making a new gem, checkout our
35
35
  # guide at: https://bundler.io/guides/creating_gem.html
36
- spec.add_dependency 'faraday'
36
+ spec.add_dependency 'faraday', "~> 1.8"
37
37
  spec.add_dependency 'optimist'
38
38
  spec.add_dependency 'amazing_print'
39
39
  spec.add_dependency 'pry'
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zabbix-api-simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Parker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-19 00:00:00.000000000 Z
11
+ date: 2022-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: optimist
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -91,6 +91,9 @@ files:
91
91
  - bin/setup
92
92
  - bin/zapishell.rb
93
93
  - exe/zapishell.rb
94
+ - images/2021-09-19_09-38.png
95
+ - images/2021-09-19_09-40.png
96
+ - images/zabbix-api-simple-simplicity.png
94
97
  - lib/zabbix/api.rb
95
98
  - lib/zabbix/api/client.rb
96
99
  - lib/zabbix/api/version.rb
@@ -111,6 +114,7 @@ files:
111
114
  - public/file.README.html
112
115
  - public/file_list.html
113
116
  - public/frames.html
117
+ - public/images/zabbix-api-simple-simplicity.png
114
118
  - public/index.html
115
119
  - public/js/app.js
116
120
  - public/js/full_list.js
@@ -140,7 +144,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
144
  - !ruby/object:Gem::Version
141
145
  version: '0'
142
146
  requirements: []
143
- rubygems_version: 3.1.6
147
+ rubyforge_project:
148
+ rubygems_version: 2.7.6
144
149
  signing_key:
145
150
  specification_version: 4
146
151
  summary: Zabbix API wrapper