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
data/.rubocop_todo.yml
ADDED
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
# This configuration was generated by
|
|
2
|
+
# `rubocop --auto-gen-config`
|
|
3
|
+
# on 2026-08-24 21:20:47 UTC using RuboCop version 1.90.0.
|
|
4
|
+
# The point is for the user to remove these configuration records
|
|
5
|
+
# one by one as the offenses are removed from the code base.
|
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
|
8
|
+
|
|
9
|
+
# Offense count: 11
|
|
10
|
+
# Configuration parameters: EnforcedStyle, AllowedGems.
|
|
11
|
+
# SupportedStyles: Gemfile, gems.rb, gemspec
|
|
12
|
+
Gemspec/DevelopmentDependencies:
|
|
13
|
+
Exclude:
|
|
14
|
+
- 'cloudstack_client.gemspec'
|
|
15
|
+
|
|
16
|
+
# Offense count: 2
|
|
17
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
18
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation.
|
|
19
|
+
Gemspec/OrderedDependencies:
|
|
20
|
+
Exclude:
|
|
21
|
+
- 'cloudstack_client.gemspec'
|
|
22
|
+
|
|
23
|
+
# Offense count: 19
|
|
24
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
25
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
26
|
+
# SupportedStyles: with_first_argument, with_fixed_indentation
|
|
27
|
+
Layout/ArgumentAlignment:
|
|
28
|
+
Exclude:
|
|
29
|
+
- 'lib/cloudstack_client/cli.rb'
|
|
30
|
+
- 'test/client_test.rb'
|
|
31
|
+
- 'test/connection_test.rb'
|
|
32
|
+
|
|
33
|
+
# Offense count: 1
|
|
34
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
35
|
+
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
|
|
36
|
+
# SupportedStyles: case, end
|
|
37
|
+
Layout/CaseIndentation:
|
|
38
|
+
Exclude:
|
|
39
|
+
- 'lib/cloudstack_client/cli.rb'
|
|
40
|
+
|
|
41
|
+
# Offense count: 3
|
|
42
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
43
|
+
# Configuration parameters: EnforcedStyle.
|
|
44
|
+
# SupportedStyles: leading, trailing
|
|
45
|
+
Layout/DotPosition:
|
|
46
|
+
Exclude:
|
|
47
|
+
- 'lib/cloudstack_client/utils.rb'
|
|
48
|
+
|
|
49
|
+
# Offense count: 1
|
|
50
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
51
|
+
Layout/ElseAlignment:
|
|
52
|
+
Exclude:
|
|
53
|
+
- 'lib/cloudstack_client/api.rb'
|
|
54
|
+
|
|
55
|
+
# Offense count: 1
|
|
56
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
57
|
+
Layout/EmptyLineAfterGuardClause:
|
|
58
|
+
Exclude:
|
|
59
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
60
|
+
|
|
61
|
+
# Offense count: 1
|
|
62
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
63
|
+
# Configuration parameters: NumberOfEmptyLines.
|
|
64
|
+
Layout/EmptyLineAfterMagicComment:
|
|
65
|
+
Exclude:
|
|
66
|
+
- 'cloudstack_client.gemspec'
|
|
67
|
+
|
|
68
|
+
# Offense count: 1
|
|
69
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
70
|
+
Layout/EmptyLines:
|
|
71
|
+
Exclude:
|
|
72
|
+
- 'lib/cloudstack_client/client.rb'
|
|
73
|
+
|
|
74
|
+
# Offense count: 1
|
|
75
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
76
|
+
Layout/EmptyLinesAfterModuleInclusion:
|
|
77
|
+
Exclude:
|
|
78
|
+
- 'lib/cloudstack_client/client.rb'
|
|
79
|
+
|
|
80
|
+
# Offense count: 3
|
|
81
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
82
|
+
# Configuration parameters: EnforcedStyle.
|
|
83
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
|
84
|
+
Layout/EmptyLinesAroundBlockBody:
|
|
85
|
+
Exclude:
|
|
86
|
+
- 'test/api_test.rb'
|
|
87
|
+
- 'test/configuration_test.rb'
|
|
88
|
+
|
|
89
|
+
# Offense count: 4
|
|
90
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
91
|
+
# Configuration parameters: EnforcedStyle.
|
|
92
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
|
|
93
|
+
Layout/EmptyLinesAroundClassBody:
|
|
94
|
+
Exclude:
|
|
95
|
+
- 'lib/cloudstack_client/api.rb'
|
|
96
|
+
- 'lib/cloudstack_client/cli.rb'
|
|
97
|
+
- 'lib/cloudstack_client/client.rb'
|
|
98
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
99
|
+
|
|
100
|
+
# Offense count: 4
|
|
101
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
102
|
+
# Configuration parameters: EnforcedStyle.
|
|
103
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
104
|
+
Layout/EmptyLinesAroundModuleBody:
|
|
105
|
+
Exclude:
|
|
106
|
+
- 'lib/cloudstack_client/configuration.rb'
|
|
107
|
+
- 'lib/cloudstack_client/utils.rb'
|
|
108
|
+
|
|
109
|
+
# Offense count: 3
|
|
110
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
111
|
+
# Configuration parameters: EnforcedStyleAlignWith.
|
|
112
|
+
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
|
113
|
+
Layout/EndAlignment:
|
|
114
|
+
Exclude:
|
|
115
|
+
- 'lib/cloudstack_client/api.rb'
|
|
116
|
+
- 'lib/cloudstack_client/cli.rb'
|
|
117
|
+
|
|
118
|
+
# Offense count: 1
|
|
119
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
120
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
121
|
+
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
|
122
|
+
Layout/FirstArgumentIndentation:
|
|
123
|
+
Exclude:
|
|
124
|
+
- 'test/api_test.rb'
|
|
125
|
+
|
|
126
|
+
# Offense count: 6
|
|
127
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
128
|
+
# Configuration parameters: IndentationWidth.
|
|
129
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
|
130
|
+
Layout/FirstHashElementIndentation:
|
|
131
|
+
EnforcedStyle: consistent
|
|
132
|
+
|
|
133
|
+
# Offense count: 13
|
|
134
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
135
|
+
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
136
|
+
# SupportedHashRocketStyles: key, separator, table
|
|
137
|
+
# SupportedColonStyles: key, separator, table
|
|
138
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
139
|
+
Layout/HashAlignment:
|
|
140
|
+
Exclude:
|
|
141
|
+
- 'cloudstack_client.gemspec'
|
|
142
|
+
- 'lib/cloudstack_client/cli.rb'
|
|
143
|
+
- 'test/api_test.rb'
|
|
144
|
+
|
|
145
|
+
# Offense count: 1
|
|
146
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
147
|
+
# Configuration parameters: IndentationWidth, EnforcedStyle.
|
|
148
|
+
# SupportedStyles: spaces, tabs
|
|
149
|
+
Layout/IndentationStyle:
|
|
150
|
+
Exclude:
|
|
151
|
+
- 'lib/cloudstack_client/cli.rb'
|
|
152
|
+
|
|
153
|
+
# Offense count: 1
|
|
154
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
155
|
+
# Configuration parameters: Width, EnforcedStyleAlignWith, AllowedPatterns.
|
|
156
|
+
# SupportedStylesAlignWith: start_of_line, relative_to_receiver
|
|
157
|
+
Layout/IndentationWidth:
|
|
158
|
+
Exclude:
|
|
159
|
+
- 'lib/cloudstack_client/api.rb'
|
|
160
|
+
|
|
161
|
+
# Offense count: 8
|
|
162
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
163
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
164
|
+
# SupportedStyles: aligned, indented, indented_relative_to_receiver
|
|
165
|
+
Layout/MultilineMethodCallIndentation:
|
|
166
|
+
Exclude:
|
|
167
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
168
|
+
- 'test/client_test.rb'
|
|
169
|
+
- 'test/connection_test.rb'
|
|
170
|
+
|
|
171
|
+
# Offense count: 2
|
|
172
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
173
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
|
174
|
+
# SupportedStyles: aligned, indented
|
|
175
|
+
Layout/MultilineOperationIndentation:
|
|
176
|
+
Exclude:
|
|
177
|
+
- 'lib/cloudstack_client/api.rb'
|
|
178
|
+
|
|
179
|
+
# Offense count: 2
|
|
180
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
181
|
+
Layout/SpaceAfterComma:
|
|
182
|
+
Exclude:
|
|
183
|
+
- 'lib/cloudstack_client/utils.rb'
|
|
184
|
+
|
|
185
|
+
# Offense count: 2
|
|
186
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
187
|
+
# Configuration parameters: EnforcedStyle.
|
|
188
|
+
# SupportedStyles: space, no_space
|
|
189
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
|
190
|
+
Exclude:
|
|
191
|
+
- 'lib/cloudstack_client/cli.rb'
|
|
192
|
+
|
|
193
|
+
# Offense count: 2
|
|
194
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
195
|
+
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals.
|
|
196
|
+
# SupportedStylesForExponentOperator: space, no_space
|
|
197
|
+
# SupportedStylesForRationalLiterals: space, no_space
|
|
198
|
+
Layout/SpaceAroundOperators:
|
|
199
|
+
Exclude:
|
|
200
|
+
- 'test/benchmark.rb'
|
|
201
|
+
|
|
202
|
+
# Offense count: 1
|
|
203
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
204
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
|
205
|
+
# SupportedStyles: space, no_space
|
|
206
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
|
207
|
+
Layout/SpaceBeforeBlockBraces:
|
|
208
|
+
Exclude:
|
|
209
|
+
- 'lib/cloudstack_client/cli.rb'
|
|
210
|
+
|
|
211
|
+
# Offense count: 5
|
|
212
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
213
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
|
214
|
+
# SupportedStyles: space, no_space
|
|
215
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
|
216
|
+
Layout/SpaceInsideBlockBraces:
|
|
217
|
+
Exclude:
|
|
218
|
+
- 'lib/cloudstack_client/api.rb'
|
|
219
|
+
- 'lib/cloudstack_client/cli.rb'
|
|
220
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
221
|
+
|
|
222
|
+
# Offense count: 2
|
|
223
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
224
|
+
# Configuration parameters: EnforcedStyle.
|
|
225
|
+
# SupportedStyles: space, no_space
|
|
226
|
+
Layout/SpaceInsideStringInterpolation:
|
|
227
|
+
Exclude:
|
|
228
|
+
- 'lib/cloudstack_client/api.rb'
|
|
229
|
+
|
|
230
|
+
# Offense count: 2
|
|
231
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
232
|
+
# Configuration parameters: AllowSafeAssignment.
|
|
233
|
+
Lint/AssignmentInCondition:
|
|
234
|
+
Exclude:
|
|
235
|
+
- 'lib/cloudstack_client/configuration.rb'
|
|
236
|
+
|
|
237
|
+
# Offense count: 1
|
|
238
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
239
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
|
240
|
+
Lint/UnusedBlockArgument:
|
|
241
|
+
Exclude:
|
|
242
|
+
- 'lib/cloudstack_client/client.rb'
|
|
243
|
+
|
|
244
|
+
# Offense count: 7
|
|
245
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
|
|
246
|
+
Metrics/AbcSize:
|
|
247
|
+
Max: 72
|
|
248
|
+
|
|
249
|
+
# Offense count: 1
|
|
250
|
+
# Configuration parameters: CountComments, CountAsOne.
|
|
251
|
+
Metrics/ClassLength:
|
|
252
|
+
Max: 145
|
|
253
|
+
|
|
254
|
+
# Offense count: 4
|
|
255
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
256
|
+
Metrics/CyclomaticComplexity:
|
|
257
|
+
Max: 24
|
|
258
|
+
|
|
259
|
+
# Offense count: 9
|
|
260
|
+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
261
|
+
Metrics/MethodLength:
|
|
262
|
+
Max: 48
|
|
263
|
+
|
|
264
|
+
# Offense count: 3
|
|
265
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns.
|
|
266
|
+
Metrics/PerceivedComplexity:
|
|
267
|
+
Max: 26
|
|
268
|
+
|
|
269
|
+
# Offense count: 9
|
|
270
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
271
|
+
Minitest/EmptyLineBeforeAssertionMethods:
|
|
272
|
+
Exclude:
|
|
273
|
+
- 'test/api_test.rb'
|
|
274
|
+
- 'test/client_test.rb'
|
|
275
|
+
- 'test/connection_test.rb'
|
|
276
|
+
- 'test/utils_test.rb'
|
|
277
|
+
|
|
278
|
+
# Offense count: 3
|
|
279
|
+
Naming/AccessorMethodName:
|
|
280
|
+
Exclude:
|
|
281
|
+
- 'lib/cloudstack_client/api.rb'
|
|
282
|
+
|
|
283
|
+
# Offense count: 1
|
|
284
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
285
|
+
Security/IoMethods:
|
|
286
|
+
Exclude:
|
|
287
|
+
- 'lib/cloudstack_client/configuration.rb'
|
|
288
|
+
|
|
289
|
+
# Offense count: 1
|
|
290
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
291
|
+
Security/YAMLLoad:
|
|
292
|
+
Exclude:
|
|
293
|
+
- 'lib/cloudstack_client/configuration.rb'
|
|
294
|
+
|
|
295
|
+
# Offense count: 4
|
|
296
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
297
|
+
# Configuration parameters: EnforcedStyle.
|
|
298
|
+
# SupportedStyles: separated, grouped
|
|
299
|
+
Style/AccessorGrouping:
|
|
300
|
+
Exclude:
|
|
301
|
+
- 'lib/cloudstack_client/api.rb'
|
|
302
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
303
|
+
|
|
304
|
+
# Offense count: 1
|
|
305
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
306
|
+
# Configuration parameters: EnforcedStyle.
|
|
307
|
+
# SupportedStyles: prefer_alias, prefer_alias_method
|
|
308
|
+
Style/Alias:
|
|
309
|
+
Exclude:
|
|
310
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
311
|
+
|
|
312
|
+
# Offense count: 1
|
|
313
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
314
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules.
|
|
315
|
+
# SupportedStyles: nested, compact
|
|
316
|
+
# SupportedStylesForClasses: ~, nested, compact
|
|
317
|
+
# SupportedStylesForModules: ~, nested, compact
|
|
318
|
+
Style/ClassAndModuleChildren:
|
|
319
|
+
Exclude:
|
|
320
|
+
- 'test/test_helper.rb'
|
|
321
|
+
|
|
322
|
+
# Offense count: 1
|
|
323
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
324
|
+
Style/ColonMethodCall:
|
|
325
|
+
Exclude:
|
|
326
|
+
- 'lib/cloudstack_client/configuration.rb'
|
|
327
|
+
|
|
328
|
+
# Offense count: 6
|
|
329
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
330
|
+
Style/CommentedKeyword:
|
|
331
|
+
Exclude:
|
|
332
|
+
- 'lib/cloudstack_client/cli.rb'
|
|
333
|
+
- 'lib/cloudstack_client/client.rb'
|
|
334
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
335
|
+
|
|
336
|
+
# Offense count: 11
|
|
337
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
338
|
+
Style/Dir:
|
|
339
|
+
Exclude:
|
|
340
|
+
- 'test/api_test.rb'
|
|
341
|
+
- 'test/configuration_test.rb'
|
|
342
|
+
|
|
343
|
+
# Offense count: 1
|
|
344
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
345
|
+
Style/Encoding:
|
|
346
|
+
Exclude:
|
|
347
|
+
- 'cloudstack_client.gemspec'
|
|
348
|
+
|
|
349
|
+
# Offense count: 2
|
|
350
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
351
|
+
Style/ExpandPathArguments:
|
|
352
|
+
Exclude:
|
|
353
|
+
- 'cloudstack_client.gemspec'
|
|
354
|
+
- 'lib/cloudstack_client/api.rb'
|
|
355
|
+
|
|
356
|
+
# Offense count: 1
|
|
357
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
358
|
+
# Configuration parameters: EnforcedStyle.
|
|
359
|
+
# SupportedStyles: format, sprintf, percent
|
|
360
|
+
Style/FormatString:
|
|
361
|
+
Exclude:
|
|
362
|
+
- 'test/benchmark.rb'
|
|
363
|
+
|
|
364
|
+
# Offense count: 1
|
|
365
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
366
|
+
Style/GlobalStdStream:
|
|
367
|
+
Exclude:
|
|
368
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
369
|
+
|
|
370
|
+
# Offense count: 1
|
|
371
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
372
|
+
# Configuration parameters: MinBodyLength, AllowConsecutiveConditionals.
|
|
373
|
+
Style/GuardClause:
|
|
374
|
+
Exclude:
|
|
375
|
+
- 'lib/cloudstack_client/cli.rb'
|
|
376
|
+
|
|
377
|
+
# Offense count: 1
|
|
378
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
379
|
+
# Configuration parameters: AllowedReceivers.
|
|
380
|
+
# AllowedReceivers: Thread.current
|
|
381
|
+
Style/HashEachMethods:
|
|
382
|
+
Exclude:
|
|
383
|
+
- 'lib/cloudstack_client/client.rb'
|
|
384
|
+
|
|
385
|
+
# Offense count: 2
|
|
386
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
387
|
+
Style/IfUnlessModifier:
|
|
388
|
+
Exclude:
|
|
389
|
+
- 'lib/cloudstack_client/client.rb'
|
|
390
|
+
- 'lib/cloudstack_client/configuration.rb'
|
|
391
|
+
|
|
392
|
+
# Offense count: 2
|
|
393
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
394
|
+
Style/LineEndConcatenation:
|
|
395
|
+
Exclude:
|
|
396
|
+
- 'lib/cloudstack_client/api.rb'
|
|
397
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
398
|
+
|
|
399
|
+
# Offense count: 1
|
|
400
|
+
Style/MultilineBlockChain:
|
|
401
|
+
Exclude:
|
|
402
|
+
- 'lib/cloudstack_client/api.rb'
|
|
403
|
+
|
|
404
|
+
# Offense count: 2
|
|
405
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
406
|
+
# Configuration parameters: EnforcedStyle, Recursive.
|
|
407
|
+
# SupportedStyles: literals, strict
|
|
408
|
+
Style/MutableConstant:
|
|
409
|
+
Exclude:
|
|
410
|
+
- 'lib/cloudstack_client/api.rb'
|
|
411
|
+
- 'lib/cloudstack_client/version.rb'
|
|
412
|
+
|
|
413
|
+
# Offense count: 1
|
|
414
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
415
|
+
# Configuration parameters: AllowedMethods.
|
|
416
|
+
# AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
|
|
417
|
+
Style/NestedParenthesizedCalls:
|
|
418
|
+
Exclude:
|
|
419
|
+
- 'lib/cloudstack_client/configuration.rb'
|
|
420
|
+
|
|
421
|
+
# Offense count: 3
|
|
422
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
423
|
+
# Configuration parameters: EnforcedStyle.
|
|
424
|
+
# SupportedStyles: predicate, comparison
|
|
425
|
+
Style/NilComparison:
|
|
426
|
+
Exclude:
|
|
427
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
428
|
+
|
|
429
|
+
# Offense count: 1
|
|
430
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
431
|
+
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
|
|
432
|
+
# SupportedStyles: predicate, comparison
|
|
433
|
+
Style/NumericPredicate:
|
|
434
|
+
Exclude:
|
|
435
|
+
- 'spec/**/*'
|
|
436
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
437
|
+
|
|
438
|
+
# Offense count: 8
|
|
439
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
440
|
+
# Configuration parameters: PreferredDelimiters.
|
|
441
|
+
Style/PercentLiteralDelimiters:
|
|
442
|
+
Exclude:
|
|
443
|
+
- 'cloudstack_client.gemspec'
|
|
444
|
+
- 'lib/cloudstack_client/cli.rb'
|
|
445
|
+
- 'lib/cloudstack_client/configuration.rb'
|
|
446
|
+
- 'test/api_test.rb'
|
|
447
|
+
|
|
448
|
+
# Offense count: 2
|
|
449
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
450
|
+
# Configuration parameters: EnforcedStyle.
|
|
451
|
+
# SupportedStyles: short, verbose
|
|
452
|
+
Style/PreferredHashMethods:
|
|
453
|
+
Exclude:
|
|
454
|
+
- 'test/api_test.rb'
|
|
455
|
+
|
|
456
|
+
# Offense count: 1
|
|
457
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
458
|
+
Style/RedundantFreeze:
|
|
459
|
+
Exclude:
|
|
460
|
+
- 'test/support/api_stubs.rb'
|
|
461
|
+
|
|
462
|
+
# Offense count: 2
|
|
463
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
464
|
+
Style/RedundantPercentQ:
|
|
465
|
+
Exclude:
|
|
466
|
+
- 'cloudstack_client.gemspec'
|
|
467
|
+
|
|
468
|
+
# Offense count: 1
|
|
469
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
470
|
+
Style/RedundantRegexpArgument:
|
|
471
|
+
Exclude:
|
|
472
|
+
- 'lib/cloudstack_client/utils.rb'
|
|
473
|
+
|
|
474
|
+
# Offense count: 2
|
|
475
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
476
|
+
# Configuration parameters: AllowMultipleReturnValues.
|
|
477
|
+
Style/RedundantReturn:
|
|
478
|
+
Exclude:
|
|
479
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
480
|
+
|
|
481
|
+
# Offense count: 1
|
|
482
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
483
|
+
Style/RedundantSelf:
|
|
484
|
+
Exclude:
|
|
485
|
+
- 'lib/cloudstack_client/api.rb'
|
|
486
|
+
|
|
487
|
+
# Offense count: 2
|
|
488
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
489
|
+
Style/RedundantStringEscape:
|
|
490
|
+
Exclude:
|
|
491
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
492
|
+
|
|
493
|
+
# Offense count: 1
|
|
494
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
495
|
+
Style/RescueModifier:
|
|
496
|
+
Exclude:
|
|
497
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
498
|
+
|
|
499
|
+
# Offense count: 4
|
|
500
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
501
|
+
# Configuration parameters: EnforcedStyle.
|
|
502
|
+
# SupportedStyles: implicit, explicit
|
|
503
|
+
Style/RescueStandardError:
|
|
504
|
+
Exclude:
|
|
505
|
+
- 'lib/cloudstack_client/api.rb'
|
|
506
|
+
- 'lib/cloudstack_client/cli.rb'
|
|
507
|
+
- 'lib/cloudstack_client/configuration.rb'
|
|
508
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
509
|
+
|
|
510
|
+
# Offense count: 1
|
|
511
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
512
|
+
Style/SlicingWithRange:
|
|
513
|
+
Exclude:
|
|
514
|
+
- 'lib/cloudstack_client/utils.rb'
|
|
515
|
+
|
|
516
|
+
# Offense count: 1
|
|
517
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
518
|
+
# Configuration parameters: AllowModifier.
|
|
519
|
+
Style/SoleNestedConditional:
|
|
520
|
+
Exclude:
|
|
521
|
+
- 'lib/cloudstack_client/configuration.rb'
|
|
522
|
+
|
|
523
|
+
# Offense count: 1
|
|
524
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
525
|
+
# Configuration parameters: RequireEnglish, EnforcedStyle.
|
|
526
|
+
# SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
|
|
527
|
+
Style/SpecialGlobalVars:
|
|
528
|
+
Exclude:
|
|
529
|
+
- 'cloudstack_client.gemspec'
|
|
530
|
+
|
|
531
|
+
# Offense count: 1
|
|
532
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
533
|
+
# Configuration parameters: Mode.
|
|
534
|
+
Style/StringConcatenation:
|
|
535
|
+
Exclude:
|
|
536
|
+
- 'lib/cloudstack_client/api.rb'
|
|
537
|
+
|
|
538
|
+
# Offense count: 554
|
|
539
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
540
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
|
541
|
+
# SupportedStyles: single_quotes, double_quotes
|
|
542
|
+
Style/StringLiterals:
|
|
543
|
+
Enabled: false
|
|
544
|
+
|
|
545
|
+
# Offense count: 1
|
|
546
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
547
|
+
Style/SuperArguments:
|
|
548
|
+
Exclude:
|
|
549
|
+
- 'lib/cloudstack_client/client.rb'
|
|
550
|
+
|
|
551
|
+
# Offense count: 1
|
|
552
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
553
|
+
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
|
554
|
+
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
|
555
|
+
Style/TernaryParentheses:
|
|
556
|
+
Exclude:
|
|
557
|
+
- 'lib/cloudstack_client/connection.rb'
|
|
558
|
+
|
|
559
|
+
# Offense count: 1
|
|
560
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
561
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
|
562
|
+
# SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
|
|
563
|
+
Style/TrailingCommaInArguments:
|
|
564
|
+
Exclude:
|
|
565
|
+
- 'test/api_test.rb'
|
|
566
|
+
|
|
567
|
+
# Offense count: 2
|
|
568
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
569
|
+
Style/ZeroLengthPredicate:
|
|
570
|
+
Exclude:
|
|
571
|
+
- 'lib/cloudstack_client/api.rb'
|
|
572
|
+
- 'lib/cloudstack_client/connection.rb'
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 2.0.0 - 2026-08-25
|
|
4
|
+
|
|
5
|
+
- Require Ruby 3.0 or newer.
|
|
6
|
+
- Enable HTTPS certificate verification by default, with optional custom CA
|
|
7
|
+
certificate support.
|
|
8
|
+
- Use safe YAML loading for configuration files.
|
|
9
|
+
- Fix request dispatch when no custom host is configured.
|
|
10
|
+
- Support CloudStack command names containing acronyms, such as
|
|
11
|
+
`create_ssh_key_pair`.
|
|
12
|
+
- Improve error handling for malformed API definitions and asynchronous job
|
|
13
|
+
failures.
|
data/Gemfile
CHANGED
|
@@ -2,3 +2,8 @@ source 'https://rubygems.org'
|
|
|
2
2
|
|
|
3
3
|
# Specify your gem's dependencies in cloudstack-client.gemspec
|
|
4
4
|
gemspec
|
|
5
|
+
|
|
6
|
+
# Minitest 6 extracted Minitest::Mock and Object#stub into their own gem, but
|
|
7
|
+
# that gem requires Ruby >= 3.1. On Ruby 3.0 Bundler resolves Minitest 5, which
|
|
8
|
+
# still ships minitest/mock itself, so the require works either way.
|
|
9
|
+
gem 'minitest-mock', require: false if RUBY_VERSION >= '3.1'
|