ros-apartment 3.0.4 → 3.2.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.
data/.rubocop_todo.yml DELETED
@@ -1,436 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2024-05-07 18:57:21 UTC using RuboCop version 1.63.4.
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: 1
10
- # This cop supports safe autocorrection (--autocorrect).
11
- # Configuration parameters: Severity, Include.
12
- # Include: **/*.gemspec
13
- Gemspec/DeprecatedAttributeAssignment:
14
- Exclude:
15
- - 'ros-apartment.gemspec'
16
-
17
- # Offense count: 20
18
- # Configuration parameters: EnforcedStyle, AllowedGems, Include.
19
- # SupportedStyles: Gemfile, gems.rb, gemspec
20
- # Include: **/*.gemspec, **/Gemfile, **/gems.rb
21
- Gemspec/DevelopmentDependencies:
22
- Exclude:
23
- - 'ros-apartment.gemspec'
24
-
25
- # Offense count: 1
26
- # This cop supports safe autocorrection (--autocorrect).
27
- # Configuration parameters: Severity, Include.
28
- # Include: **/*.gemspec
29
- Gemspec/RequireMFA:
30
- Exclude:
31
- - 'ros-apartment.gemspec'
32
-
33
- # Offense count: 6
34
- # This cop supports safe autocorrection (--autocorrect).
35
- Layout/EmptyLineAfterMagicComment:
36
- Exclude:
37
- - 'spec/dummy/config/initializers/backtrace_silencers.rb'
38
- - 'spec/dummy/config/initializers/inflections.rb'
39
- - 'spec/dummy/config/initializers/mime_types.rb'
40
- - 'spec/dummy_engine/test/dummy/config/initializers/backtrace_silencers.rb'
41
- - 'spec/dummy_engine/test/dummy/config/initializers/inflections.rb'
42
- - 'spec/dummy_engine/test/dummy/config/initializers/mime_types.rb'
43
-
44
- # Offense count: 3
45
- # This cop supports safe autocorrection (--autocorrect).
46
- # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
47
- Layout/LeadingCommentSpace:
48
- Exclude:
49
- - 'ros-apartment.gemspec'
50
-
51
- # Offense count: 2
52
- # This cop supports safe autocorrection (--autocorrect).
53
- # Configuration parameters: EnforcedStyle, IndentationWidth.
54
- # SupportedStyles: aligned, indented
55
- Layout/LineEndStringConcatenationIndentation:
56
- Exclude:
57
- - 'lib/apartment/custom_console.rb'
58
-
59
- # Offense count: 3
60
- # This cop supports safe autocorrection (--autocorrect).
61
- Layout/SpaceBeforeComment:
62
- Exclude:
63
- - 'ros-apartment.gemspec'
64
-
65
- # Offense count: 1
66
- Lint/MixedRegexpCaptureTypes:
67
- Exclude:
68
- - 'lib/apartment/elevators/domain.rb'
69
-
70
- # Offense count: 1
71
- # This cop supports safe autocorrection (--autocorrect).
72
- Lint/RedundantCopDisableDirective:
73
- Exclude:
74
- - 'spec/support/config.rb'
75
-
76
- # Offense count: 2
77
- # This cop supports unsafe autocorrection (--autocorrect-all).
78
- Lint/RedundantDirGlobSort:
79
- Exclude:
80
- - 'spec/spec_helper.rb'
81
-
82
- # Offense count: 2
83
- # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
84
- Metrics/AbcSize:
85
- Max: 28
86
-
87
- # Offense count: 4
88
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
89
- # AllowedMethods: refine
90
- Metrics/BlockLength:
91
- Max: 83
92
-
93
- # Offense count: 1
94
- # Configuration parameters: CountComments, CountAsOne.
95
- Metrics/ClassLength:
96
- Max: 151
97
-
98
- # Offense count: 6
99
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
100
- Metrics/MethodLength:
101
- Max: 23
102
-
103
- # Offense count: 3
104
- # This cop supports safe autocorrection (--autocorrect).
105
- # Configuration parameters: EnforcedStyle, BlockForwardingName.
106
- # SupportedStyles: anonymous, explicit
107
- Naming/BlockForwarding:
108
- Exclude:
109
- - 'lib/apartment/adapters/abstract_adapter.rb'
110
- - 'lib/apartment/log_subscriber.rb'
111
-
112
- # Offense count: 1
113
- # This cop supports safe autocorrection (--autocorrect).
114
- Performance/RedundantBlockCall:
115
- Exclude:
116
- - 'lib/apartment/tasks/task_helper.rb'
117
-
118
- # Offense count: 1
119
- # This cop supports safe autocorrection (--autocorrect).
120
- Performance/StringIdentifierArgument:
121
- Exclude:
122
- - 'lib/apartment/railtie.rb'
123
-
124
- # Offense count: 3
125
- RSpec/AnyInstance:
126
- Exclude:
127
- - 'spec/unit/migrator_spec.rb'
128
-
129
- # Offense count: 4
130
- # This cop supports unsafe autocorrection (--autocorrect-all).
131
- RSpec/BeEq:
132
- Exclude:
133
- - 'spec/adapters/sqlite3_adapter_spec.rb'
134
- - 'spec/unit/elevators/first_subdomain_spec.rb'
135
-
136
- # Offense count: 2
137
- RSpec/BeforeAfterAll:
138
- Exclude:
139
- - 'spec/adapters/sqlite3_adapter_spec.rb'
140
- - 'spec/tasks/apartment_rake_spec.rb'
141
-
142
- # Offense count: 18
143
- # Configuration parameters: Prefixes, AllowedPatterns.
144
- # Prefixes: when, with, without
145
- RSpec/ContextWording:
146
- Exclude:
147
- - 'spec/adapters/sqlite3_adapter_spec.rb'
148
- - 'spec/examples/generic_adapter_custom_configuration_example.rb'
149
- - 'spec/examples/schema_adapter_examples.rb'
150
- - 'spec/support/contexts.rb'
151
- - 'spec/tasks/apartment_rake_spec.rb'
152
- - 'spec/tenant_spec.rb'
153
-
154
- # Offense count: 5
155
- # Configuration parameters: IgnoredMetadata.
156
- RSpec/DescribeClass:
157
- Exclude:
158
- - 'spec/integration/apartment_rake_integration_spec.rb'
159
- - 'spec/integration/connection_handling_spec.rb'
160
- - 'spec/integration/query_caching_spec.rb'
161
- - 'spec/integration/use_within_an_engine_spec.rb'
162
- - 'spec/tasks/apartment_rake_spec.rb'
163
-
164
- # Offense count: 6
165
- # This cop supports unsafe autocorrection (--autocorrect-all).
166
- # Configuration parameters: SkipBlocks, EnforcedStyle, OnlyStaticConstants.
167
- # SupportedStyles: described_class, explicit
168
- RSpec/DescribedClass:
169
- Exclude:
170
- - 'spec/apartment_spec.rb'
171
- - 'spec/tenant_spec.rb'
172
- - 'spec/unit/elevators/host_hash_spec.rb'
173
- - 'spec/unit/migrator_spec.rb'
174
-
175
- # Offense count: 5
176
- # This cop supports safe autocorrection (--autocorrect).
177
- RSpec/EmptyLineAfterFinalLet:
178
- Exclude:
179
- - 'spec/adapters/sqlite3_adapter_spec.rb'
180
- - 'spec/examples/schema_adapter_examples.rb'
181
-
182
- # Offense count: 14
183
- # Configuration parameters: CountAsOne.
184
- RSpec/ExampleLength:
185
- Max: 12
186
-
187
- # Offense count: 58
188
- # This cop supports safe autocorrection (--autocorrect).
189
- # Configuration parameters: CustomTransform, IgnoredWords, DisallowedExamples.
190
- # DisallowedExamples: works
191
- RSpec/ExampleWording:
192
- Exclude:
193
- - 'spec/adapters/sqlite3_adapter_spec.rb'
194
- - 'spec/apartment_spec.rb'
195
- - 'spec/examples/connection_adapter_examples.rb'
196
- - 'spec/examples/generic_adapter_custom_configuration_example.rb'
197
- - 'spec/examples/generic_adapter_examples.rb'
198
- - 'spec/examples/schema_adapter_examples.rb'
199
- - 'spec/integration/apartment_rake_integration_spec.rb'
200
- - 'spec/integration/use_within_an_engine_spec.rb'
201
- - 'spec/tasks/apartment_rake_spec.rb'
202
- - 'spec/tenant_spec.rb'
203
-
204
- # Offense count: 12
205
- # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
206
- # Include: **/*_spec*rb*, **/spec/**/*
207
- RSpec/FilePath:
208
- Exclude:
209
- - 'spec/adapters/mysql2_adapter_spec.rb'
210
- - 'spec/adapters/postgresql_adapter_spec.rb'
211
- - 'spec/adapters/sqlite3_adapter_spec.rb'
212
- - 'spec/tenant_spec.rb'
213
- - 'spec/unit/config_spec.rb'
214
- - 'spec/unit/elevators/domain_spec.rb'
215
- - 'spec/unit/elevators/first_subdomain_spec.rb'
216
- - 'spec/unit/elevators/generic_spec.rb'
217
- - 'spec/unit/elevators/host_hash_spec.rb'
218
- - 'spec/unit/elevators/host_spec.rb'
219
- - 'spec/unit/elevators/subdomain_spec.rb'
220
- - 'spec/unit/migrator_spec.rb'
221
-
222
- # Offense count: 1
223
- # This cop supports safe autocorrection (--autocorrect).
224
- # Configuration parameters: EnforcedStyle.
225
- # SupportedStyles: implicit, each, example
226
- RSpec/HookArgument:
227
- Exclude:
228
- - 'spec/support/setup.rb'
229
-
230
- # Offense count: 4
231
- # This cop supports safe autocorrection (--autocorrect).
232
- RSpec/HooksBeforeExamples:
233
- Exclude:
234
- - 'spec/adapters/sqlite3_adapter_spec.rb'
235
- - 'spec/examples/schema_adapter_examples.rb'
236
-
237
- # Offense count: 4
238
- # Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
239
- RSpec/IndexedLet:
240
- Exclude:
241
- - 'spec/examples/schema_adapter_examples.rb'
242
- - 'spec/support/contexts.rb'
243
-
244
- # Offense count: 16
245
- # Configuration parameters: AssignmentOnly.
246
- RSpec/InstanceVariable:
247
- Exclude:
248
- - 'spec/examples/generic_adapter_examples.rb'
249
- - 'spec/examples/schema_adapter_examples.rb'
250
- - 'spec/integration/apartment_rake_integration_spec.rb'
251
- - 'spec/integration/use_within_an_engine_spec.rb'
252
- - 'spec/tasks/apartment_rake_spec.rb'
253
-
254
- # Offense count: 2
255
- RSpec/LeakyConstantDeclaration:
256
- Exclude:
257
- - 'spec/examples/generic_adapters_callbacks_examples.rb'
258
- - 'spec/unit/elevators/generic_spec.rb'
259
-
260
- # Offense count: 27
261
- # Configuration parameters: EnforcedStyle.
262
- # SupportedStyles: have_received, receive
263
- RSpec/MessageSpies:
264
- Exclude:
265
- - 'spec/examples/generic_adapter_custom_configuration_example.rb'
266
- - 'spec/integration/apartment_rake_integration_spec.rb'
267
- - 'spec/integration/use_within_an_engine_spec.rb'
268
- - 'spec/tasks/apartment_rake_spec.rb'
269
- - 'spec/unit/elevators/domain_spec.rb'
270
- - 'spec/unit/elevators/generic_spec.rb'
271
- - 'spec/unit/elevators/host_hash_spec.rb'
272
- - 'spec/unit/elevators/host_spec.rb'
273
- - 'spec/unit/elevators/subdomain_spec.rb'
274
- - 'spec/unit/migrator_spec.rb'
275
-
276
- # Offense count: 11
277
- # This cop supports safe autocorrection (--autocorrect).
278
- # Configuration parameters: EnforcedStyle.
279
- # SupportedStyles: hash, symbol
280
- RSpec/MetadataStyle:
281
- Exclude:
282
- - 'spec/examples/schema_adapter_examples.rb'
283
- - 'spec/support/contexts.rb'
284
-
285
- # Offense count: 27
286
- RSpec/MultipleExpectations:
287
- Max: 6
288
-
289
- # Offense count: 46
290
- # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
291
- # SupportedStyles: always, named_only
292
- RSpec/NamedSubject:
293
- Exclude:
294
- - 'spec/adapters/mysql2_adapter_spec.rb'
295
- - 'spec/adapters/sqlite3_adapter_spec.rb'
296
- - 'spec/support/contexts.rb'
297
- - 'spec/support/requirements.rb'
298
- - 'spec/tenant_spec.rb'
299
-
300
- # Offense count: 22
301
- # Configuration parameters: AllowedGroups.
302
- RSpec/NestedGroups:
303
- Max: 5
304
-
305
- # Offense count: 1
306
- # Configuration parameters: AllowedPatterns.
307
- # AllowedPatterns: ^expect_, ^assert_
308
- RSpec/NoExpectationExample:
309
- Exclude:
310
- - 'spec/tenant_spec.rb'
311
-
312
- # Offense count: 12
313
- # Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
314
- # Include: **/*_spec.rb
315
- RSpec/SpecFilePathFormat:
316
- Exclude:
317
- - 'spec/adapters/mysql2_adapter_spec.rb'
318
- - 'spec/adapters/postgresql_adapter_spec.rb'
319
- - 'spec/adapters/sqlite3_adapter_spec.rb'
320
- - 'spec/tenant_spec.rb'
321
- - 'spec/unit/config_spec.rb'
322
- - 'spec/unit/elevators/domain_spec.rb'
323
- - 'spec/unit/elevators/first_subdomain_spec.rb'
324
- - 'spec/unit/elevators/generic_spec.rb'
325
- - 'spec/unit/elevators/host_hash_spec.rb'
326
- - 'spec/unit/elevators/host_spec.rb'
327
- - 'spec/unit/elevators/subdomain_spec.rb'
328
- - 'spec/unit/migrator_spec.rb'
329
-
330
- # Offense count: 2
331
- # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
332
- RSpec/VerifiedDoubles:
333
- Exclude:
334
- - 'spec/integration/apartment_rake_integration_spec.rb'
335
- - 'spec/unit/elevators/first_subdomain_spec.rb'
336
-
337
- # Offense count: 2
338
- # This cop supports safe autocorrection (--autocorrect).
339
- Rails/IndexWith:
340
- Exclude:
341
- - 'lib/apartment.rb'
342
- - 'spec/unit/config_spec.rb'
343
-
344
- # Offense count: 7
345
- # This cop supports unsafe autocorrection (--autocorrect-all).
346
- Rails/Pluck:
347
- Exclude:
348
- - 'spec/adapters/jdbc_mysql_adapter_spec.rb'
349
- - 'spec/adapters/jdbc_postgresql_adapter_spec.rb'
350
- - 'spec/adapters/mysql2_adapter_spec.rb'
351
- - 'spec/adapters/postgresql_adapter_spec.rb'
352
-
353
- # Offense count: 1
354
- # This cop supports unsafe autocorrection (--autocorrect-all).
355
- Security/IoMethods:
356
- Exclude:
357
- - 'spec/support/config.rb'
358
-
359
- # Offense count: 16
360
- # Configuration parameters: AllowedConstants.
361
- Style/Documentation:
362
- Exclude:
363
- - 'lib/apartment/adapters/jdbc_mysql_adapter.rb'
364
- - 'lib/apartment/adapters/postgis_adapter.rb'
365
- - 'lib/apartment/adapters/postgresql_adapter.rb'
366
- - 'lib/apartment/adapters/sqlite3_adapter.rb'
367
- - 'lib/apartment/custom_console.rb'
368
- - 'lib/apartment/deprecation.rb'
369
- - 'lib/apartment/migrator.rb'
370
- - 'lib/apartment/model.rb'
371
- - 'lib/apartment/railtie.rb'
372
- - 'lib/apartment/tasks/enhancements.rb'
373
- - 'lib/apartment/tasks/task_helper.rb'
374
- - 'lib/generators/apartment/install/install_generator.rb'
375
-
376
- # Offense count: 4
377
- # This cop supports safe autocorrection (--autocorrect).
378
- # Configuration parameters: AllowedVars.
379
- Style/FetchEnvVar:
380
- Exclude:
381
- - 'lib/apartment/adapters/postgresql_adapter.rb'
382
-
383
- # Offense count: 3
384
- # This cop supports safe autocorrection (--autocorrect).
385
- # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
386
- # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
387
- # SupportedShorthandSyntax: always, never, either, consistent
388
- Style/HashSyntax:
389
- Exclude:
390
- - 'lib/apartment/active_record/connection_handling.rb'
391
- - 'spec/integration/connection_handling_spec.rb'
392
-
393
- # Offense count: 1
394
- # This cop supports unsafe autocorrection (--autocorrect-all).
395
- # Configuration parameters: EnforcedStyle, Autocorrect.
396
- # SupportedStyles: module_function, extend_self, forbidden
397
- Style/ModuleFunction:
398
- Exclude:
399
- - 'lib/apartment/migrator.rb'
400
-
401
- # Offense count: 4
402
- # This cop supports safe autocorrection (--autocorrect).
403
- Style/RedundantConstantBase:
404
- Exclude:
405
- - 'spec/apartment_spec.rb'
406
- - 'spec/dummy/config.ru'
407
- - 'spec/dummy_engine/test/dummy/config.ru'
408
- - 'spec/dummy_engine/test/dummy/config/environments/production.rb'
409
-
410
- # Offense count: 1
411
- # This cop supports safe autocorrection (--autocorrect).
412
- Style/RedundantParentheses:
413
- Exclude:
414
- - 'lib/apartment.rb'
415
-
416
- # Offense count: 1
417
- # This cop supports safe autocorrection (--autocorrect).
418
- Style/RedundantRegexpArgument:
419
- Exclude:
420
- - 'lib/apartment/tasks/enhancements.rb'
421
-
422
- # Offense count: 3
423
- # This cop supports unsafe autocorrection (--autocorrect-all).
424
- # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
425
- # AllowedMethods: present?, blank?, presence, try, try!
426
- Style/SafeNavigation:
427
- Exclude:
428
- - 'lib/apartment/migrator.rb'
429
- - 'lib/tasks/apartment.rake'
430
-
431
- # Offense count: 2
432
- # This cop supports safe autocorrection (--autocorrect).
433
- Style/SuperWithArgsParentheses:
434
- Exclude:
435
- - 'lib/apartment/adapters/sqlite3_adapter.rb'
436
- - 'lib/apartment/elevators/host_hash.rb'
File without changes