stekker_zaptec 1.2.0 → 1.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 033251f5675b4433989cfed337cc22e1271d37e5590b2a375964a3d207a0b5b4
4
- data.tar.gz: f486808fc05a7d926cde6cbbb534d76ab5e74c93173f469a065fa5d5bbeedee6
3
+ metadata.gz: 79ebcf2348c8f571a18e9ece5b7289f0453080b32c52800695b0df329a992407
4
+ data.tar.gz: 250ac2bab2c789254168da736996c419d6676c2867455522c6cd364be5c1b1b5
5
5
  SHA512:
6
- metadata.gz: 0242033c65f7e6b86e4c24b82692b01697e07a3ac667a7aa551a9a61c1b195cdfc3b6d74e40c7883ea372321119aef753245a1bd63d755f9dbd40806ea3e1205
7
- data.tar.gz: d54c276c0f1a24ef8dd8a9a76c9458cf1e3589481f2b627c575a68f238d580b3eda8d12cd51bcf3d9be23c325d8567d38d7d942206b1d1898dfa00417f3f9456
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
- Exclude:
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
- RSpec/VerifiedDoubles:
8
+ Layout/BeginEndAlignment:
24
9
  Enabled: true
25
- Exclude:
26
- - "spec/components/previews/**/*"
27
10
 
28
- Style/MultilineBlockChain:
29
- Enabled: false
11
+ Layout/BlockAlignment:
12
+ Enabled: true
13
+ EnforcedStyleAlignWith: start_of_block
30
14
 
31
- RSpec/NoExpectationExample:
32
- Exclude:
33
- - "spec/domain/**/*"
15
+ Layout/EmptyLineBetweenDefs:
16
+ Enabled: false
34
17
 
35
- Style/SymbolArray:
36
- EnforcedStyle: brackets
18
+ Layout/EmptyLinesAroundAttributeAccessor:
19
+ Enabled: true
37
20
 
38
- Metrics/ParameterLists:
21
+ Layout/FirstArgumentIndentation:
39
22
  Enabled: true
40
- CountKeywordArgs: false
23
+ EnforcedStyle: consistent
41
24
 
42
- Style/NumericLiterals:
43
- Enabled: false
25
+ Layout/FirstArrayElementIndentation:
26
+ Enabled: true
27
+ EnforcedStyle: consistent
44
28
 
45
- Style/FrozenStringLiteralComment:
46
- EnforcedStyle: never
29
+ Layout/FirstArrayElementLineBreak:
30
+ Enabled: true
47
31
 
48
- Style/GuardClause:
49
- Enabled: false
32
+ Layout/FirstHashElementIndentation:
33
+ Enabled: true
34
+ EnforcedStyle: consistent
50
35
 
51
- Style/ClassAndModuleChildren:
52
- Enabled: false
36
+ Layout/FirstHashElementLineBreak:
37
+ Enabled: true
53
38
 
54
- Lint/DuplicateBranch:
55
- Enabled: false
39
+ Layout/FirstMethodArgumentLineBreak:
40
+ Enabled: true
56
41
 
57
- Lint/RaiseException:
42
+ Layout/FirstParameterIndentation:
58
43
  Enabled: true
44
+ EnforcedStyle: consistent
59
45
 
60
- Rails/SkipsModelValidations:
61
- Enabled: false
46
+ Layout/LineLength:
47
+ Enabled: true
48
+ Max: 115
62
49
 
63
- Lint/StructNewOverride:
50
+ Layout/MultilineArrayBraceLayout:
64
51
  Enabled: true
52
+ EnforcedStyle: new_line
65
53
 
66
- Rails:
54
+ Layout/MultilineArrayLineBreaks:
67
55
  Enabled: true
68
56
 
69
- Style/AccessorGrouping:
57
+ Layout/MultilineHashBraceLayout:
70
58
  Enabled: true
59
+ EnforcedStyle: new_line
71
60
 
72
- Style/IfInsideElse:
73
- Enabled: false
61
+ Layout/MultilineHashKeyLineBreaks:
62
+ Enabled: true
74
63
 
75
- Rails/LexicallyScopedActionFilter:
76
- Enabled: false
64
+ Layout/MultilineMethodArgumentLineBreaks:
65
+ Enabled: true
77
66
 
78
- Style/BisectedAttrAccessor:
67
+ Layout/MultilineMethodCallBraceLayout:
79
68
  Enabled: true
80
- Style/RedundantAssignment:
69
+ EnforcedStyle: new_line
70
+
71
+ Layout/MultilineMethodCallIndentation:
81
72
  Enabled: true
82
- Rails/ActiveRecordCallbacksOrder:
73
+ EnforcedStyle: indented
74
+
75
+ Layout/SpaceAroundMethodCallOperator:
83
76
  Enabled: true
84
- Rails/FindById:
77
+
78
+ Layout/TrailingWhitespace:
79
+ AllowInHeredoc: true
85
80
  Enabled: true
86
- Rails/Inquiry:
87
- Enabled: false
88
- Rails/MailerName:
81
+
82
+ Lint/AmbiguousBlockAssociation:
83
+ Exclude:
84
+ - spec/**/*
85
+
86
+ Lint/BinaryOperatorWithIdenticalOperands:
89
87
  Enabled: true
90
- Rails/MatchRoute:
88
+
89
+ Lint/ConstantDefinitionInBlock:
91
90
  Enabled: true
92
- Rails/NegateInclude:
91
+
92
+ Lint/DeprecatedOpenSSLConstant:
93
93
  Enabled: true
94
- Rails/Pluck:
94
+
95
+ Lint/DuplicateBranch:
96
+ Enabled: false
97
+
98
+ Lint/DuplicateElsifCondition:
95
99
  Enabled: true
96
- Rails/PluckInWhere:
100
+
101
+ Lint/DuplicateRequire:
97
102
  Enabled: true
98
- Rails/RenderInline:
103
+
104
+ Lint/DuplicateRescueException:
99
105
  Enabled: true
100
- Rails/RenderPlainText:
106
+
107
+ Lint/EmptyConditionalBody:
101
108
  Enabled: true
102
- Rails/ShortI18n:
109
+
110
+ Lint/EmptyFile:
103
111
  Enabled: true
104
- Rails/WhereExists:
112
+
113
+ Lint/FloatComparison:
105
114
  Enabled: true
106
- Lint/DuplicateElsifCondition:
115
+
116
+ Lint/IdentityComparison:
107
117
  Enabled: true
108
- Style/ArrayCoercion:
118
+
119
+ Lint/MissingSuper:
109
120
  Enabled: true
110
- Style/CaseLikeIf:
121
+
122
+ Lint/MixedRegexpCaptureTypes:
111
123
  Enabled: true
112
- Style/HashAsLastArrayItem:
124
+
125
+ Lint/OutOfRangeRegexpRef:
113
126
  Enabled: true
114
- Style/HashLikeCase:
127
+
128
+ Lint/RaiseException:
115
129
  Enabled: true
116
- Style/RedundantFileExtensionInRequire:
130
+
131
+ Lint/SelfAssignment:
117
132
  Enabled: true
118
133
 
119
- # Allow emoji in comments
120
- Style/AsciiComments:
121
- Enabled: false
134
+ Lint/StructNewOverride:
135
+ Enabled: true
122
136
 
123
- Naming/PredicateName:
137
+ Lint/TopLevelReturnWithArgument:
124
138
  Enabled: true
125
- ForbiddenPrefixes:
126
- is_
127
139
 
128
- Naming/VariableNumber:
140
+ Lint/TrailingCommaInAttributeDeclaration:
129
141
  Enabled: true
130
- Exclude:
131
- - "spec/**/*"
132
- - "gems/we_connect/spec//**/*"
133
142
 
134
- Style/EmptyMethod:
135
- EnforcedStyle: expanded
143
+ Lint/UnreachableLoop:
144
+ Enabled: true
136
145
 
137
- Style/StringLiterals:
138
- EnforcedStyle: double_quotes
146
+ Lint/UselessAssignment:
147
+ Enabled: true
139
148
 
140
- Style/StringLiteralsInInterpolation:
141
- EnforcedStyle: double_quotes
142
- Exclude:
143
- - "spec/**/*"
149
+ Lint/UselessMethodDefinition:
150
+ Enabled: true
144
151
 
145
- Layout/TrailingWhitespace:
152
+ Lint/UselessTimes:
146
153
  Enabled: true
147
- AllowInHeredoc: true
148
154
 
149
- Metrics/ClassLength:
155
+ Metrics/AbcSize:
150
156
  Enabled: false
151
157
 
152
- Layout/LineLength:
158
+ Metrics/BlockLength:
153
159
  Enabled: true
154
- Max: 115 # Readable github.com diffs
155
160
 
156
- Style/Documentation:
161
+ Metrics/ClassLength:
157
162
  Enabled: false
158
163
 
159
- Layout/EmptyLineBetweenDefs:
160
- Enabled: false
164
+ Metrics/CyclomaticComplexity:
165
+ Max: 42
161
166
 
162
167
  Metrics/MethodLength:
163
168
  Max: 42
164
169
  Exclude:
165
- - "**/spec/**/*"
170
+ - "spec/**/*_spec.rb"
166
171
 
167
- Metrics/BlockLength:
168
- Exclude:
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
- Style/HashEachMethods:
175
+ Metrics/ParameterLists:
176
+ CountKeywordArgs: false
178
177
  Enabled: true
179
178
 
180
- Style/HashTransformKeys:
181
- Enabled: true
179
+ Metrics/PerceivedComplexity:
180
+ Max: 42
182
181
 
183
- Style/HashTransformValues:
182
+ Naming/PredicateName:
184
183
  Enabled: true
184
+ ForbiddenPrefixes: is_
185
185
 
186
- Layout/SpaceAroundMethodCallOperator:
186
+ Naming/VariableNumber:
187
187
  Enabled: true
188
188
 
189
- Style/ExponentialNotation:
190
- Enabled: true
189
+ RSpec/AnyInstance:
190
+ Enabled: false
191
191
 
192
- Layout/EmptyLinesAroundAttributeAccessor:
193
- Enabled: true
192
+ RSpec/DescribeClass:
193
+ Enabled: false
194
194
 
195
- Lint/DeprecatedOpenSSLConstant:
196
- Enabled: true
195
+ RSpec/DescribedClass:
196
+ Enabled: false
197
197
 
198
- Style/SlicingWithRange:
199
- Enabled: true
198
+ RSpec/ExampleLength:
199
+ Enabled: false
200
200
 
201
- Style/IfUnlessModifier:
201
+ RSpec/MultipleExpectations:
202
202
  Enabled: false
203
203
 
204
- Lint/MixedRegexpCaptureTypes:
205
- Enabled: true
204
+ RSpec/NestedGroups:
205
+ Max: 4
206
206
 
207
- Style/RedundantFetchBlock:
208
- Enabled: true
207
+ RSpec/NoExpectationExample:
208
+ Exclude:
209
+ - spec/domain/**/*
209
210
 
210
- Style/RedundantRegexpCharacterClass:
211
+ RSpec/VerifiedDoubles:
211
212
  Enabled: true
212
213
 
213
- Style/RedundantRegexpEscape:
214
+ Style/AccessorGrouping:
214
215
  Enabled: true
215
216
 
216
- Metrics/CyclomaticComplexity:
217
- Max: 42
218
-
219
- Metrics/PerceivedComplexity:
220
- Max: 42
217
+ Style/ArrayCoercion:
218
+ Enabled: true
221
219
 
222
- Style/RescueModifier:
220
+ Style/AsciiComments:
223
221
  Enabled: false
224
222
 
225
- Style/Lambda:
226
- EnforcedStyle: literal
223
+ Style/BisectedAttrAccessor:
224
+ Enabled: true
227
225
 
228
226
  Style/BlockDelimiters:
229
227
  Enabled: true
230
228
 
231
- Style/SingleArgumentDig: # (new in 0.89)
229
+ Style/CaseLikeIf:
232
230
  Enabled: true
233
231
 
234
- Lint/BinaryOperatorWithIdenticalOperands: # (new in 0.89)
235
- Enabled: true
236
- Lint/DuplicateRequire: # (new in 0.90)
237
- Enabled: true
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
- Metrics/ModuleLength:
238
+ Style/Documentation:
278
239
  Enabled: false
279
240
 
280
- Layout/BeginEndAlignment: # (new in 0.91)
241
+ Style/EmptyMethod:
242
+ EnforcedStyle: expanded
243
+
244
+ Style/ExplicitBlockArgument:
281
245
  Enabled: true
282
- Lint/ConstantDefinitionInBlock: # (new in 0.91)
246
+
247
+ Style/ExponentialNotation:
283
248
  Enabled: true
284
- Lint/IdentityComparison: # (new in 0.91)
249
+
250
+ Style/FrozenStringLiteralComment:
251
+ EnforcedStyle: never
252
+
253
+ Style/GlobalStdStream:
285
254
  Enabled: true
286
- Lint/UselessTimes: # (new in 0.91)
255
+
256
+ Style/GuardClause:
257
+ Enabled: false
258
+
259
+ Style/HashAsLastArrayItem:
287
260
  Enabled: true
288
- Rails/AfterCommitOverride: # (new in 2.8)
261
+
262
+ Style/HashEachMethods:
289
263
  Enabled: true
290
- Rails/SquishedSQLHeredocs: # (new in 2.8)
264
+
265
+ Style/HashLikeCase:
291
266
  Enabled: true
292
- Rails/WhereNot: # (new in 2.8)
267
+
268
+ Style/HashTransformKeys:
293
269
  Enabled: true
294
- Metrics/AbcSize:
295
- Enabled: false
296
270
 
297
- Rails/UnknownEnv:
298
- Environments:
299
- - production
300
- - development
301
- - test
302
- - staging
271
+ Style/HashTransformValues:
272
+ Enabled: true
303
273
 
304
- RSpec/DescribeClass:
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
- RSpec/ExampleLength:
276
+
277
+ Style/IfUnlessModifier:
313
278
  Enabled: false
314
- RSpec/AnyInstance:
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
- # No translations needed in Admin, for now:
318
- Rails/I18nLocaleTexts:
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
- Layout/FirstHashElementIndentation:
295
+ Style/RedundantAssignment:
329
296
  Enabled: true
330
- EnforcedStyle: consistent
331
297
 
332
- Layout/MultilineHashBraceLayout:
298
+ Style/RedundantFetchBlock:
333
299
  Enabled: true
334
- EnforcedStyle: new_line
335
300
 
336
- Layout/MultilineHashKeyLineBreaks:
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
- Layout/FirstArrayElementIndentation:
307
+ Style/RedundantRegexpEscape:
346
308
  Enabled: true
347
- EnforcedStyle: consistent
348
309
 
349
- Layout/MultilineArrayBraceLayout:
310
+ Style/RedundantSelfAssignment:
350
311
  Enabled: true
351
- EnforcedStyle: new_line
352
312
 
353
- Layout/MultilineArrayLineBreaks:
354
- Enabled: true
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
- Layout/FirstArgumentIndentation:
319
+ Style/SlicingWithRange:
363
320
  Enabled: true
364
- EnforcedStyle: consistent
365
321
 
366
- Layout/FirstParameterIndentation:
322
+ Style/SoleNestedConditional:
367
323
  Enabled: true
368
- EnforcedStyle: consistent
369
324
 
370
- Layout/MultilineMethodCallBraceLayout:
325
+ Style/StringConcatenation:
371
326
  Enabled: true
372
- EnforcedStyle: new_line
373
327
 
374
- Layout/MultilineMethodArgumentLineBreaks:
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
- Layout/MultilineMethodCallIndentation:
341
+ Style/TrailingCommaInArrayLiteral:
378
342
  Enabled: true
379
- EnforcedStyle: indented
343
+ EnforcedStyleForMultiline: comma
380
344
 
381
- Layout/BlockAlignment:
345
+ Style/TrailingCommaInHashLiteral:
382
346
  Enabled: true
383
- EnforcedStyleAlignWith: start_of_block
347
+ EnforcedStyleForMultiline: comma
data/Gemfile CHANGED
@@ -3,6 +3,7 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in zaptec.gemspec
4
4
  gemspec
5
5
 
6
+ gem "byebug"
6
7
  gem "gem-release", "~> 2.2"
7
8
  gem "jwt", "~> 2.6"
8
9
  gem "rake", "~> 13.0"