ros-apartment 2.8.1 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c36b8c69f5db4dff0a6befb5fdbd81d193cc4c1185b870f146d53ed81e6a0a0b
4
- data.tar.gz: a6e57ff1723b954ad083b7d22f184afeec2dbdbbeaff2bd605a995f2b5138143
3
+ metadata.gz: 2494257d1e615c2ef2e79647f3d5b62762dec8c51af19f2c5fe352b01572e752
4
+ data.tar.gz: 23b24db12c93d35cf10e34e1c71455a6fe05c9afe162dca6de5115212cb052b7
5
5
  SHA512:
6
- metadata.gz: 5ad2cb2b3b52d20c7be5b1bd780cf27aa35d4cc954b5d03e56376a1dd306e5fa317da1ac783e674bf50c0db343c40dbf386593be2b02497372ae4f34f3f42801
7
- data.tar.gz: aaf0d4b3e1bc71fa71dc98731b05d2921546fbcd5c60718c63c1e5dacfdee47924356e9372e1dbef2d34625e9696d001a8b289c4fec42345664ec3afb0de208d
6
+ metadata.gz: e13fe607631fe0953b16ec42a64ba162deb3fc1522b70ac09b152acbc47b6bebd63a25cc35a6873a3190304de40166f89e9782ceced0259932116739890526f2
7
+ data.tar.gz: 035b1b87cdf43f463a6895981d63100a238a2a8b3ad0e0b529d74fa261f6138005e0f5aecd425e857d9ba10ee11c613cb8d6b3002cd35484b34b58f4df367e9a
data/.rubocop.yml CHANGED
@@ -1,96 +1,36 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
- AllCops:
4
- Exclude:
5
- - 'gemfiles/**/*.gemfile'
6
- - 'gemfiles/vendor/**/*'
7
- - 'spec/dummy_engine/dummy_engine.gemspec'
8
-
9
- Gemspec/RequiredRubyVersion:
10
- Exclude:
11
- - 'ros-apartment.gemspec'
3
+ require:
4
+ - rubocop-rails
5
+ - rubocop-performance
6
+ - rubocop-rspec
12
7
 
13
- Style/WordArray:
8
+ AllCops:
14
9
  Exclude:
10
+ - vendor/bundle/**/*
11
+ - gemfiles/**/*.gemfile
12
+ - gemfiles/vendor/**/*
13
+ - spec/dummy_engine/dummy_engine.gemspec
15
14
  - spec/schemas/**/*.rb
16
15
 
17
- Style/NumericLiterals:
18
- Exclude:
19
- - spec/schemas/**/*.rb
16
+ NewCops: enable
20
17
 
21
- Layout/EmptyLineAfterMagicComment:
18
+ Gemspec/RequiredRubyVersion:
22
19
  Exclude:
23
- - spec/schemas/**/*.rb
20
+ - 'ros-apartment.gemspec'
24
21
 
25
22
  Metrics/BlockLength:
26
23
  Exclude:
27
24
  - spec/**/*.rb
28
25
 
29
- Layout/EmptyLinesAroundAttributeAccessor:
30
- Enabled: true
31
-
32
- Layout/SpaceAroundMethodCallOperator:
33
- Enabled: true
34
-
35
- Lint/DeprecatedOpenSSLConstant:
36
- Enabled: true
37
-
38
- Lint/DuplicateElsifCondition:
39
- Enabled: true
40
-
41
- Lint/MixedRegexpCaptureTypes:
42
- Enabled: true
43
-
44
- Lint/RaiseException:
45
- Enabled: true
46
-
47
- Lint/StructNewOverride:
48
- Enabled: true
49
-
50
- Style/AccessorGrouping:
51
- Enabled: true
52
-
53
- Style/ArrayCoercion:
54
- Enabled: true
55
-
56
- Style/BisectedAttrAccessor:
57
- Enabled: true
58
-
59
- Style/CaseLikeIf:
60
- Enabled: true
61
-
62
- Style/ExponentialNotation:
63
- Enabled: true
64
-
65
- Style/HashAsLastArrayItem:
66
- Enabled: true
67
-
68
- Style/HashEachMethods:
69
- Enabled: true
70
-
71
- Style/HashLikeCase:
72
- Enabled: true
73
-
74
- Style/HashTransformKeys:
75
- Enabled: true
76
-
77
- Style/HashTransformValues:
78
- Enabled: true
79
-
80
- Style/RedundantAssignment:
81
- Enabled: true
82
-
83
- Style/RedundantFetchBlock:
84
- Enabled: true
85
-
86
- Style/RedundantFileExtensionInRequire:
87
- Enabled: true
26
+ Rails/RakeEnvironment:
27
+ Enabled: false
88
28
 
89
- Style/RedundantRegexpCharacterClass:
90
- Enabled: true
29
+ Rails/ApplicationRecord:
30
+ Enabled: false
91
31
 
92
- Style/RedundantRegexpEscape:
93
- Enabled: true
32
+ Rails/Output:
33
+ Enabled: false
94
34
 
95
- Style/SlicingWithRange:
96
- Enabled: true
35
+ Style/Documentation:
36
+ Enabled: false
data/.rubocop_todo.yml CHANGED
@@ -1,32 +1,94 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2020-07-16 04:15:41 UTC using RuboCop version 0.88.0.
3
+ # on 2024-05-07 18:57:21 UTC using RuboCop version 1.63.4.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
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
+
9
65
  # Offense count: 1
10
66
  Lint/MixedRegexpCaptureTypes:
11
67
  Exclude:
12
68
  - 'lib/apartment/elevators/domain.rb'
13
69
 
70
+ # Offense count: 1
71
+ # This cop supports safe autocorrection (--autocorrect).
72
+ Lint/RedundantCopDisableDirective:
73
+ Exclude:
74
+ - 'spec/support/config.rb'
75
+
14
76
  # Offense count: 2
15
- # Cop supports --auto-correct.
16
- Lint/NonDeterministicRequireOrder:
77
+ # This cop supports unsafe autocorrection (--autocorrect-all).
78
+ Lint/RedundantDirGlobSort:
17
79
  Exclude:
18
80
  - 'spec/spec_helper.rb'
19
81
 
20
- # Offense count: 7
21
- # Configuration parameters: IgnoredMethods.
82
+ # Offense count: 2
83
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
22
84
  Metrics/AbcSize:
23
- Max: 33
85
+ Max: 28
24
86
 
25
- # Offense count: 3
26
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
27
- # ExcludedMethods: refine
87
+ # Offense count: 4
88
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
89
+ # AllowedMethods: refine
28
90
  Metrics/BlockLength:
29
- Max: 102
91
+ Max: 83
30
92
 
31
93
  # Offense count: 1
32
94
  # Configuration parameters: CountComments, CountAsOne.
@@ -34,15 +96,273 @@ Metrics/ClassLength:
34
96
  Max: 151
35
97
 
36
98
  # Offense count: 6
37
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
99
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
38
100
  Metrics/MethodLength:
39
- Max: 24
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/trilogy_adapter_spec.rb'
211
+ - 'spec/adapters/postgresql_adapter_spec.rb'
212
+ - 'spec/adapters/sqlite3_adapter_spec.rb'
213
+ - 'spec/tenant_spec.rb'
214
+ - 'spec/unit/config_spec.rb'
215
+ - 'spec/unit/elevators/domain_spec.rb'
216
+ - 'spec/unit/elevators/first_subdomain_spec.rb'
217
+ - 'spec/unit/elevators/generic_spec.rb'
218
+ - 'spec/unit/elevators/host_hash_spec.rb'
219
+ - 'spec/unit/elevators/host_spec.rb'
220
+ - 'spec/unit/elevators/subdomain_spec.rb'
221
+ - 'spec/unit/migrator_spec.rb'
222
+
223
+ # Offense count: 1
224
+ # This cop supports safe autocorrection (--autocorrect).
225
+ # Configuration parameters: EnforcedStyle.
226
+ # SupportedStyles: implicit, each, example
227
+ RSpec/HookArgument:
228
+ Exclude:
229
+ - 'spec/support/setup.rb'
230
+
231
+ # Offense count: 4
232
+ # This cop supports safe autocorrection (--autocorrect).
233
+ RSpec/HooksBeforeExamples:
234
+ Exclude:
235
+ - 'spec/adapters/sqlite3_adapter_spec.rb'
236
+ - 'spec/examples/schema_adapter_examples.rb'
237
+
238
+ # Offense count: 4
239
+ # Configuration parameters: Max, AllowedIdentifiers, AllowedPatterns.
240
+ RSpec/IndexedLet:
241
+ Exclude:
242
+ - 'spec/examples/schema_adapter_examples.rb'
243
+ - 'spec/support/contexts.rb'
244
+
245
+ # Offense count: 16
246
+ # Configuration parameters: AssignmentOnly.
247
+ RSpec/InstanceVariable:
248
+ Exclude:
249
+ - 'spec/examples/generic_adapter_examples.rb'
250
+ - 'spec/examples/schema_adapter_examples.rb'
251
+ - 'spec/integration/apartment_rake_integration_spec.rb'
252
+ - 'spec/integration/use_within_an_engine_spec.rb'
253
+ - 'spec/tasks/apartment_rake_spec.rb'
254
+
255
+ # Offense count: 2
256
+ RSpec/LeakyConstantDeclaration:
257
+ Exclude:
258
+ - 'spec/examples/generic_adapters_callbacks_examples.rb'
259
+ - 'spec/unit/elevators/generic_spec.rb'
260
+
261
+ # Offense count: 27
262
+ # Configuration parameters: EnforcedStyle.
263
+ # SupportedStyles: have_received, receive
264
+ RSpec/MessageSpies:
265
+ Exclude:
266
+ - 'spec/examples/generic_adapter_custom_configuration_example.rb'
267
+ - 'spec/integration/apartment_rake_integration_spec.rb'
268
+ - 'spec/integration/use_within_an_engine_spec.rb'
269
+ - 'spec/tasks/apartment_rake_spec.rb'
270
+ - 'spec/unit/elevators/domain_spec.rb'
271
+ - 'spec/unit/elevators/generic_spec.rb'
272
+ - 'spec/unit/elevators/host_hash_spec.rb'
273
+ - 'spec/unit/elevators/host_spec.rb'
274
+ - 'spec/unit/elevators/subdomain_spec.rb'
275
+ - 'spec/unit/migrator_spec.rb'
276
+
277
+ # Offense count: 11
278
+ # This cop supports safe autocorrection (--autocorrect).
279
+ # Configuration parameters: EnforcedStyle.
280
+ # SupportedStyles: hash, symbol
281
+ RSpec/MetadataStyle:
282
+ Exclude:
283
+ - 'spec/examples/schema_adapter_examples.rb'
284
+ - 'spec/support/contexts.rb'
285
+
286
+ # Offense count: 27
287
+ RSpec/MultipleExpectations:
288
+ Max: 6
289
+
290
+ # Offense count: 46
291
+ # Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
292
+ # SupportedStyles: always, named_only
293
+ RSpec/NamedSubject:
294
+ Exclude:
295
+ - 'spec/adapters/mysql2_adapter_spec.rb'
296
+ - 'spec/adapters/trilogy_adapter_spec.rb'
297
+ - 'spec/adapters/sqlite3_adapter_spec.rb'
298
+ - 'spec/support/contexts.rb'
299
+ - 'spec/support/requirements.rb'
300
+ - 'spec/tenant_spec.rb'
301
+
302
+ # Offense count: 22
303
+ # Configuration parameters: AllowedGroups.
304
+ RSpec/NestedGroups:
305
+ Max: 5
306
+
307
+ # Offense count: 1
308
+ # Configuration parameters: AllowedPatterns.
309
+ # AllowedPatterns: ^expect_, ^assert_
310
+ RSpec/NoExpectationExample:
311
+ Exclude:
312
+ - 'spec/tenant_spec.rb'
313
+
314
+ # Offense count: 12
315
+ # Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
316
+ # Include: **/*_spec.rb
317
+ RSpec/SpecFilePathFormat:
318
+ Exclude:
319
+ - 'spec/adapters/mysql2_adapter_spec.rb'
320
+ - 'spec/adapters/trilogy_adapter_spec.rb'
321
+ - 'spec/adapters/postgresql_adapter_spec.rb'
322
+ - 'spec/adapters/sqlite3_adapter_spec.rb'
323
+ - 'spec/tenant_spec.rb'
324
+ - 'spec/unit/config_spec.rb'
325
+ - 'spec/unit/elevators/domain_spec.rb'
326
+ - 'spec/unit/elevators/first_subdomain_spec.rb'
327
+ - 'spec/unit/elevators/generic_spec.rb'
328
+ - 'spec/unit/elevators/host_hash_spec.rb'
329
+ - 'spec/unit/elevators/host_spec.rb'
330
+ - 'spec/unit/elevators/subdomain_spec.rb'
331
+ - 'spec/unit/migrator_spec.rb'
332
+
333
+ # Offense count: 2
334
+ # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
335
+ RSpec/VerifiedDoubles:
336
+ Exclude:
337
+ - 'spec/integration/apartment_rake_integration_spec.rb'
338
+ - 'spec/unit/elevators/first_subdomain_spec.rb'
339
+
340
+ # Offense count: 2
341
+ # This cop supports safe autocorrection (--autocorrect).
342
+ Rails/IndexWith:
343
+ Exclude:
344
+ - 'lib/apartment.rb'
345
+ - 'spec/unit/config_spec.rb'
40
346
 
41
- # Offense count: 17
347
+ # Offense count: 7
348
+ # This cop supports unsafe autocorrection (--autocorrect-all).
349
+ Rails/Pluck:
350
+ Exclude:
351
+ - 'spec/adapters/jdbc_mysql_adapter_spec.rb'
352
+ - 'spec/adapters/jdbc_postgresql_adapter_spec.rb'
353
+ - 'spec/adapters/mysql2_adapter_spec.rb'
354
+ - 'spec/adapters/postgresql_adapter_spec.rb'
355
+
356
+ # Offense count: 1
357
+ # This cop supports unsafe autocorrection (--autocorrect-all).
358
+ Security/IoMethods:
359
+ Exclude:
360
+ - 'spec/support/config.rb'
361
+
362
+ # Offense count: 16
363
+ # Configuration parameters: AllowedConstants.
42
364
  Style/Documentation:
43
365
  Exclude:
44
- - 'spec/**/*'
45
- - 'test/**/*'
46
366
  - 'lib/apartment/adapters/jdbc_mysql_adapter.rb'
47
367
  - 'lib/apartment/adapters/postgis_adapter.rb'
48
368
  - 'lib/apartment/adapters/postgresql_adapter.rb'
@@ -52,15 +372,68 @@ Style/Documentation:
52
372
  - 'lib/apartment/migrator.rb'
53
373
  - 'lib/apartment/model.rb'
54
374
  - 'lib/apartment/railtie.rb'
55
- - 'lib/apartment/reloader.rb'
56
375
  - 'lib/apartment/tasks/enhancements.rb'
57
376
  - 'lib/apartment/tasks/task_helper.rb'
58
377
  - 'lib/generators/apartment/install/install_generator.rb'
59
378
 
379
+ # Offense count: 4
380
+ # This cop supports safe autocorrection (--autocorrect).
381
+ # Configuration parameters: AllowedVars.
382
+ Style/FetchEnvVar:
383
+ Exclude:
384
+ - 'lib/apartment/adapters/postgresql_adapter.rb'
385
+
60
386
  # Offense count: 3
61
- # Cop supports --auto-correct.
62
- Style/IfUnlessModifier:
387
+ # This cop supports safe autocorrection (--autocorrect).
388
+ # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
389
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
390
+ # SupportedShorthandSyntax: always, never, either, consistent
391
+ Style/HashSyntax:
392
+ Exclude:
393
+ - 'lib/apartment/active_record/connection_handling.rb'
394
+ - 'spec/integration/connection_handling_spec.rb'
395
+
396
+ # Offense count: 1
397
+ # This cop supports unsafe autocorrection (--autocorrect-all).
398
+ # Configuration parameters: EnforcedStyle, Autocorrect.
399
+ # SupportedStyles: module_function, extend_self, forbidden
400
+ Style/ModuleFunction:
401
+ Exclude:
402
+ - 'lib/apartment/migrator.rb'
403
+
404
+ # Offense count: 4
405
+ # This cop supports safe autocorrection (--autocorrect).
406
+ Style/RedundantConstantBase:
407
+ Exclude:
408
+ - 'spec/apartment_spec.rb'
409
+ - 'spec/dummy/config.ru'
410
+ - 'spec/dummy_engine/test/dummy/config.ru'
411
+ - 'spec/dummy_engine/test/dummy/config/environments/production.rb'
412
+
413
+ # Offense count: 1
414
+ # This cop supports safe autocorrection (--autocorrect).
415
+ Style/RedundantParentheses:
63
416
  Exclude:
64
- - 'Rakefile'
65
417
  - 'lib/apartment.rb'
66
- - 'lib/apartment/tenant.rb'
418
+
419
+ # Offense count: 1
420
+ # This cop supports safe autocorrection (--autocorrect).
421
+ Style/RedundantRegexpArgument:
422
+ Exclude:
423
+ - 'lib/apartment/tasks/enhancements.rb'
424
+
425
+ # Offense count: 3
426
+ # This cop supports unsafe autocorrection (--autocorrect-all).
427
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
428
+ # AllowedMethods: present?, blank?, presence, try, try!
429
+ Style/SafeNavigation:
430
+ Exclude:
431
+ - 'lib/apartment/migrator.rb'
432
+ - 'lib/tasks/apartment.rake'
433
+
434
+ # Offense count: 2
435
+ # This cop supports safe autocorrection (--autocorrect).
436
+ Style/SuperWithArgsParentheses:
437
+ Exclude:
438
+ - 'lib/apartment/adapters/sqlite3_adapter.rb'
439
+ - 'lib/apartment/elevators/host_hash.rb'
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.3.1
data/Appraisals CHANGED
@@ -1,58 +1,50 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- appraise 'rails-5-0' do
4
- gem 'rails', '~> 5.0.0'
3
+ appraise 'rails-6-1' do
4
+ gem 'rails', '~> 6.1.0'
5
5
  platforms :ruby do
6
- gem 'pg', '< 1.0.0'
7
- end
8
- platforms :jruby do
9
- gem 'activerecord-jdbc-adapter', '~> 50.0'
10
- gem 'activerecord-jdbcpostgresql-adapter', '~> 50.0'
11
- gem 'activerecord-jdbcmysql-adapter', '~> 50.0'
12
- end
13
- end
14
-
15
- appraise 'rails-5-1' do
16
- gem 'rails', '~> 5.1.0'
17
- platforms :ruby do
18
- gem 'pg', '< 1.0.0'
19
- end
20
- platforms :jruby do
21
- gem 'activerecord-jdbc-adapter', '~> 51.0'
22
- gem 'activerecord-jdbcpostgresql-adapter', '~> 51.0'
23
- gem 'activerecord-jdbcmysql-adapter', '~> 51.0'
6
+ gem 'sqlite3', '~> 1.4'
24
7
  end
25
- end
26
-
27
- appraise 'rails-5-2' do
28
- gem 'rails', '~> 5.2.0'
29
8
  platforms :jruby do
30
- gem 'activerecord-jdbc-adapter', '~> 52.0'
31
- gem 'activerecord-jdbcpostgresql-adapter', '~> 52.0'
32
- gem 'activerecord-jdbcmysql-adapter', '~> 52.0'
9
+ gem 'activerecord-jdbc-adapter', '~> 61.0'
10
+ gem 'activerecord-jdbcpostgresql-adapter', '~> 61.0'
11
+ gem 'activerecord-jdbcmysql-adapter', '~> 61.0'
33
12
  end
34
13
  end
35
14
 
36
- appraise 'rails-6-0' do
37
- gem 'rails', '~> 6.0.0'
15
+ appraise 'rails-7-0' do
16
+ gem 'rails', '~> 7.0.0'
38
17
  platforms :ruby do
39
18
  gem 'sqlite3', '~> 1.4'
40
19
  end
41
20
  platforms :jruby do
42
- gem 'activerecord-jdbc-adapter', '~> 60.0'
43
- gem 'activerecord-jdbcpostgresql-adapter', '~> 60.0'
44
- gem 'activerecord-jdbcmysql-adapter', '~> 60.0'
21
+ gem 'activerecord-jdbc-adapter', '~> 70.0'
22
+ gem 'activerecord-jdbcpostgresql-adapter', '~> 70.0'
23
+ gem 'activerecord-jdbcmysql-adapter', '~> 70.0'
45
24
  end
46
25
  end
47
26
 
48
- appraise 'rails-master' do
49
- gem 'rails', git: 'https://github.com/rails/rails.git'
27
+ appraise 'rails-7-1' do
28
+ gem 'rails', '~> 7.1.0'
50
29
  platforms :ruby do
51
- gem 'sqlite3', '~> 1.4'
30
+ gem 'sqlite3', '~> 1.6'
52
31
  end
53
32
  platforms :jruby do
54
- gem 'activerecord-jdbc-adapter', '~> 52.0'
55
- gem 'activerecord-jdbcpostgresql-adapter', '~> 52.0'
56
- gem 'activerecord-jdbcmysql-adapter', '~> 52.0'
33
+ gem 'activerecord-jdbc-adapter', '~> 71.0'
34
+ gem 'activerecord-jdbcpostgresql-adapter', '~> 71.0'
35
+ gem 'activerecord-jdbcmysql-adapter', '~> 71.0'
57
36
  end
58
37
  end
38
+
39
+ # Install Rails from the main branch are failing
40
+ # appraise 'rails-master' do
41
+ # gem 'rails', git: 'https://github.com/rails/rails.git'
42
+ # platforms :ruby do
43
+ # gem 'sqlite3', '~> 2.0'
44
+ # end
45
+ # platforms :jruby do
46
+ # gem 'activerecord-jdbc-adapter', '~> 61.0'
47
+ # gem 'activerecord-jdbcpostgresql-adapter', '~> 61.0'
48
+ # gem 'activerecord-jdbcmysql-adapter', '~> 61.0'
49
+ # end
50
+ # end
data/CHANGELOG.md CHANGED
@@ -1,8 +1,10 @@
1
- # Changelog
1
+ # Changelog [DEPRECATED]
2
2
 
3
- ## [Unreleased](https://github.com/rails-on-services/apartment/tree/HEAD)
3
+ Changes are now being tracked in the [releases](https://github.com/rails-on-services/apartment/releases) section of the repository.
4
4
 
5
- [Full Changelog](https://github.com/rails-on-services/apartment/compare/v2.8.0...HEAD)
5
+ ## [v2.8.1](https://github.com/rails-on-services/apartment/tree/v2.8.1) (2020-12-17)
6
+
7
+ [Full Changelog](https://github.com/rails-on-services/apartment/compare/v2.8.0...v2.8.1)
6
8
 
7
9
  **Implemented enhancements:**
8
10