ros-apartment 2.3.0.alpha1 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.pryrc +5 -3
- data/.rubocop.yml +36 -0
- data/.rubocop_todo.yml +439 -0
- data/.ruby-version +1 -0
- data/Appraisals +31 -52
- data/CHANGELOG.md +965 -0
- data/Gemfile +2 -7
- data/Guardfile +3 -16
- data/README.md +121 -44
- data/Rakefile +42 -31
- data/lib/apartment/active_record/connection_handling.rb +31 -0
- data/lib/apartment/active_record/internal_metadata.rb +9 -0
- data/lib/apartment/active_record/postgresql_adapter.rb +43 -0
- data/lib/apartment/active_record/schema_migration.rb +11 -0
- data/lib/apartment/adapters/abstract_adapter.rb +52 -46
- data/lib/apartment/adapters/abstract_jdbc_adapter.rb +5 -3
- data/lib/apartment/adapters/jdbc_mysql_adapter.rb +3 -3
- data/lib/apartment/adapters/jdbc_postgresql_adapter.rb +19 -13
- data/lib/apartment/adapters/mysql2_adapter.rb +15 -9
- data/lib/apartment/adapters/postgis_adapter.rb +3 -2
- data/lib/apartment/adapters/postgresql_adapter.rb +79 -31
- data/lib/apartment/adapters/sqlite3_adapter.rb +18 -8
- data/lib/apartment/adapters/trilogy_adapter.rb +29 -0
- data/lib/apartment/console.rb +23 -11
- data/lib/apartment/custom_console.rb +42 -0
- data/lib/apartment/deprecation.rb +2 -1
- data/lib/apartment/elevators/domain.rb +4 -3
- data/lib/apartment/elevators/first_subdomain.rb +3 -2
- data/lib/apartment/elevators/generic.rb +4 -3
- data/lib/apartment/elevators/host.rb +6 -1
- data/lib/apartment/elevators/host_hash.rb +6 -2
- data/lib/apartment/elevators/subdomain.rb +9 -5
- data/lib/apartment/log_subscriber.rb +45 -0
- data/lib/apartment/migrator.rb +7 -24
- data/lib/apartment/model.rb +29 -0
- data/lib/apartment/railtie.rb +21 -20
- data/lib/apartment/tasks/enhancements.rb +4 -6
- data/lib/apartment/tasks/task_helper.rb +52 -0
- data/lib/apartment/tenant.rb +7 -10
- data/lib/apartment/version.rb +3 -1
- data/lib/apartment.rb +46 -15
- data/lib/generators/apartment/install/install_generator.rb +4 -3
- data/lib/generators/apartment/install/templates/apartment.rb +10 -3
- data/lib/tasks/apartment.rake +48 -87
- data/ros-apartment.gemspec +65 -0
- metadata +181 -264
- data/.github/ISSUE_TEMPLATE.md +0 -21
- data/.travis.yml +0 -65
- data/HISTORY.md +0 -398
- data/TODO.md +0 -51
- data/apartment.gemspec +0 -46
- data/docker-compose.yml +0 -33
- data/gemfiles/rails_4_2.gemfile +0 -23
- data/gemfiles/rails_5_0.gemfile +0 -22
- data/gemfiles/rails_5_1.gemfile +0 -22
- data/gemfiles/rails_5_2.gemfile +0 -18
- data/gemfiles/rails_6_0.gemfile +0 -22
- data/gemfiles/rails_master.gemfile +0 -22
- data/lib/apartment/reloader.rb +0 -21
- data/spec/adapters/jdbc_mysql_adapter_spec.rb +0 -19
- data/spec/adapters/jdbc_postgresql_adapter_spec.rb +0 -41
- data/spec/adapters/mysql2_adapter_spec.rb +0 -59
- data/spec/adapters/postgresql_adapter_spec.rb +0 -61
- data/spec/adapters/sqlite3_adapter_spec.rb +0 -83
- data/spec/apartment_spec.rb +0 -11
- data/spec/config/database.yml.sample +0 -49
- data/spec/dummy/Rakefile +0 -7
- data/spec/dummy/app/controllers/application_controller.rb +0 -6
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/models/company.rb +0 -3
- data/spec/dummy/app/models/user.rb +0 -3
- data/spec/dummy/app/views/application/index.html.erb +0 -1
- data/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/config/application.rb +0 -49
- data/spec/dummy/config/boot.rb +0 -11
- data/spec/dummy/config/database.yml.sample +0 -44
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -28
- data/spec/dummy/config/environments/production.rb +0 -51
- data/spec/dummy/config/environments/test.rb +0 -34
- data/spec/dummy/config/initializers/apartment.rb +0 -4
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/inflections.rb +0 -10
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/dummy/config/initializers/session_store.rb +0 -8
- data/spec/dummy/config/locales/en.yml +0 -5
- data/spec/dummy/config/routes.rb +0 -3
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/db/migrate/20110613152810_create_dummy_models.rb +0 -39
- data/spec/dummy/db/migrate/20111202022214_create_table_books.rb +0 -14
- data/spec/dummy/db/migrate/20180415260934_create_public_tokens.rb +0 -13
- data/spec/dummy/db/schema.rb +0 -55
- data/spec/dummy/db/seeds/import.rb +0 -5
- data/spec/dummy/db/seeds.rb +0 -5
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/public/404.html +0 -26
- data/spec/dummy/public/422.html +0 -26
- data/spec/dummy/public/500.html +0 -26
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/spec/dummy/script/rails +0 -6
- data/spec/dummy_engine/.gitignore +0 -8
- data/spec/dummy_engine/Gemfile +0 -15
- data/spec/dummy_engine/Rakefile +0 -34
- data/spec/dummy_engine/bin/rails +0 -12
- data/spec/dummy_engine/config/initializers/apartment.rb +0 -51
- data/spec/dummy_engine/dummy_engine.gemspec +0 -24
- data/spec/dummy_engine/lib/dummy_engine/engine.rb +0 -4
- data/spec/dummy_engine/lib/dummy_engine/version.rb +0 -3
- data/spec/dummy_engine/lib/dummy_engine.rb +0 -4
- data/spec/dummy_engine/test/dummy/Rakefile +0 -6
- data/spec/dummy_engine/test/dummy/config/application.rb +0 -22
- data/spec/dummy_engine/test/dummy/config/boot.rb +0 -5
- data/spec/dummy_engine/test/dummy/config/database.yml +0 -25
- data/spec/dummy_engine/test/dummy/config/environment.rb +0 -5
- data/spec/dummy_engine/test/dummy/config/environments/development.rb +0 -37
- data/spec/dummy_engine/test/dummy/config/environments/production.rb +0 -78
- data/spec/dummy_engine/test/dummy/config/environments/test.rb +0 -39
- data/spec/dummy_engine/test/dummy/config/initializers/assets.rb +0 -8
- data/spec/dummy_engine/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy_engine/test/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/spec/dummy_engine/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy_engine/test/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy_engine/test/dummy/config/initializers/mime_types.rb +0 -4
- data/spec/dummy_engine/test/dummy/config/initializers/session_store.rb +0 -3
- data/spec/dummy_engine/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy_engine/test/dummy/config/locales/en.yml +0 -23
- data/spec/dummy_engine/test/dummy/config/routes.rb +0 -56
- data/spec/dummy_engine/test/dummy/config/secrets.yml +0 -22
- data/spec/dummy_engine/test/dummy/config.ru +0 -4
- data/spec/examples/connection_adapter_examples.rb +0 -42
- data/spec/examples/generic_adapter_custom_configuration_example.rb +0 -95
- data/spec/examples/generic_adapter_examples.rb +0 -163
- data/spec/examples/schema_adapter_examples.rb +0 -234
- data/spec/integration/apartment_rake_integration_spec.rb +0 -107
- data/spec/integration/query_caching_spec.rb +0 -81
- data/spec/integration/use_within_an_engine_spec.rb +0 -28
- data/spec/schemas/v1.rb +0 -16
- data/spec/schemas/v2.rb +0 -43
- data/spec/schemas/v3.rb +0 -49
- data/spec/spec_helper.rb +0 -61
- data/spec/support/apartment_helpers.rb +0 -43
- data/spec/support/capybara_sessions.rb +0 -15
- data/spec/support/config.rb +0 -10
- data/spec/support/contexts.rb +0 -52
- data/spec/support/requirements.rb +0 -35
- data/spec/support/setup.rb +0 -46
- data/spec/tasks/apartment_rake_spec.rb +0 -129
- data/spec/tenant_spec.rb +0 -190
- data/spec/unit/config_spec.rb +0 -112
- data/spec/unit/elevators/domain_spec.rb +0 -32
- data/spec/unit/elevators/first_subdomain_spec.rb +0 -24
- data/spec/unit/elevators/generic_spec.rb +0 -54
- data/spec/unit/elevators/host_hash_spec.rb +0 -32
- data/spec/unit/elevators/host_spec.rb +0 -89
- data/spec/unit/elevators/subdomain_spec.rb +0 -76
- data/spec/unit/migrator_spec.rb +0 -77
- data/spec/unit/reloader_spec.rb +0 -24
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ros-apartment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Brunner
|
8
8
|
- Brad Robertson
|
9
|
+
- Rui Baltazar
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date:
|
13
|
+
date: 2024-05-28 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: activerecord
|
@@ -17,64 +18,124 @@ dependencies:
|
|
17
18
|
requirements:
|
18
19
|
- - ">="
|
19
20
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
21
|
+
version: 6.1.0
|
21
22
|
- - "<"
|
22
23
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
24
|
+
version: '7.2'
|
24
25
|
type: :runtime
|
25
26
|
prerelease: false
|
26
27
|
version_requirements: !ruby/object:Gem::Requirement
|
27
28
|
requirements:
|
28
29
|
- - ">="
|
29
30
|
- !ruby/object:Gem::Version
|
30
|
-
version:
|
31
|
+
version: 6.1.0
|
31
32
|
- - "<"
|
32
33
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
34
|
+
version: '7.2'
|
34
35
|
- !ruby/object:Gem::Dependency
|
35
|
-
name:
|
36
|
+
name: parallel
|
36
37
|
requirement: !ruby/object:Gem::Requirement
|
37
38
|
requirements:
|
38
|
-
- - "
|
39
|
+
- - "<"
|
39
40
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
+
version: '2.0'
|
41
42
|
type: :runtime
|
42
43
|
prerelease: false
|
43
44
|
version_requirements: !ruby/object:Gem::Requirement
|
44
45
|
requirements:
|
45
|
-
- - "
|
46
|
+
- - "<"
|
46
47
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
48
|
+
version: '2.0'
|
48
49
|
- !ruby/object:Gem::Dependency
|
49
50
|
name: public_suffix
|
50
51
|
requirement: !ruby/object:Gem::Requirement
|
51
52
|
requirements:
|
52
53
|
- - ">="
|
53
54
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
55
|
+
version: 2.0.5
|
56
|
+
- - "<"
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '6.0'
|
55
59
|
type: :runtime
|
56
60
|
prerelease: false
|
57
61
|
version_requirements: !ruby/object:Gem::Requirement
|
58
62
|
requirements:
|
59
63
|
- - ">="
|
60
64
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
65
|
+
version: 2.0.5
|
66
|
+
- - "<"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '6.0'
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
70
|
+
name: rack
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
72
|
requirements:
|
66
73
|
- - ">="
|
67
74
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
75
|
+
version: 1.3.6
|
76
|
+
- - "<"
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '4.0'
|
69
79
|
type: :runtime
|
70
80
|
prerelease: false
|
71
81
|
version_requirements: !ruby/object:Gem::Requirement
|
72
82
|
requirements:
|
73
83
|
- - ">="
|
74
84
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
85
|
+
version: 1.3.6
|
86
|
+
- - "<"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '4.0'
|
76
89
|
- !ruby/object:Gem::Dependency
|
77
90
|
name: appraisal
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '2.2'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '2.2'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: bundler
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1.3'
|
110
|
+
- - "<"
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '3.0'
|
113
|
+
type: :development
|
114
|
+
prerelease: false
|
115
|
+
version_requirements: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '1.3'
|
120
|
+
- - "<"
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '3.0'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: guard-rspec
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '4.2'
|
130
|
+
type: :development
|
131
|
+
prerelease: false
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - "~>"
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '4.2'
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
name: pry
|
78
139
|
requirement: !ruby/object:Gem::Requirement
|
79
140
|
requirements:
|
80
141
|
- - ">="
|
@@ -93,14 +154,14 @@ dependencies:
|
|
93
154
|
requirements:
|
94
155
|
- - "~>"
|
95
156
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0
|
157
|
+
version: '13.0'
|
97
158
|
type: :development
|
98
159
|
prerelease: false
|
99
160
|
version_requirements: !ruby/object:Gem::Requirement
|
100
161
|
requirements:
|
101
162
|
- - "~>"
|
102
163
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0
|
164
|
+
version: '13.0'
|
104
165
|
- !ruby/object:Gem::Dependency
|
105
166
|
name: rspec
|
106
167
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,126 +176,173 @@ dependencies:
|
|
115
176
|
- - "~>"
|
116
177
|
- !ruby/object:Gem::Version
|
117
178
|
version: '3.4'
|
179
|
+
- !ruby/object:Gem::Dependency
|
180
|
+
name: rspec_junit_formatter
|
181
|
+
requirement: !ruby/object:Gem::Requirement
|
182
|
+
requirements:
|
183
|
+
- - ">="
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: '0'
|
186
|
+
type: :development
|
187
|
+
prerelease: false
|
188
|
+
version_requirements: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0'
|
118
193
|
- !ruby/object:Gem::Dependency
|
119
194
|
name: rspec-rails
|
120
195
|
requirement: !ruby/object:Gem::Requirement
|
121
196
|
requirements:
|
122
197
|
- - "~>"
|
123
198
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
199
|
+
version: '6.1'
|
125
200
|
type: :development
|
126
201
|
prerelease: false
|
127
202
|
version_requirements: !ruby/object:Gem::Requirement
|
128
203
|
requirements:
|
129
204
|
- - "~>"
|
130
205
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
206
|
+
version: '6.1'
|
132
207
|
- !ruby/object:Gem::Dependency
|
133
|
-
name:
|
208
|
+
name: rubocop
|
134
209
|
requirement: !ruby/object:Gem::Requirement
|
135
210
|
requirements:
|
136
211
|
- - "~>"
|
137
212
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
213
|
+
version: '1.63'
|
139
214
|
type: :development
|
140
215
|
prerelease: false
|
141
216
|
version_requirements: !ruby/object:Gem::Requirement
|
142
217
|
requirements:
|
143
218
|
- - "~>"
|
144
219
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
220
|
+
version: '1.63'
|
146
221
|
- !ruby/object:Gem::Dependency
|
147
|
-
name:
|
222
|
+
name: rubocop-performance
|
148
223
|
requirement: !ruby/object:Gem::Requirement
|
149
224
|
requirements:
|
150
|
-
- - "
|
225
|
+
- - "~>"
|
151
226
|
- !ruby/object:Gem::Version
|
152
|
-
version: '1.
|
153
|
-
|
227
|
+
version: '1.21'
|
228
|
+
type: :development
|
229
|
+
prerelease: false
|
230
|
+
version_requirements: !ruby/object:Gem::Requirement
|
231
|
+
requirements:
|
232
|
+
- - "~>"
|
154
233
|
- !ruby/object:Gem::Version
|
155
|
-
version: '
|
234
|
+
version: '1.21'
|
235
|
+
- !ruby/object:Gem::Dependency
|
236
|
+
name: rubocop-rails
|
237
|
+
requirement: !ruby/object:Gem::Requirement
|
238
|
+
requirements:
|
239
|
+
- - "~>"
|
240
|
+
- !ruby/object:Gem::Version
|
241
|
+
version: '2.24'
|
156
242
|
type: :development
|
157
243
|
prerelease: false
|
158
244
|
version_requirements: !ruby/object:Gem::Requirement
|
159
245
|
requirements:
|
160
|
-
- - "
|
246
|
+
- - "~>"
|
161
247
|
- !ruby/object:Gem::Version
|
162
|
-
version: '
|
163
|
-
|
248
|
+
version: '2.24'
|
249
|
+
- !ruby/object:Gem::Dependency
|
250
|
+
name: rubocop-rspec
|
251
|
+
requirement: !ruby/object:Gem::Requirement
|
252
|
+
requirements:
|
253
|
+
- - "~>"
|
164
254
|
- !ruby/object:Gem::Version
|
165
|
-
version: '2.
|
255
|
+
version: '2.29'
|
256
|
+
type: :development
|
257
|
+
prerelease: false
|
258
|
+
version_requirements: !ruby/object:Gem::Requirement
|
259
|
+
requirements:
|
260
|
+
- - "~>"
|
261
|
+
- !ruby/object:Gem::Version
|
262
|
+
version: '2.29'
|
166
263
|
- !ruby/object:Gem::Dependency
|
167
264
|
name: mysql2
|
168
265
|
requirement: !ruby/object:Gem::Requirement
|
169
266
|
requirements:
|
170
|
-
- - "
|
267
|
+
- - "~>"
|
171
268
|
- !ruby/object:Gem::Version
|
172
|
-
version: '0'
|
269
|
+
version: '0.5'
|
173
270
|
type: :development
|
174
271
|
prerelease: false
|
175
272
|
version_requirements: !ruby/object:Gem::Requirement
|
176
273
|
requirements:
|
177
|
-
- - "
|
274
|
+
- - "~>"
|
178
275
|
- !ruby/object:Gem::Version
|
179
|
-
version: '0'
|
276
|
+
version: '0.5'
|
180
277
|
- !ruby/object:Gem::Dependency
|
181
278
|
name: pg
|
182
279
|
requirement: !ruby/object:Gem::Requirement
|
183
280
|
requirements:
|
184
|
-
- - "
|
281
|
+
- - "~>"
|
185
282
|
- !ruby/object:Gem::Version
|
186
|
-
version: '
|
283
|
+
version: '1.5'
|
187
284
|
type: :development
|
188
285
|
prerelease: false
|
189
286
|
version_requirements: !ruby/object:Gem::Requirement
|
190
287
|
requirements:
|
191
|
-
- - "
|
288
|
+
- - "~>"
|
192
289
|
- !ruby/object:Gem::Version
|
193
|
-
version: '
|
290
|
+
version: '1.5'
|
194
291
|
- !ruby/object:Gem::Dependency
|
195
292
|
name: sqlite3
|
196
293
|
requirement: !ruby/object:Gem::Requirement
|
197
294
|
requirements:
|
198
|
-
- - "
|
295
|
+
- - "<"
|
199
296
|
- !ruby/object:Gem::Version
|
200
|
-
version:
|
297
|
+
version: '2.0'
|
201
298
|
type: :development
|
202
299
|
prerelease: false
|
203
300
|
version_requirements: !ruby/object:Gem::Requirement
|
204
301
|
requirements:
|
205
|
-
- - "
|
302
|
+
- - "<"
|
206
303
|
- !ruby/object:Gem::Version
|
207
|
-
version:
|
304
|
+
version: '2.0'
|
305
|
+
- !ruby/object:Gem::Dependency
|
306
|
+
name: trilogy
|
307
|
+
requirement: !ruby/object:Gem::Requirement
|
308
|
+
requirements:
|
309
|
+
- - "<"
|
310
|
+
- !ruby/object:Gem::Version
|
311
|
+
version: '3.0'
|
312
|
+
type: :development
|
313
|
+
prerelease: false
|
314
|
+
version_requirements: !ruby/object:Gem::Requirement
|
315
|
+
requirements:
|
316
|
+
- - "<"
|
317
|
+
- !ruby/object:Gem::Version
|
318
|
+
version: '3.0'
|
208
319
|
description: Apartment allows Rack applications to deal with database multitenancy
|
209
320
|
through ActiveRecord
|
210
321
|
email:
|
211
322
|
- ryan@influitive.com
|
212
323
|
- brad@influitive.com
|
324
|
+
- rui.p.baltazar@gmail.com
|
213
325
|
executables: []
|
214
326
|
extensions: []
|
215
327
|
extra_rdoc_files: []
|
216
328
|
files:
|
217
|
-
- ".github/ISSUE_TEMPLATE.md"
|
218
329
|
- ".gitignore"
|
219
330
|
- ".pryrc"
|
220
331
|
- ".rspec"
|
221
|
-
- ".
|
332
|
+
- ".rubocop.yml"
|
333
|
+
- ".rubocop_todo.yml"
|
334
|
+
- ".ruby-version"
|
222
335
|
- Appraisals
|
336
|
+
- CHANGELOG.md
|
223
337
|
- Gemfile
|
224
338
|
- Guardfile
|
225
|
-
- HISTORY.md
|
226
339
|
- README.md
|
227
340
|
- Rakefile
|
228
|
-
- TODO.md
|
229
|
-
- apartment.gemspec
|
230
|
-
- docker-compose.yml
|
231
|
-
- gemfiles/rails_4_2.gemfile
|
232
|
-
- gemfiles/rails_5_0.gemfile
|
233
|
-
- gemfiles/rails_5_1.gemfile
|
234
|
-
- gemfiles/rails_5_2.gemfile
|
235
|
-
- gemfiles/rails_6_0.gemfile
|
236
|
-
- gemfiles/rails_master.gemfile
|
237
341
|
- lib/apartment.rb
|
342
|
+
- lib/apartment/active_record/connection_handling.rb
|
343
|
+
- lib/apartment/active_record/internal_metadata.rb
|
344
|
+
- lib/apartment/active_record/postgresql_adapter.rb
|
345
|
+
- lib/apartment/active_record/schema_migration.rb
|
238
346
|
- lib/apartment/adapters/abstract_adapter.rb
|
239
347
|
- lib/apartment/adapters/abstract_jdbc_adapter.rb
|
240
348
|
- lib/apartment/adapters/jdbc_mysql_adapter.rb
|
@@ -243,7 +351,9 @@ files:
|
|
243
351
|
- lib/apartment/adapters/postgis_adapter.rb
|
244
352
|
- lib/apartment/adapters/postgresql_adapter.rb
|
245
353
|
- lib/apartment/adapters/sqlite3_adapter.rb
|
354
|
+
- lib/apartment/adapters/trilogy_adapter.rb
|
246
355
|
- lib/apartment/console.rb
|
356
|
+
- lib/apartment/custom_console.rb
|
247
357
|
- lib/apartment/deprecation.rb
|
248
358
|
- lib/apartment/elevators/domain.rb
|
249
359
|
- lib/apartment/elevators/first_subdomain.rb
|
@@ -251,120 +361,24 @@ files:
|
|
251
361
|
- lib/apartment/elevators/host.rb
|
252
362
|
- lib/apartment/elevators/host_hash.rb
|
253
363
|
- lib/apartment/elevators/subdomain.rb
|
364
|
+
- lib/apartment/log_subscriber.rb
|
254
365
|
- lib/apartment/migrator.rb
|
366
|
+
- lib/apartment/model.rb
|
255
367
|
- lib/apartment/railtie.rb
|
256
|
-
- lib/apartment/reloader.rb
|
257
368
|
- lib/apartment/tasks/enhancements.rb
|
369
|
+
- lib/apartment/tasks/task_helper.rb
|
258
370
|
- lib/apartment/tenant.rb
|
259
371
|
- lib/apartment/version.rb
|
260
372
|
- lib/generators/apartment/install/USAGE
|
261
373
|
- lib/generators/apartment/install/install_generator.rb
|
262
374
|
- lib/generators/apartment/install/templates/apartment.rb
|
263
375
|
- lib/tasks/apartment.rake
|
264
|
-
-
|
265
|
-
- spec/adapters/jdbc_postgresql_adapter_spec.rb
|
266
|
-
- spec/adapters/mysql2_adapter_spec.rb
|
267
|
-
- spec/adapters/postgresql_adapter_spec.rb
|
268
|
-
- spec/adapters/sqlite3_adapter_spec.rb
|
269
|
-
- spec/apartment_spec.rb
|
270
|
-
- spec/config/database.yml.sample
|
271
|
-
- spec/dummy/Rakefile
|
272
|
-
- spec/dummy/app/controllers/application_controller.rb
|
273
|
-
- spec/dummy/app/helpers/application_helper.rb
|
274
|
-
- spec/dummy/app/models/company.rb
|
275
|
-
- spec/dummy/app/models/user.rb
|
276
|
-
- spec/dummy/app/views/application/index.html.erb
|
277
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
278
|
-
- spec/dummy/config.ru
|
279
|
-
- spec/dummy/config/application.rb
|
280
|
-
- spec/dummy/config/boot.rb
|
281
|
-
- spec/dummy/config/database.yml.sample
|
282
|
-
- spec/dummy/config/environment.rb
|
283
|
-
- spec/dummy/config/environments/development.rb
|
284
|
-
- spec/dummy/config/environments/production.rb
|
285
|
-
- spec/dummy/config/environments/test.rb
|
286
|
-
- spec/dummy/config/initializers/apartment.rb
|
287
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
288
|
-
- spec/dummy/config/initializers/inflections.rb
|
289
|
-
- spec/dummy/config/initializers/mime_types.rb
|
290
|
-
- spec/dummy/config/initializers/secret_token.rb
|
291
|
-
- spec/dummy/config/initializers/session_store.rb
|
292
|
-
- spec/dummy/config/locales/en.yml
|
293
|
-
- spec/dummy/config/routes.rb
|
294
|
-
- spec/dummy/db/migrate/20110613152810_create_dummy_models.rb
|
295
|
-
- spec/dummy/db/migrate/20111202022214_create_table_books.rb
|
296
|
-
- spec/dummy/db/migrate/20180415260934_create_public_tokens.rb
|
297
|
-
- spec/dummy/db/schema.rb
|
298
|
-
- spec/dummy/db/seeds.rb
|
299
|
-
- spec/dummy/db/seeds/import.rb
|
300
|
-
- spec/dummy/db/test.sqlite3
|
301
|
-
- spec/dummy/public/404.html
|
302
|
-
- spec/dummy/public/422.html
|
303
|
-
- spec/dummy/public/500.html
|
304
|
-
- spec/dummy/public/favicon.ico
|
305
|
-
- spec/dummy/public/stylesheets/.gitkeep
|
306
|
-
- spec/dummy/script/rails
|
307
|
-
- spec/dummy_engine/.gitignore
|
308
|
-
- spec/dummy_engine/Gemfile
|
309
|
-
- spec/dummy_engine/Rakefile
|
310
|
-
- spec/dummy_engine/bin/rails
|
311
|
-
- spec/dummy_engine/config/initializers/apartment.rb
|
312
|
-
- spec/dummy_engine/dummy_engine.gemspec
|
313
|
-
- spec/dummy_engine/lib/dummy_engine.rb
|
314
|
-
- spec/dummy_engine/lib/dummy_engine/engine.rb
|
315
|
-
- spec/dummy_engine/lib/dummy_engine/version.rb
|
316
|
-
- spec/dummy_engine/test/dummy/Rakefile
|
317
|
-
- spec/dummy_engine/test/dummy/config.ru
|
318
|
-
- spec/dummy_engine/test/dummy/config/application.rb
|
319
|
-
- spec/dummy_engine/test/dummy/config/boot.rb
|
320
|
-
- spec/dummy_engine/test/dummy/config/database.yml
|
321
|
-
- spec/dummy_engine/test/dummy/config/environment.rb
|
322
|
-
- spec/dummy_engine/test/dummy/config/environments/development.rb
|
323
|
-
- spec/dummy_engine/test/dummy/config/environments/production.rb
|
324
|
-
- spec/dummy_engine/test/dummy/config/environments/test.rb
|
325
|
-
- spec/dummy_engine/test/dummy/config/initializers/assets.rb
|
326
|
-
- spec/dummy_engine/test/dummy/config/initializers/backtrace_silencers.rb
|
327
|
-
- spec/dummy_engine/test/dummy/config/initializers/cookies_serializer.rb
|
328
|
-
- spec/dummy_engine/test/dummy/config/initializers/filter_parameter_logging.rb
|
329
|
-
- spec/dummy_engine/test/dummy/config/initializers/inflections.rb
|
330
|
-
- spec/dummy_engine/test/dummy/config/initializers/mime_types.rb
|
331
|
-
- spec/dummy_engine/test/dummy/config/initializers/session_store.rb
|
332
|
-
- spec/dummy_engine/test/dummy/config/initializers/wrap_parameters.rb
|
333
|
-
- spec/dummy_engine/test/dummy/config/locales/en.yml
|
334
|
-
- spec/dummy_engine/test/dummy/config/routes.rb
|
335
|
-
- spec/dummy_engine/test/dummy/config/secrets.yml
|
336
|
-
- spec/examples/connection_adapter_examples.rb
|
337
|
-
- spec/examples/generic_adapter_custom_configuration_example.rb
|
338
|
-
- spec/examples/generic_adapter_examples.rb
|
339
|
-
- spec/examples/schema_adapter_examples.rb
|
340
|
-
- spec/integration/apartment_rake_integration_spec.rb
|
341
|
-
- spec/integration/query_caching_spec.rb
|
342
|
-
- spec/integration/use_within_an_engine_spec.rb
|
343
|
-
- spec/schemas/v1.rb
|
344
|
-
- spec/schemas/v2.rb
|
345
|
-
- spec/schemas/v3.rb
|
346
|
-
- spec/spec_helper.rb
|
347
|
-
- spec/support/apartment_helpers.rb
|
348
|
-
- spec/support/capybara_sessions.rb
|
349
|
-
- spec/support/config.rb
|
350
|
-
- spec/support/contexts.rb
|
351
|
-
- spec/support/requirements.rb
|
352
|
-
- spec/support/setup.rb
|
353
|
-
- spec/tasks/apartment_rake_spec.rb
|
354
|
-
- spec/tenant_spec.rb
|
355
|
-
- spec/unit/config_spec.rb
|
356
|
-
- spec/unit/elevators/domain_spec.rb
|
357
|
-
- spec/unit/elevators/first_subdomain_spec.rb
|
358
|
-
- spec/unit/elevators/generic_spec.rb
|
359
|
-
- spec/unit/elevators/host_hash_spec.rb
|
360
|
-
- spec/unit/elevators/host_spec.rb
|
361
|
-
- spec/unit/elevators/subdomain_spec.rb
|
362
|
-
- spec/unit/migrator_spec.rb
|
363
|
-
- spec/unit/reloader_spec.rb
|
376
|
+
- ros-apartment.gemspec
|
364
377
|
homepage: https://github.com/rails-on-services/apartment
|
365
378
|
licenses:
|
366
379
|
- MIT
|
367
|
-
metadata:
|
380
|
+
metadata:
|
381
|
+
github_repo: ssh://github.com/rails-on-services/apartment
|
368
382
|
post_install_message:
|
369
383
|
rdoc_options: []
|
370
384
|
require_paths:
|
@@ -373,115 +387,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
373
387
|
requirements:
|
374
388
|
- - ">="
|
375
389
|
- !ruby/object:Gem::Version
|
376
|
-
version: '0'
|
390
|
+
version: '3.0'
|
391
|
+
- - "<"
|
392
|
+
- !ruby/object:Gem::Version
|
393
|
+
version: '3.4'
|
377
394
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
378
395
|
requirements:
|
379
|
-
- - "
|
396
|
+
- - ">="
|
380
397
|
- !ruby/object:Gem::Version
|
381
|
-
version:
|
398
|
+
version: '0'
|
382
399
|
requirements: []
|
383
|
-
rubygems_version: 3.
|
400
|
+
rubygems_version: 3.5.10
|
384
401
|
signing_key:
|
385
402
|
specification_version: 4
|
386
|
-
summary: A Ruby gem for managing database multitenancy
|
387
|
-
test_files:
|
388
|
-
- spec/adapters/jdbc_mysql_adapter_spec.rb
|
389
|
-
- spec/adapters/jdbc_postgresql_adapter_spec.rb
|
390
|
-
- spec/adapters/mysql2_adapter_spec.rb
|
391
|
-
- spec/adapters/postgresql_adapter_spec.rb
|
392
|
-
- spec/adapters/sqlite3_adapter_spec.rb
|
393
|
-
- spec/apartment_spec.rb
|
394
|
-
- spec/config/database.yml.sample
|
395
|
-
- spec/dummy/Rakefile
|
396
|
-
- spec/dummy/app/controllers/application_controller.rb
|
397
|
-
- spec/dummy/app/helpers/application_helper.rb
|
398
|
-
- spec/dummy/app/models/company.rb
|
399
|
-
- spec/dummy/app/models/user.rb
|
400
|
-
- spec/dummy/app/views/application/index.html.erb
|
401
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
402
|
-
- spec/dummy/config.ru
|
403
|
-
- spec/dummy/config/application.rb
|
404
|
-
- spec/dummy/config/boot.rb
|
405
|
-
- spec/dummy/config/database.yml.sample
|
406
|
-
- spec/dummy/config/environment.rb
|
407
|
-
- spec/dummy/config/environments/development.rb
|
408
|
-
- spec/dummy/config/environments/production.rb
|
409
|
-
- spec/dummy/config/environments/test.rb
|
410
|
-
- spec/dummy/config/initializers/apartment.rb
|
411
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
412
|
-
- spec/dummy/config/initializers/inflections.rb
|
413
|
-
- spec/dummy/config/initializers/mime_types.rb
|
414
|
-
- spec/dummy/config/initializers/secret_token.rb
|
415
|
-
- spec/dummy/config/initializers/session_store.rb
|
416
|
-
- spec/dummy/config/locales/en.yml
|
417
|
-
- spec/dummy/config/routes.rb
|
418
|
-
- spec/dummy/db/migrate/20110613152810_create_dummy_models.rb
|
419
|
-
- spec/dummy/db/migrate/20111202022214_create_table_books.rb
|
420
|
-
- spec/dummy/db/migrate/20180415260934_create_public_tokens.rb
|
421
|
-
- spec/dummy/db/schema.rb
|
422
|
-
- spec/dummy/db/seeds.rb
|
423
|
-
- spec/dummy/db/seeds/import.rb
|
424
|
-
- spec/dummy/db/test.sqlite3
|
425
|
-
- spec/dummy/public/404.html
|
426
|
-
- spec/dummy/public/422.html
|
427
|
-
- spec/dummy/public/500.html
|
428
|
-
- spec/dummy/public/favicon.ico
|
429
|
-
- spec/dummy/public/stylesheets/.gitkeep
|
430
|
-
- spec/dummy/script/rails
|
431
|
-
- spec/dummy_engine/.gitignore
|
432
|
-
- spec/dummy_engine/Gemfile
|
433
|
-
- spec/dummy_engine/Rakefile
|
434
|
-
- spec/dummy_engine/bin/rails
|
435
|
-
- spec/dummy_engine/config/initializers/apartment.rb
|
436
|
-
- spec/dummy_engine/dummy_engine.gemspec
|
437
|
-
- spec/dummy_engine/lib/dummy_engine.rb
|
438
|
-
- spec/dummy_engine/lib/dummy_engine/engine.rb
|
439
|
-
- spec/dummy_engine/lib/dummy_engine/version.rb
|
440
|
-
- spec/dummy_engine/test/dummy/Rakefile
|
441
|
-
- spec/dummy_engine/test/dummy/config.ru
|
442
|
-
- spec/dummy_engine/test/dummy/config/application.rb
|
443
|
-
- spec/dummy_engine/test/dummy/config/boot.rb
|
444
|
-
- spec/dummy_engine/test/dummy/config/database.yml
|
445
|
-
- spec/dummy_engine/test/dummy/config/environment.rb
|
446
|
-
- spec/dummy_engine/test/dummy/config/environments/development.rb
|
447
|
-
- spec/dummy_engine/test/dummy/config/environments/production.rb
|
448
|
-
- spec/dummy_engine/test/dummy/config/environments/test.rb
|
449
|
-
- spec/dummy_engine/test/dummy/config/initializers/assets.rb
|
450
|
-
- spec/dummy_engine/test/dummy/config/initializers/backtrace_silencers.rb
|
451
|
-
- spec/dummy_engine/test/dummy/config/initializers/cookies_serializer.rb
|
452
|
-
- spec/dummy_engine/test/dummy/config/initializers/filter_parameter_logging.rb
|
453
|
-
- spec/dummy_engine/test/dummy/config/initializers/inflections.rb
|
454
|
-
- spec/dummy_engine/test/dummy/config/initializers/mime_types.rb
|
455
|
-
- spec/dummy_engine/test/dummy/config/initializers/session_store.rb
|
456
|
-
- spec/dummy_engine/test/dummy/config/initializers/wrap_parameters.rb
|
457
|
-
- spec/dummy_engine/test/dummy/config/locales/en.yml
|
458
|
-
- spec/dummy_engine/test/dummy/config/routes.rb
|
459
|
-
- spec/dummy_engine/test/dummy/config/secrets.yml
|
460
|
-
- spec/examples/connection_adapter_examples.rb
|
461
|
-
- spec/examples/generic_adapter_custom_configuration_example.rb
|
462
|
-
- spec/examples/generic_adapter_examples.rb
|
463
|
-
- spec/examples/schema_adapter_examples.rb
|
464
|
-
- spec/integration/apartment_rake_integration_spec.rb
|
465
|
-
- spec/integration/query_caching_spec.rb
|
466
|
-
- spec/integration/use_within_an_engine_spec.rb
|
467
|
-
- spec/schemas/v1.rb
|
468
|
-
- spec/schemas/v2.rb
|
469
|
-
- spec/schemas/v3.rb
|
470
|
-
- spec/spec_helper.rb
|
471
|
-
- spec/support/apartment_helpers.rb
|
472
|
-
- spec/support/capybara_sessions.rb
|
473
|
-
- spec/support/config.rb
|
474
|
-
- spec/support/contexts.rb
|
475
|
-
- spec/support/requirements.rb
|
476
|
-
- spec/support/setup.rb
|
477
|
-
- spec/tasks/apartment_rake_spec.rb
|
478
|
-
- spec/tenant_spec.rb
|
479
|
-
- spec/unit/config_spec.rb
|
480
|
-
- spec/unit/elevators/domain_spec.rb
|
481
|
-
- spec/unit/elevators/first_subdomain_spec.rb
|
482
|
-
- spec/unit/elevators/generic_spec.rb
|
483
|
-
- spec/unit/elevators/host_hash_spec.rb
|
484
|
-
- spec/unit/elevators/host_spec.rb
|
485
|
-
- spec/unit/elevators/subdomain_spec.rb
|
486
|
-
- spec/unit/migrator_spec.rb
|
487
|
-
- spec/unit/reloader_spec.rb
|
403
|
+
summary: A Ruby gem for managing database multitenancy. Apartment Gem drop in replacement
|
404
|
+
test_files: []
|
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
## Steps to reproduce
|
2
|
-
|
3
|
-
## Expected behavior
|
4
|
-
|
5
|
-
## Actual behavior
|
6
|
-
|
7
|
-
## System configuration
|
8
|
-
|
9
|
-
<!-- Please let us know as far as you can. -->
|
10
|
-
|
11
|
-
* Database: (Tell us what database and its version you use.)
|
12
|
-
|
13
|
-
* Apartment version:
|
14
|
-
|
15
|
-
* Apartment config (in `config/initializers/apartment.rb` or so):
|
16
|
-
|
17
|
-
* `use_schemas`: (`true` or `false`)
|
18
|
-
|
19
|
-
* Rails (or ActiveRecord) version:
|
20
|
-
|
21
|
-
* Ruby version:
|