cloudstack_client 1.5.12 → 2.0.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.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +23 -0
- data/.github/workflows/ci.yml +57 -0
- data/.github/workflows/release.yml +60 -0
- data/.gitignore +4 -0
- data/.rubocop.yml +33 -0
- data/.rubocop_todo.yml +572 -0
- data/CHANGELOG.md +13 -0
- data/Gemfile +5 -0
- data/README.md +118 -23
- data/Rakefile +17 -2
- data/cloudstack_client.gemspec +23 -4
- data/lib/cloudstack_client/api.rb +39 -14
- data/lib/cloudstack_client/cli.rb +1 -1
- data/lib/cloudstack_client/client.rb +4 -1
- data/lib/cloudstack_client/configuration.rb +14 -2
- data/lib/cloudstack_client/connection.rb +26 -62
- data/lib/cloudstack_client/error.rb +1 -0
- data/lib/cloudstack_client/request_handling.rb +91 -0
- data/lib/cloudstack_client/version.rb +1 -1
- data/test/api_test.rb +23 -1
- data/test/client_test.rb +147 -13
- data/test/configuration_test.rb +84 -0
- data/test/connection_test.rb +364 -0
- data/test/data/cloudstack-empty.yml +3 -0
- data/test/data/cloudstack-incomplete.yml +5 -0
- data/test/data/cloudstack-malformed.yml +5 -0
- data/test/data/cloudstack-unsafe.yml +1 -0
- data/test/support/api_stubs.rb +85 -0
- data/test/test_helper.rb +38 -1
- data/test/utils_test.rb +62 -0
- metadata +131 -19
- data/.travis.yml +0 -8
- data/Gemfile.lock +0 -27
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudstack_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nik Wolfgramm
|
|
@@ -9,6 +9,20 @@ bindir: bin
|
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: base64
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '0.1'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '0.1'
|
|
12
26
|
- !ruby/object:Gem::Dependency
|
|
13
27
|
name: rake
|
|
14
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -55,17 +69,108 @@ dependencies:
|
|
|
55
69
|
name: minitest
|
|
56
70
|
requirement: !ruby/object:Gem::Requirement
|
|
57
71
|
requirements:
|
|
58
|
-
- - "
|
|
72
|
+
- - ">="
|
|
59
73
|
- !ruby/object:Gem::Version
|
|
60
74
|
version: '5.14'
|
|
75
|
+
- - "<"
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '7'
|
|
61
78
|
type: :development
|
|
62
79
|
prerelease: false
|
|
63
80
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
81
|
requirements:
|
|
65
|
-
- - "
|
|
82
|
+
- - ">="
|
|
66
83
|
- !ruby/object:Gem::Version
|
|
67
84
|
version: '5.14'
|
|
68
|
-
|
|
85
|
+
- - "<"
|
|
86
|
+
- !ruby/object:Gem::Version
|
|
87
|
+
version: '7'
|
|
88
|
+
- !ruby/object:Gem::Dependency
|
|
89
|
+
name: minitest-reporters
|
|
90
|
+
requirement: !ruby/object:Gem::Requirement
|
|
91
|
+
requirements:
|
|
92
|
+
- - "~>"
|
|
93
|
+
- !ruby/object:Gem::Version
|
|
94
|
+
version: '1.8'
|
|
95
|
+
type: :development
|
|
96
|
+
prerelease: false
|
|
97
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
98
|
+
requirements:
|
|
99
|
+
- - "~>"
|
|
100
|
+
- !ruby/object:Gem::Version
|
|
101
|
+
version: '1.8'
|
|
102
|
+
- !ruby/object:Gem::Dependency
|
|
103
|
+
name: webmock
|
|
104
|
+
requirement: !ruby/object:Gem::Requirement
|
|
105
|
+
requirements:
|
|
106
|
+
- - "~>"
|
|
107
|
+
- !ruby/object:Gem::Version
|
|
108
|
+
version: '3.26'
|
|
109
|
+
type: :development
|
|
110
|
+
prerelease: false
|
|
111
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
112
|
+
requirements:
|
|
113
|
+
- - "~>"
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: '3.26'
|
|
116
|
+
- !ruby/object:Gem::Dependency
|
|
117
|
+
name: benchmark
|
|
118
|
+
requirement: !ruby/object:Gem::Requirement
|
|
119
|
+
requirements:
|
|
120
|
+
- - ">="
|
|
121
|
+
- !ruby/object:Gem::Version
|
|
122
|
+
version: '0.3'
|
|
123
|
+
type: :development
|
|
124
|
+
prerelease: false
|
|
125
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
126
|
+
requirements:
|
|
127
|
+
- - ">="
|
|
128
|
+
- !ruby/object:Gem::Version
|
|
129
|
+
version: '0.3'
|
|
130
|
+
- !ruby/object:Gem::Dependency
|
|
131
|
+
name: rubocop
|
|
132
|
+
requirement: !ruby/object:Gem::Requirement
|
|
133
|
+
requirements:
|
|
134
|
+
- - "~>"
|
|
135
|
+
- !ruby/object:Gem::Version
|
|
136
|
+
version: '1.90'
|
|
137
|
+
type: :development
|
|
138
|
+
prerelease: false
|
|
139
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
140
|
+
requirements:
|
|
141
|
+
- - "~>"
|
|
142
|
+
- !ruby/object:Gem::Version
|
|
143
|
+
version: '1.90'
|
|
144
|
+
- !ruby/object:Gem::Dependency
|
|
145
|
+
name: rubocop-minitest
|
|
146
|
+
requirement: !ruby/object:Gem::Requirement
|
|
147
|
+
requirements:
|
|
148
|
+
- - "~>"
|
|
149
|
+
- !ruby/object:Gem::Version
|
|
150
|
+
version: '0.40'
|
|
151
|
+
type: :development
|
|
152
|
+
prerelease: false
|
|
153
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
154
|
+
requirements:
|
|
155
|
+
- - "~>"
|
|
156
|
+
- !ruby/object:Gem::Version
|
|
157
|
+
version: '0.40'
|
|
158
|
+
- !ruby/object:Gem::Dependency
|
|
159
|
+
name: rubocop-rake
|
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
|
161
|
+
requirements:
|
|
162
|
+
- - "~>"
|
|
163
|
+
- !ruby/object:Gem::Version
|
|
164
|
+
version: '0.7'
|
|
165
|
+
type: :development
|
|
166
|
+
prerelease: false
|
|
167
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
168
|
+
requirements:
|
|
169
|
+
- - "~>"
|
|
170
|
+
- !ruby/object:Gem::Version
|
|
171
|
+
version: '0.7'
|
|
172
|
+
description: A Ruby client for the Apache CloudStack API that builds its methods dynamically
|
|
173
|
+
from the CloudStack API definition, including an interactive console.
|
|
69
174
|
email:
|
|
70
175
|
- nik.wolfgramm@gmail.com
|
|
71
176
|
executables:
|
|
@@ -73,10 +178,14 @@ executables:
|
|
|
73
178
|
extensions: []
|
|
74
179
|
extra_rdoc_files: []
|
|
75
180
|
files:
|
|
181
|
+
- ".github/dependabot.yml"
|
|
182
|
+
- ".github/workflows/ci.yml"
|
|
183
|
+
- ".github/workflows/release.yml"
|
|
76
184
|
- ".gitignore"
|
|
77
|
-
- ".
|
|
185
|
+
- ".rubocop.yml"
|
|
186
|
+
- ".rubocop_todo.yml"
|
|
187
|
+
- CHANGELOG.md
|
|
78
188
|
- Gemfile
|
|
79
|
-
- Gemfile.lock
|
|
80
189
|
- LICENSE.txt
|
|
81
190
|
- README.md
|
|
82
191
|
- Rakefile
|
|
@@ -90,21 +199,33 @@ files:
|
|
|
90
199
|
- lib/cloudstack_client/configuration.rb
|
|
91
200
|
- lib/cloudstack_client/connection.rb
|
|
92
201
|
- lib/cloudstack_client/error.rb
|
|
202
|
+
- lib/cloudstack_client/request_handling.rb
|
|
93
203
|
- lib/cloudstack_client/utils.rb
|
|
94
204
|
- lib/cloudstack_client/version.rb
|
|
95
205
|
- test/api_test.rb
|
|
96
206
|
- test/benchmark.rb
|
|
97
207
|
- test/client_test.rb
|
|
98
208
|
- test/configuration_test.rb
|
|
209
|
+
- test/connection_test.rb
|
|
99
210
|
- test/data/0.42.json
|
|
100
211
|
- test/data/0.42.json.gz
|
|
101
212
|
- test/data/cloudstack-1.yml
|
|
102
213
|
- test/data/cloudstack-2.yml
|
|
214
|
+
- test/data/cloudstack-empty.yml
|
|
215
|
+
- test/data/cloudstack-incomplete.yml
|
|
216
|
+
- test/data/cloudstack-malformed.yml
|
|
217
|
+
- test/data/cloudstack-unsafe.yml
|
|
218
|
+
- test/support/api_stubs.rb
|
|
103
219
|
- test/test_helper.rb
|
|
220
|
+
- test/utils_test.rb
|
|
104
221
|
homepage: https://github.com/niwo/cloudstack_client
|
|
105
222
|
licenses:
|
|
106
223
|
- MIT
|
|
107
|
-
metadata:
|
|
224
|
+
metadata:
|
|
225
|
+
homepage_uri: https://github.com/niwo/cloudstack_client
|
|
226
|
+
bug_tracker_uri: https://github.com/niwo/cloudstack_client/issues
|
|
227
|
+
changelog_uri: https://github.com/niwo/cloudstack_client/releases
|
|
228
|
+
rubygems_mfa_required: 'true'
|
|
108
229
|
rdoc_options:
|
|
109
230
|
- "--line-numbers"
|
|
110
231
|
- "--inline-source"
|
|
@@ -114,23 +235,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
114
235
|
requirements:
|
|
115
236
|
- - ">="
|
|
116
237
|
- !ruby/object:Gem::Version
|
|
117
|
-
version:
|
|
238
|
+
version: '3.0'
|
|
118
239
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
240
|
requirements:
|
|
120
241
|
- - ">="
|
|
121
242
|
- !ruby/object:Gem::Version
|
|
122
243
|
version: '0'
|
|
123
244
|
requirements: []
|
|
124
|
-
rubygems_version:
|
|
245
|
+
rubygems_version: 4.0.18
|
|
125
246
|
specification_version: 4
|
|
126
247
|
summary: CloudStack API client written in Ruby
|
|
127
|
-
test_files:
|
|
128
|
-
- test/api_test.rb
|
|
129
|
-
- test/benchmark.rb
|
|
130
|
-
- test/client_test.rb
|
|
131
|
-
- test/configuration_test.rb
|
|
132
|
-
- test/data/0.42.json
|
|
133
|
-
- test/data/0.42.json.gz
|
|
134
|
-
- test/data/cloudstack-1.yml
|
|
135
|
-
- test/data/cloudstack-2.yml
|
|
136
|
-
- test/test_helper.rb
|
|
248
|
+
test_files: []
|
data/.travis.yml
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
cloudstack_client (1.5.11)
|
|
5
|
-
|
|
6
|
-
GEM
|
|
7
|
-
remote: https://rubygems.org/
|
|
8
|
-
specs:
|
|
9
|
-
bond (0.5.1)
|
|
10
|
-
minitest (5.27.0)
|
|
11
|
-
rake (13.3.1)
|
|
12
|
-
ripl (0.7.1)
|
|
13
|
-
bond (~> 0.5.1)
|
|
14
|
-
thor (1.5.0)
|
|
15
|
-
|
|
16
|
-
PLATFORMS
|
|
17
|
-
x86_64-linux
|
|
18
|
-
|
|
19
|
-
DEPENDENCIES
|
|
20
|
-
cloudstack_client!
|
|
21
|
-
minitest (~> 5.14)
|
|
22
|
-
rake (~> 13.0)
|
|
23
|
-
ripl (~> 0.7)
|
|
24
|
-
thor (~> 1.1)
|
|
25
|
-
|
|
26
|
-
BUNDLED WITH
|
|
27
|
-
2.6.9
|