ros-apartment 2.11.0 → 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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +55 -8
  3. data/.ruby-version +1 -1
  4. data/Appraisals +106 -34
  5. data/CODE_OF_CONDUCT.md +71 -0
  6. data/Gemfile +15 -0
  7. data/README.md +52 -35
  8. data/Rakefile +40 -36
  9. data/{CHANGELOG.md → legacy_CHANGELOG.md} +5 -3
  10. data/lib/apartment/active_record/connection_handling.rb +18 -7
  11. data/lib/apartment/active_record/postgres/schema_dumper.rb +20 -0
  12. data/lib/apartment/active_record/postgresql_adapter.rb +23 -4
  13. data/lib/apartment/active_record/schema_migration.rb +1 -1
  14. data/lib/apartment/adapters/abstract_adapter.rb +1 -1
  15. data/lib/apartment/adapters/postgresql_adapter.rb +15 -19
  16. data/lib/apartment/adapters/trilogy_adapter.rb +29 -0
  17. data/lib/apartment/deprecation.rb +2 -5
  18. data/lib/apartment/log_subscriber.rb +21 -9
  19. data/lib/apartment/migrator.rb +6 -12
  20. data/lib/apartment/railtie.rb +6 -1
  21. data/lib/apartment/tasks/task_helper.rb +3 -1
  22. data/lib/apartment/version.rb +1 -1
  23. data/lib/apartment.rb +12 -16
  24. data/ros-apartment.gemspec +13 -32
  25. metadata +40 -246
  26. data/.circleci/config.yml +0 -78
  27. data/.github/ISSUE_TEMPLATE.md +0 -21
  28. data/.github/workflows/changelog.yml +0 -63
  29. data/.github/workflows/reviewdog.yml +0 -22
  30. data/.rubocop_todo.yml +0 -233
  31. data/.story_branch.yml +0 -5
  32. data/HISTORY.md +0 -496
  33. data/TODO.md +0 -50
  34. data/docker-compose.yml +0 -33
  35. data/gemfiles/rails_5_2.gemfile +0 -13
  36. data/gemfiles/rails_6_0.gemfile +0 -17
  37. data/gemfiles/rails_6_1.gemfile +0 -17
  38. data/gemfiles/rails_7_0.gemfile +0 -17
  39. data/gemfiles/rails_master.gemfile +0 -17
data/.rubocop_todo.yml DELETED
@@ -1,233 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2021-06-26 03:25:28 UTC using RuboCop version 0.93.1.
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
- Lint/MixedRegexpCaptureTypes:
11
- Exclude:
12
- - 'lib/apartment/elevators/domain.rb'
13
-
14
- # Offense count: 3
15
- # Configuration parameters: IgnoredMethods.
16
- Metrics/AbcSize:
17
- Max: 28
18
-
19
- # Offense count: 5
20
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
21
- # ExcludedMethods: refine
22
- Metrics/BlockLength:
23
- Max: 83
24
-
25
- # Offense count: 1
26
- # Configuration parameters: CountComments, CountAsOne.
27
- Metrics/ClassLength:
28
- Max: 151
29
-
30
- # Offense count: 6
31
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
32
- Metrics/MethodLength:
33
- Max: 24
34
-
35
- # Offense count: 3
36
- RSpec/AnyInstance:
37
- Exclude:
38
- - 'spec/unit/migrator_spec.rb'
39
-
40
- # Offense count: 2
41
- RSpec/BeforeAfterAll:
42
- Exclude:
43
- - 'spec/spec_helper.rb'
44
- - 'spec/rails_helper.rb'
45
- - 'spec/support/**/*.rb'
46
- - 'spec/adapters/sqlite3_adapter_spec.rb'
47
- - 'spec/tasks/apartment_rake_spec.rb'
48
-
49
- # Offense count: 18
50
- # Configuration parameters: Prefixes.
51
- # Prefixes: when, with, without
52
- RSpec/ContextWording:
53
- Exclude:
54
- - 'spec/adapters/sqlite3_adapter_spec.rb'
55
- - 'spec/examples/generic_adapter_custom_configuration_example.rb'
56
- - 'spec/examples/schema_adapter_examples.rb'
57
- - 'spec/support/contexts.rb'
58
- - 'spec/tasks/apartment_rake_spec.rb'
59
- - 'spec/tenant_spec.rb'
60
-
61
- # Offense count: 4
62
- # Configuration parameters: IgnoredMetadata.
63
- RSpec/DescribeClass:
64
- Exclude:
65
- - 'spec/integration/apartment_rake_integration_spec.rb'
66
- - 'spec/integration/query_caching_spec.rb'
67
- - 'spec/integration/use_within_an_engine_spec.rb'
68
- - 'spec/tasks/apartment_rake_spec.rb'
69
-
70
- # Offense count: 12
71
- # Cop supports --auto-correct.
72
- # Configuration parameters: SkipBlocks, EnforcedStyle.
73
- # SupportedStyles: described_class, explicit
74
- RSpec/DescribedClass:
75
- Exclude:
76
- - 'spec/apartment_spec.rb'
77
- - 'spec/tenant_spec.rb'
78
- - 'spec/unit/elevators/host_hash_spec.rb'
79
- - 'spec/unit/migrator_spec.rb'
80
-
81
- # Offense count: 5
82
- # Cop supports --auto-correct.
83
- RSpec/EmptyLineAfterFinalLet:
84
- Exclude:
85
- - 'spec/adapters/sqlite3_adapter_spec.rb'
86
- - 'spec/examples/schema_adapter_examples.rb'
87
-
88
- # Offense count: 14
89
- # Configuration parameters: Max.
90
- RSpec/ExampleLength:
91
- Exclude:
92
- - 'spec/examples/generic_adapter_custom_configuration_example.rb'
93
- - 'spec/examples/generic_adapter_examples.rb'
94
- - 'spec/examples/schema_adapter_examples.rb'
95
- - 'spec/integration/query_caching_spec.rb'
96
- - 'spec/tenant_spec.rb'
97
-
98
- # Offense count: 60
99
- # Cop supports --auto-correct.
100
- # Configuration parameters: CustomTransform, IgnoredWords.
101
- RSpec/ExampleWording:
102
- Exclude:
103
- - 'spec/adapters/sqlite3_adapter_spec.rb'
104
- - 'spec/apartment_spec.rb'
105
- - 'spec/examples/connection_adapter_examples.rb'
106
- - 'spec/examples/generic_adapter_custom_configuration_example.rb'
107
- - 'spec/examples/generic_adapter_examples.rb'
108
- - 'spec/examples/schema_adapter_examples.rb'
109
- - 'spec/integration/apartment_rake_integration_spec.rb'
110
- - 'spec/integration/use_within_an_engine_spec.rb'
111
- - 'spec/tasks/apartment_rake_spec.rb'
112
- - 'spec/tenant_spec.rb'
113
-
114
- # Offense count: 13
115
- # Configuration parameters: CustomTransform, IgnoreMethods, SpecSuffixOnly.
116
- RSpec/FilePath:
117
- Exclude:
118
- - 'spec/adapters/mysql2_adapter_spec.rb'
119
- - 'spec/adapters/postgresql_adapter_spec.rb'
120
- - 'spec/adapters/sqlite3_adapter_spec.rb'
121
- - 'spec/tenant_spec.rb'
122
- - 'spec/unit/config_spec.rb'
123
- - 'spec/unit/elevators/domain_spec.rb'
124
- - 'spec/unit/elevators/first_subdomain_spec.rb'
125
- - 'spec/unit/elevators/generic_spec.rb'
126
- - 'spec/unit/elevators/host_hash_spec.rb'
127
- - 'spec/unit/elevators/host_spec.rb'
128
- - 'spec/unit/elevators/subdomain_spec.rb'
129
- - 'spec/unit/migrator_spec.rb'
130
-
131
- # Offense count: 1
132
- # Cop supports --auto-correct.
133
- # Configuration parameters: EnforcedStyle.
134
- # SupportedStyles: implicit, each, example
135
- RSpec/HookArgument:
136
- Exclude:
137
- - 'spec/support/setup.rb'
138
-
139
- # Offense count: 4
140
- # Cop supports --auto-correct.
141
- RSpec/HooksBeforeExamples:
142
- Exclude:
143
- - 'spec/adapters/sqlite3_adapter_spec.rb'
144
- - 'spec/examples/schema_adapter_examples.rb'
145
-
146
- # Offense count: 18
147
- # Configuration parameters: AssignmentOnly.
148
- RSpec/InstanceVariable:
149
- Exclude:
150
- - 'spec/examples/generic_adapter_examples.rb'
151
- - 'spec/examples/schema_adapter_examples.rb'
152
- - 'spec/integration/apartment_rake_integration_spec.rb'
153
- - 'spec/integration/use_within_an_engine_spec.rb'
154
- - 'spec/tasks/apartment_rake_spec.rb'
155
-
156
- # Offense count: 1
157
- # Cop supports --auto-correct.
158
- RSpec/LeadingSubject:
159
- Exclude:
160
-
161
- # Offense count: 2
162
- RSpec/LeakyConstantDeclaration:
163
- Exclude:
164
- - 'spec/examples/generic_adapters_callbacks_examples.rb'
165
- - 'spec/unit/elevators/generic_spec.rb'
166
-
167
- # Offense count: 35
168
- # Configuration parameters: EnforcedStyle.
169
- # SupportedStyles: have_received, receive
170
- RSpec/MessageSpies:
171
- Exclude:
172
- - 'spec/examples/generic_adapter_custom_configuration_example.rb'
173
- - 'spec/integration/apartment_rake_integration_spec.rb'
174
- - 'spec/integration/use_within_an_engine_spec.rb'
175
- - 'spec/tasks/apartment_rake_spec.rb'
176
- - 'spec/unit/elevators/domain_spec.rb'
177
- - 'spec/unit/elevators/generic_spec.rb'
178
- - 'spec/unit/elevators/host_hash_spec.rb'
179
- - 'spec/unit/elevators/host_spec.rb'
180
- - 'spec/unit/elevators/subdomain_spec.rb'
181
- - 'spec/unit/migrator_spec.rb'
182
-
183
- # Offense count: 29
184
- RSpec/MultipleExpectations:
185
- Max: 4
186
-
187
- # Offense count: 47
188
- # Configuration parameters: IgnoreSharedExamples.
189
- RSpec/NamedSubject:
190
- Exclude:
191
- - 'spec/adapters/mysql2_adapter_spec.rb'
192
- - 'spec/adapters/sqlite3_adapter_spec.rb'
193
- - 'spec/support/contexts.rb'
194
- - 'spec/support/requirements.rb'
195
- - 'spec/tenant_spec.rb'
196
-
197
- # Offense count: 24
198
- RSpec/NestedGroups:
199
- Max: 5
200
-
201
- # Offense count: 6
202
- # Cop supports --auto-correct.
203
- # Configuration parameters: EnforcedStyle.
204
- # SupportedStyles: and_return, block
205
- RSpec/ReturnFromStub:
206
- Exclude:
207
- - 'spec/integration/apartment_rake_integration_spec.rb'
208
- - 'spec/unit/migrator_spec.rb'
209
-
210
- # Offense count: 4
211
- # Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
212
- RSpec/VerifiedDoubles:
213
- Exclude:
214
- - 'spec/integration/apartment_rake_integration_spec.rb'
215
- - 'spec/unit/elevators/first_subdomain_spec.rb'
216
-
217
- # Offense count: 17
218
- Style/Documentation:
219
- Exclude:
220
- - 'spec/**/*'
221
- - 'test/**/*'
222
- - 'lib/apartment/adapters/jdbc_mysql_adapter.rb'
223
- - 'lib/apartment/adapters/postgis_adapter.rb'
224
- - 'lib/apartment/adapters/postgresql_adapter.rb'
225
- - 'lib/apartment/adapters/sqlite3_adapter.rb'
226
- - 'lib/apartment/custom_console.rb'
227
- - 'lib/apartment/deprecation.rb'
228
- - 'lib/apartment/migrator.rb'
229
- - 'lib/apartment/model.rb'
230
- - 'lib/apartment/railtie.rb'
231
- - 'lib/apartment/tasks/enhancements.rb'
232
- - 'lib/apartment/tasks/task_helper.rb'
233
- - 'lib/generators/apartment/install/install_generator.rb'
data/.story_branch.yml DELETED
@@ -1,5 +0,0 @@
1
- ---
2
- tracker: github
3
- issue_placement: beginning
4
- project_id:
5
- - rails-on-services/apartment