stekker_zaptec 1.2.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +22 -0
- data/.rubocop.yml +202 -238
- data/Gemfile +1 -0
- data/Gemfile.lock +80 -72
- data/README.md +12 -0
- data/bin/release +28 -0
- data/data/constants.json +165 -16
- data/lib/stekker_zaptec.rb +0 -1
- data/lib/zaptec/client.rb +8 -6
- data/lib/zaptec/constants.rb +7 -0
- data/lib/zaptec/credentials.rb +1 -1
- data/lib/zaptec/errors.rb +1 -1
- data/lib/zaptec/meter_reading.rb +36 -0
- data/lib/zaptec/state.rb +4 -2
- data/lib/zaptec/version.rb +1 -1
- data/zaptec.gemspec +0 -1
- metadata +4 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79ebcf2348c8f571a18e9ece5b7289f0453080b32c52800695b0df329a992407
|
4
|
+
data.tar.gz: 250ac2bab2c789254168da736996c419d6676c2867455522c6cd364be5c1b1b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c5550b2528c1cdcb6da900910f19307458717d87834132b8eda4292ed17817de98cd7ce86d2ba8ad569cd24ccfe2e54b0f06e7e00427d1ea2220b79e46b2062
|
7
|
+
data.tar.gz: 636cca9efe6774c47bf1864a43bf11f2227ebe180b536e1949000b41c1e92192782464c32b4d87212f9fb69abd2f4eef8865a0a483f5dc3a14a0f1fe1fb43b11
|
@@ -0,0 +1,22 @@
|
|
1
|
+
version: 2
|
2
|
+
updates:
|
3
|
+
- package-ecosystem: bundler
|
4
|
+
directory: "/"
|
5
|
+
schedule:
|
6
|
+
day: "monday"
|
7
|
+
interval: weekly
|
8
|
+
time: "09:00"
|
9
|
+
timezone: "Europe/Amsterdam"
|
10
|
+
open-pull-requests-limit: 999
|
11
|
+
allow:
|
12
|
+
- dependency-type: direct
|
13
|
+
- package-ecosystem: github-actions
|
14
|
+
directory: "/"
|
15
|
+
schedule:
|
16
|
+
day: "monday"
|
17
|
+
interval: weekly
|
18
|
+
time: "09:00"
|
19
|
+
timezone: "Europe/Amsterdam"
|
20
|
+
open-pull-requests-limit: 999
|
21
|
+
allow:
|
22
|
+
- dependency-type: direct
|
data/.rubocop.yml
CHANGED
@@ -1,383 +1,347 @@
|
|
1
1
|
require:
|
2
|
-
- rubocop-rails
|
3
2
|
- rubocop-rspec
|
4
3
|
|
5
4
|
AllCops:
|
6
5
|
NewCops: enable
|
7
|
-
|
8
|
-
- "vendor/**/*"
|
9
|
-
- "bin/**/*"
|
10
|
-
- "node_modules/**/*"
|
11
|
-
- "db/schema.rb"
|
12
|
-
- "db/sequent_schema.rb"
|
13
|
-
- "db/seeds.rb"
|
14
|
-
- "db/seed/**/*"
|
15
|
-
- "db/migrate/**/*"
|
16
|
-
|
17
|
-
Rails/EnvironmentVariableAccess:
|
18
|
-
AllowReads: true
|
19
|
-
|
20
|
-
Rails/HasAndBelongsToMany:
|
21
|
-
Enabled: false
|
6
|
+
TargetRubyVersion: "3.2.1"
|
22
7
|
|
23
|
-
|
8
|
+
Layout/BeginEndAlignment:
|
24
9
|
Enabled: true
|
25
|
-
Exclude:
|
26
|
-
- "spec/components/previews/**/*"
|
27
10
|
|
28
|
-
|
29
|
-
Enabled:
|
11
|
+
Layout/BlockAlignment:
|
12
|
+
Enabled: true
|
13
|
+
EnforcedStyleAlignWith: start_of_block
|
30
14
|
|
31
|
-
|
32
|
-
|
33
|
-
- "spec/domain/**/*"
|
15
|
+
Layout/EmptyLineBetweenDefs:
|
16
|
+
Enabled: false
|
34
17
|
|
35
|
-
|
36
|
-
|
18
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
19
|
+
Enabled: true
|
37
20
|
|
38
|
-
|
21
|
+
Layout/FirstArgumentIndentation:
|
39
22
|
Enabled: true
|
40
|
-
|
23
|
+
EnforcedStyle: consistent
|
41
24
|
|
42
|
-
|
43
|
-
Enabled:
|
25
|
+
Layout/FirstArrayElementIndentation:
|
26
|
+
Enabled: true
|
27
|
+
EnforcedStyle: consistent
|
44
28
|
|
45
|
-
|
46
|
-
|
29
|
+
Layout/FirstArrayElementLineBreak:
|
30
|
+
Enabled: true
|
47
31
|
|
48
|
-
|
49
|
-
Enabled:
|
32
|
+
Layout/FirstHashElementIndentation:
|
33
|
+
Enabled: true
|
34
|
+
EnforcedStyle: consistent
|
50
35
|
|
51
|
-
|
52
|
-
Enabled:
|
36
|
+
Layout/FirstHashElementLineBreak:
|
37
|
+
Enabled: true
|
53
38
|
|
54
|
-
|
55
|
-
Enabled:
|
39
|
+
Layout/FirstMethodArgumentLineBreak:
|
40
|
+
Enabled: true
|
56
41
|
|
57
|
-
|
42
|
+
Layout/FirstParameterIndentation:
|
58
43
|
Enabled: true
|
44
|
+
EnforcedStyle: consistent
|
59
45
|
|
60
|
-
|
61
|
-
Enabled:
|
46
|
+
Layout/LineLength:
|
47
|
+
Enabled: true
|
48
|
+
Max: 115
|
62
49
|
|
63
|
-
|
50
|
+
Layout/MultilineArrayBraceLayout:
|
64
51
|
Enabled: true
|
52
|
+
EnforcedStyle: new_line
|
65
53
|
|
66
|
-
|
54
|
+
Layout/MultilineArrayLineBreaks:
|
67
55
|
Enabled: true
|
68
56
|
|
69
|
-
|
57
|
+
Layout/MultilineHashBraceLayout:
|
70
58
|
Enabled: true
|
59
|
+
EnforcedStyle: new_line
|
71
60
|
|
72
|
-
|
73
|
-
Enabled:
|
61
|
+
Layout/MultilineHashKeyLineBreaks:
|
62
|
+
Enabled: true
|
74
63
|
|
75
|
-
|
76
|
-
Enabled:
|
64
|
+
Layout/MultilineMethodArgumentLineBreaks:
|
65
|
+
Enabled: true
|
77
66
|
|
78
|
-
|
67
|
+
Layout/MultilineMethodCallBraceLayout:
|
79
68
|
Enabled: true
|
80
|
-
|
69
|
+
EnforcedStyle: new_line
|
70
|
+
|
71
|
+
Layout/MultilineMethodCallIndentation:
|
81
72
|
Enabled: true
|
82
|
-
|
73
|
+
EnforcedStyle: indented
|
74
|
+
|
75
|
+
Layout/SpaceAroundMethodCallOperator:
|
83
76
|
Enabled: true
|
84
|
-
|
77
|
+
|
78
|
+
Layout/TrailingWhitespace:
|
79
|
+
AllowInHeredoc: true
|
85
80
|
Enabled: true
|
86
|
-
|
87
|
-
|
88
|
-
|
81
|
+
|
82
|
+
Lint/AmbiguousBlockAssociation:
|
83
|
+
Exclude:
|
84
|
+
- spec/**/*
|
85
|
+
|
86
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
89
87
|
Enabled: true
|
90
|
-
|
88
|
+
|
89
|
+
Lint/ConstantDefinitionInBlock:
|
91
90
|
Enabled: true
|
92
|
-
|
91
|
+
|
92
|
+
Lint/DeprecatedOpenSSLConstant:
|
93
93
|
Enabled: true
|
94
|
-
|
94
|
+
|
95
|
+
Lint/DuplicateBranch:
|
96
|
+
Enabled: false
|
97
|
+
|
98
|
+
Lint/DuplicateElsifCondition:
|
95
99
|
Enabled: true
|
96
|
-
|
100
|
+
|
101
|
+
Lint/DuplicateRequire:
|
97
102
|
Enabled: true
|
98
|
-
|
103
|
+
|
104
|
+
Lint/DuplicateRescueException:
|
99
105
|
Enabled: true
|
100
|
-
|
106
|
+
|
107
|
+
Lint/EmptyConditionalBody:
|
101
108
|
Enabled: true
|
102
|
-
|
109
|
+
|
110
|
+
Lint/EmptyFile:
|
103
111
|
Enabled: true
|
104
|
-
|
112
|
+
|
113
|
+
Lint/FloatComparison:
|
105
114
|
Enabled: true
|
106
|
-
|
115
|
+
|
116
|
+
Lint/IdentityComparison:
|
107
117
|
Enabled: true
|
108
|
-
|
118
|
+
|
119
|
+
Lint/MissingSuper:
|
109
120
|
Enabled: true
|
110
|
-
|
121
|
+
|
122
|
+
Lint/MixedRegexpCaptureTypes:
|
111
123
|
Enabled: true
|
112
|
-
|
124
|
+
|
125
|
+
Lint/OutOfRangeRegexpRef:
|
113
126
|
Enabled: true
|
114
|
-
|
127
|
+
|
128
|
+
Lint/RaiseException:
|
115
129
|
Enabled: true
|
116
|
-
|
130
|
+
|
131
|
+
Lint/SelfAssignment:
|
117
132
|
Enabled: true
|
118
133
|
|
119
|
-
|
120
|
-
|
121
|
-
Enabled: false
|
134
|
+
Lint/StructNewOverride:
|
135
|
+
Enabled: true
|
122
136
|
|
123
|
-
|
137
|
+
Lint/TopLevelReturnWithArgument:
|
124
138
|
Enabled: true
|
125
|
-
ForbiddenPrefixes:
|
126
|
-
is_
|
127
139
|
|
128
|
-
|
140
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
129
141
|
Enabled: true
|
130
|
-
Exclude:
|
131
|
-
- "spec/**/*"
|
132
|
-
- "gems/we_connect/spec//**/*"
|
133
142
|
|
134
|
-
|
135
|
-
|
143
|
+
Lint/UnreachableLoop:
|
144
|
+
Enabled: true
|
136
145
|
|
137
|
-
|
138
|
-
|
146
|
+
Lint/UselessAssignment:
|
147
|
+
Enabled: true
|
139
148
|
|
140
|
-
|
141
|
-
|
142
|
-
Exclude:
|
143
|
-
- "spec/**/*"
|
149
|
+
Lint/UselessMethodDefinition:
|
150
|
+
Enabled: true
|
144
151
|
|
145
|
-
|
152
|
+
Lint/UselessTimes:
|
146
153
|
Enabled: true
|
147
|
-
AllowInHeredoc: true
|
148
154
|
|
149
|
-
Metrics/
|
155
|
+
Metrics/AbcSize:
|
150
156
|
Enabled: false
|
151
157
|
|
152
|
-
|
158
|
+
Metrics/BlockLength:
|
153
159
|
Enabled: true
|
154
|
-
Max: 115 # Readable github.com diffs
|
155
160
|
|
156
|
-
|
161
|
+
Metrics/ClassLength:
|
157
162
|
Enabled: false
|
158
163
|
|
159
|
-
|
160
|
-
|
164
|
+
Metrics/CyclomaticComplexity:
|
165
|
+
Max: 42
|
161
166
|
|
162
167
|
Metrics/MethodLength:
|
163
168
|
Max: 42
|
164
169
|
Exclude:
|
165
|
-
- "
|
170
|
+
- "spec/**/*_spec.rb"
|
166
171
|
|
167
|
-
Metrics/
|
168
|
-
|
169
|
-
- "**/spec/**/*"
|
170
|
-
- "config/routes.rb"
|
171
|
-
- "**/*.gemspec"
|
172
|
-
|
173
|
-
Lint/UselessAssignment:
|
174
|
-
Exclude:
|
175
|
-
- "spec/**/*"
|
172
|
+
Metrics/ModuleLength:
|
173
|
+
Enabled: false
|
176
174
|
|
177
|
-
|
175
|
+
Metrics/ParameterLists:
|
176
|
+
CountKeywordArgs: false
|
178
177
|
Enabled: true
|
179
178
|
|
180
|
-
|
181
|
-
|
179
|
+
Metrics/PerceivedComplexity:
|
180
|
+
Max: 42
|
182
181
|
|
183
|
-
|
182
|
+
Naming/PredicateName:
|
184
183
|
Enabled: true
|
184
|
+
ForbiddenPrefixes: is_
|
185
185
|
|
186
|
-
|
186
|
+
Naming/VariableNumber:
|
187
187
|
Enabled: true
|
188
188
|
|
189
|
-
|
190
|
-
Enabled:
|
189
|
+
RSpec/AnyInstance:
|
190
|
+
Enabled: false
|
191
191
|
|
192
|
-
|
193
|
-
Enabled:
|
192
|
+
RSpec/DescribeClass:
|
193
|
+
Enabled: false
|
194
194
|
|
195
|
-
|
196
|
-
Enabled:
|
195
|
+
RSpec/DescribedClass:
|
196
|
+
Enabled: false
|
197
197
|
|
198
|
-
|
199
|
-
Enabled:
|
198
|
+
RSpec/ExampleLength:
|
199
|
+
Enabled: false
|
200
200
|
|
201
|
-
|
201
|
+
RSpec/MultipleExpectations:
|
202
202
|
Enabled: false
|
203
203
|
|
204
|
-
|
205
|
-
|
204
|
+
RSpec/NestedGroups:
|
205
|
+
Max: 4
|
206
206
|
|
207
|
-
|
208
|
-
|
207
|
+
RSpec/NoExpectationExample:
|
208
|
+
Exclude:
|
209
|
+
- spec/domain/**/*
|
209
210
|
|
210
|
-
|
211
|
+
RSpec/VerifiedDoubles:
|
211
212
|
Enabled: true
|
212
213
|
|
213
|
-
Style/
|
214
|
+
Style/AccessorGrouping:
|
214
215
|
Enabled: true
|
215
216
|
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
Metrics/PerceivedComplexity:
|
220
|
-
Max: 42
|
217
|
+
Style/ArrayCoercion:
|
218
|
+
Enabled: true
|
221
219
|
|
222
|
-
Style/
|
220
|
+
Style/AsciiComments:
|
223
221
|
Enabled: false
|
224
222
|
|
225
|
-
Style/
|
226
|
-
|
223
|
+
Style/BisectedAttrAccessor:
|
224
|
+
Enabled: true
|
227
225
|
|
228
226
|
Style/BlockDelimiters:
|
229
227
|
Enabled: true
|
230
228
|
|
231
|
-
Style/
|
229
|
+
Style/CaseLikeIf:
|
232
230
|
Enabled: true
|
233
231
|
|
234
|
-
|
235
|
-
Enabled:
|
236
|
-
|
237
|
-
|
238
|
-
Lint/DuplicateRescueException: # (new in 0.89)
|
239
|
-
Enabled: true
|
240
|
-
Lint/EmptyConditionalBody: # (new in 0.89)
|
241
|
-
Enabled: true
|
242
|
-
Lint/EmptyFile: # (new in 0.90)
|
243
|
-
Enabled: true
|
244
|
-
Lint/FloatComparison: # (new in 0.89)
|
245
|
-
Enabled: true
|
246
|
-
Lint/MissingSuper: # (new in 0.89)
|
247
|
-
Enabled: true
|
248
|
-
Lint/OutOfRangeRegexpRef: # (new in 0.89)
|
249
|
-
Enabled: true
|
250
|
-
Lint/SelfAssignment: # (new in 0.89)
|
251
|
-
Enabled: true
|
252
|
-
Lint/TopLevelReturnWithArgument: # (new in 0.89)
|
253
|
-
Enabled: true
|
254
|
-
Lint/TrailingCommaInAttributeDeclaration: # (new in 0.90)
|
255
|
-
Enabled: true
|
256
|
-
Lint/UnreachableLoop: # (new in 0.89)
|
257
|
-
Enabled: true
|
258
|
-
Lint/UselessMethodDefinition: # (new in 0.90)
|
259
|
-
Enabled: true
|
260
|
-
Style/CombinableLoops: # (new in 0.90)
|
261
|
-
Enabled: true
|
262
|
-
Style/ExplicitBlockArgument: # (new in 0.89)
|
263
|
-
Enabled: true
|
264
|
-
Style/GlobalStdStream: # (new in 0.89)
|
265
|
-
Enabled: true
|
266
|
-
Style/KeywordParametersOrder: # (new in 0.90)
|
267
|
-
Enabled: true
|
268
|
-
Style/OptionalBooleanParameter: # (new in 0.89)
|
269
|
-
Enabled: true
|
270
|
-
Style/RedundantSelfAssignment: # (new in 0.90)
|
271
|
-
Enabled: true
|
272
|
-
Style/SoleNestedConditional: # (new in 0.89)
|
273
|
-
Enabled: true
|
274
|
-
Style/StringConcatenation: # (new in 0.89)
|
232
|
+
Style/ClassAndModuleChildren:
|
233
|
+
Enabled: false
|
234
|
+
|
235
|
+
Style/CombinableLoops:
|
275
236
|
Enabled: true
|
276
237
|
|
277
|
-
|
238
|
+
Style/Documentation:
|
278
239
|
Enabled: false
|
279
240
|
|
280
|
-
|
241
|
+
Style/EmptyMethod:
|
242
|
+
EnforcedStyle: expanded
|
243
|
+
|
244
|
+
Style/ExplicitBlockArgument:
|
281
245
|
Enabled: true
|
282
|
-
|
246
|
+
|
247
|
+
Style/ExponentialNotation:
|
283
248
|
Enabled: true
|
284
|
-
|
249
|
+
|
250
|
+
Style/FrozenStringLiteralComment:
|
251
|
+
EnforcedStyle: never
|
252
|
+
|
253
|
+
Style/GlobalStdStream:
|
285
254
|
Enabled: true
|
286
|
-
|
255
|
+
|
256
|
+
Style/GuardClause:
|
257
|
+
Enabled: false
|
258
|
+
|
259
|
+
Style/HashAsLastArrayItem:
|
287
260
|
Enabled: true
|
288
|
-
|
261
|
+
|
262
|
+
Style/HashEachMethods:
|
289
263
|
Enabled: true
|
290
|
-
|
264
|
+
|
265
|
+
Style/HashLikeCase:
|
291
266
|
Enabled: true
|
292
|
-
|
267
|
+
|
268
|
+
Style/HashTransformKeys:
|
293
269
|
Enabled: true
|
294
|
-
Metrics/AbcSize:
|
295
|
-
Enabled: false
|
296
270
|
|
297
|
-
|
298
|
-
|
299
|
-
- production
|
300
|
-
- development
|
301
|
-
- test
|
302
|
-
- staging
|
271
|
+
Style/HashTransformValues:
|
272
|
+
Enabled: true
|
303
273
|
|
304
|
-
|
305
|
-
Enabled: false
|
306
|
-
RSpec/DescribedClass:
|
307
|
-
Enabled: false
|
308
|
-
RSpec/NestedGroups:
|
309
|
-
Max: 4
|
310
|
-
RSpec/MultipleExpectations:
|
274
|
+
Style/IfInsideElse:
|
311
275
|
Enabled: false
|
312
|
-
|
276
|
+
|
277
|
+
Style/IfUnlessModifier:
|
313
278
|
Enabled: false
|
314
|
-
|
279
|
+
|
280
|
+
Style/KeywordParametersOrder:
|
281
|
+
Enabled: true
|
282
|
+
|
283
|
+
Style/Lambda:
|
284
|
+
EnforcedStyle: literal
|
285
|
+
|
286
|
+
Style/MultilineBlockChain:
|
315
287
|
Enabled: false
|
316
288
|
|
317
|
-
|
318
|
-
|
319
|
-
Exclude:
|
320
|
-
- "app/controllers/admin/**/*"
|
289
|
+
Style/NumericLiterals:
|
290
|
+
Enabled: false
|
321
291
|
|
322
|
-
|
323
|
-
# Multi-line formatting (hashes)
|
324
|
-
##
|
325
|
-
Layout/FirstHashElementLineBreak:
|
292
|
+
Style/OptionalBooleanParameter:
|
326
293
|
Enabled: true
|
327
294
|
|
328
|
-
|
295
|
+
Style/RedundantAssignment:
|
329
296
|
Enabled: true
|
330
|
-
EnforcedStyle: consistent
|
331
297
|
|
332
|
-
|
298
|
+
Style/RedundantFetchBlock:
|
333
299
|
Enabled: true
|
334
|
-
EnforcedStyle: new_line
|
335
300
|
|
336
|
-
|
301
|
+
Style/RedundantFileExtensionInRequire:
|
337
302
|
Enabled: true
|
338
303
|
|
339
|
-
|
340
|
-
# Multi-line formatting (array)
|
341
|
-
##
|
342
|
-
Layout/FirstArrayElementLineBreak:
|
304
|
+
Style/RedundantRegexpCharacterClass:
|
343
305
|
Enabled: true
|
344
306
|
|
345
|
-
|
307
|
+
Style/RedundantRegexpEscape:
|
346
308
|
Enabled: true
|
347
|
-
EnforcedStyle: consistent
|
348
309
|
|
349
|
-
|
310
|
+
Style/RedundantSelfAssignment:
|
350
311
|
Enabled: true
|
351
|
-
EnforcedStyle: new_line
|
352
312
|
|
353
|
-
|
354
|
-
Enabled:
|
313
|
+
Style/RescueModifier:
|
314
|
+
Enabled: false
|
355
315
|
|
356
|
-
|
357
|
-
# Multi-line formatting (methods/arguments/blocks)
|
358
|
-
##
|
359
|
-
Layout/FirstMethodArgumentLineBreak:
|
316
|
+
Style/SingleArgumentDig:
|
360
317
|
Enabled: true
|
361
318
|
|
362
|
-
|
319
|
+
Style/SlicingWithRange:
|
363
320
|
Enabled: true
|
364
|
-
EnforcedStyle: consistent
|
365
321
|
|
366
|
-
|
322
|
+
Style/SoleNestedConditional:
|
367
323
|
Enabled: true
|
368
|
-
EnforcedStyle: consistent
|
369
324
|
|
370
|
-
|
325
|
+
Style/StringConcatenation:
|
371
326
|
Enabled: true
|
372
|
-
EnforcedStyle: new_line
|
373
327
|
|
374
|
-
|
328
|
+
Style/StringLiterals:
|
329
|
+
EnforcedStyle: double_quotes
|
330
|
+
|
331
|
+
Style/StringLiteralsInInterpolation:
|
332
|
+
EnforcedStyle: double_quotes
|
333
|
+
|
334
|
+
Style/SymbolArray:
|
335
|
+
EnforcedStyle: brackets
|
336
|
+
|
337
|
+
Style/TrailingCommaInArguments:
|
375
338
|
Enabled: true
|
339
|
+
EnforcedStyleForMultiline: comma
|
376
340
|
|
377
|
-
|
341
|
+
Style/TrailingCommaInArrayLiteral:
|
378
342
|
Enabled: true
|
379
|
-
|
343
|
+
EnforcedStyleForMultiline: comma
|
380
344
|
|
381
|
-
|
345
|
+
Style/TrailingCommaInHashLiteral:
|
382
346
|
Enabled: true
|
383
|
-
|
347
|
+
EnforcedStyleForMultiline: comma
|