zenoss_client 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -0
- data/VERSION +1 -1
- data/lib/zenoss/jsonapi/device_router.rb +4 -4
- data/test/test_helper.rb +2 -2
- metadata +24 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 981ffe9b6d5043244cd38fbf2edf62bdccbd62b9
|
4
|
+
data.tar.gz: 80f7544773d814c72ccae5a3d2e657064e5af513
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a70d8df6d60198b6807bcc5ed44b89c80532961563f00684914abcdc4700d1459143d234519aac926b842eeeae4f5a378b8381973345347275355b76cc6e5497
|
7
|
+
data.tar.gz: 8fb27680573b2bd8cc81f10bcf1700849d9acd784e963d58ea785fef9487c1bbc9204cfc05b90584ea13ac463e510f7dd31c04c3a0e002b8061d91bba9084dfc
|
data/.travis.yml
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.1
|
@@ -3,17 +3,17 @@
|
|
3
3
|
#
|
4
4
|
#
|
5
5
|
# This file is part of zenoss_client.
|
6
|
-
#
|
6
|
+
#
|
7
7
|
# zenoss_client is free software: you can redistribute it and/or
|
8
8
|
# modify it under the terms of the GNU General Public License as published
|
9
9
|
# by the Free Software Foundation, either version 3 of the License, or (at
|
10
10
|
# your option) any later version.
|
11
|
-
#
|
11
|
+
#
|
12
12
|
# zenoss_client is distributed in the hope that it will be useful,
|
13
13
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
14
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
15
15
|
# Public License for more details.
|
16
|
-
#
|
16
|
+
#
|
17
17
|
# You should have received a copy of the GNU General Public License along
|
18
18
|
# with zenoss_client. If not, see <http://www.gnu.org/licenses/>.
|
19
19
|
#############################################################################
|
@@ -44,7 +44,7 @@ module Zenoss
|
|
44
44
|
resp = json_request('DeviceRouter', 'getDevices', [data])
|
45
45
|
|
46
46
|
devs = []
|
47
|
-
resp['devices'].each do |dev|
|
47
|
+
resp['devices'] && resp['devices'].each do |dev|
|
48
48
|
devs << Model::Device.new(self, dev)
|
49
49
|
end
|
50
50
|
devs
|
data/test/test_helper.rb
CHANGED
@@ -2,7 +2,7 @@ $:.unshift File.join(File.dirname(__FILE__),'..','lib')
|
|
2
2
|
#http://net.tutsplus.com/tutorials/ruby/ruby-for-newbies-testing-with-rspec/
|
3
3
|
require_relative '../lib/zenoss'
|
4
4
|
require 'vcr'
|
5
|
-
|
5
|
+
require 'webmock'
|
6
6
|
|
7
7
|
ZENOSS_URL = ENV['zenoss_client_url'] || "http://localhost:8080/zport/dmd"
|
8
8
|
ZENOSS_USER = ENV['zenoss_client_username'] || "admin"
|
@@ -12,8 +12,8 @@ TEST_DEVICE_NAME = "UnitTestDevice"
|
|
12
12
|
|
13
13
|
ZENOSS_VERSION = ENV['zenoss_version'] || '4.2.5'
|
14
14
|
|
15
|
-
|
16
15
|
# VCR
|
16
|
+
WebMock.enable!
|
17
17
|
VCR.configure do |config|
|
18
18
|
config.cassette_library_dir = "test/fixtures/vcr_cassettes"
|
19
19
|
config.hook_into :webmock
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zenoss_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Wanek
|
@@ -10,104 +10,104 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httpclient
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '2.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - ~>
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: '2.0'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: tzinfo
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - ~>
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: 0.3.20
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - ~>
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 0.3.20
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: json
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - ~>
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '1.5'
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- -
|
54
|
+
- - ~>
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '1.5'
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: rake
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - '>='
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - '>='
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: minitest
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- -
|
82
|
+
- - '>='
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: vcr
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
|
-
- -
|
89
|
+
- - '>='
|
90
90
|
- !ruby/object:Gem::Version
|
91
91
|
version: '0'
|
92
92
|
type: :development
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
|
-
- -
|
96
|
+
- - '>='
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: webmock
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- -
|
103
|
+
- - '>='
|
104
104
|
- !ruby/object:Gem::Version
|
105
105
|
version: '0'
|
106
106
|
type: :development
|
107
107
|
prerelease: false
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
|
-
- -
|
110
|
+
- - '>='
|
111
111
|
- !ruby/object:Gem::Version
|
112
112
|
version: '0'
|
113
113
|
description: |2
|
@@ -125,8 +125,8 @@ extra_rdoc_files:
|
|
125
125
|
- README.textile
|
126
126
|
- COPYING.txt
|
127
127
|
files:
|
128
|
-
-
|
129
|
-
-
|
128
|
+
- .gitignore
|
129
|
+
- .travis.yml
|
130
130
|
- COPYING.txt
|
131
131
|
- Gemfile
|
132
132
|
- README.textile
|
@@ -205,26 +205,27 @@ licenses:
|
|
205
205
|
metadata: {}
|
206
206
|
post_install_message:
|
207
207
|
rdoc_options:
|
208
|
-
-
|
208
|
+
- -x
|
209
209
|
- test/
|
210
|
-
-
|
210
|
+
- -x
|
211
211
|
- examples/
|
212
212
|
require_paths:
|
213
213
|
- lib
|
214
214
|
required_ruby_version: !ruby/object:Gem::Requirement
|
215
215
|
requirements:
|
216
|
-
- -
|
216
|
+
- - '>='
|
217
217
|
- !ruby/object:Gem::Version
|
218
218
|
version: 1.8.7
|
219
219
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
220
220
|
requirements:
|
221
|
-
- -
|
221
|
+
- - '>='
|
222
222
|
- !ruby/object:Gem::Version
|
223
223
|
version: '0'
|
224
224
|
requirements: []
|
225
225
|
rubyforge_project:
|
226
|
-
rubygems_version: 2.
|
226
|
+
rubygems_version: 2.0.14
|
227
227
|
signing_key:
|
228
228
|
specification_version: 4
|
229
229
|
summary: A wrapper around the Zenoss JSON and REST APIs
|
230
230
|
test_files: []
|
231
|
+
has_rdoc:
|