puzzle-apartment 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +71 -0
  3. data/.github/ISSUE_TEMPLATE.md +21 -0
  4. data/.github/workflows/changelog.yml +63 -0
  5. data/.github/workflows/reviewdog.yml +22 -0
  6. data/.gitignore +15 -0
  7. data/.pryrc +5 -0
  8. data/.rspec +4 -0
  9. data/.rubocop.yml +33 -0
  10. data/.rubocop_todo.yml +418 -0
  11. data/.ruby-version +1 -0
  12. data/.story_branch.yml +5 -0
  13. data/Appraisals +49 -0
  14. data/CHANGELOG.md +963 -0
  15. data/Gemfile +17 -0
  16. data/Guardfile +11 -0
  17. data/HISTORY.md +496 -0
  18. data/README.md +652 -0
  19. data/Rakefile +157 -0
  20. data/TODO.md +50 -0
  21. data/docker-compose.yml +33 -0
  22. data/gemfiles/rails_6_1.gemfile +17 -0
  23. data/gemfiles/rails_7_0.gemfile +17 -0
  24. data/gemfiles/rails_7_1.gemfile +17 -0
  25. data/gemfiles/rails_master.gemfile +17 -0
  26. data/lib/apartment/active_record/connection_handling.rb +34 -0
  27. data/lib/apartment/active_record/internal_metadata.rb +9 -0
  28. data/lib/apartment/active_record/postgresql_adapter.rb +39 -0
  29. data/lib/apartment/active_record/schema_migration.rb +13 -0
  30. data/lib/apartment/adapters/abstract_adapter.rb +275 -0
  31. data/lib/apartment/adapters/abstract_jdbc_adapter.rb +20 -0
  32. data/lib/apartment/adapters/jdbc_mysql_adapter.rb +19 -0
  33. data/lib/apartment/adapters/jdbc_postgresql_adapter.rb +62 -0
  34. data/lib/apartment/adapters/mysql2_adapter.rb +77 -0
  35. data/lib/apartment/adapters/postgis_adapter.rb +13 -0
  36. data/lib/apartment/adapters/postgresql_adapter.rb +284 -0
  37. data/lib/apartment/adapters/sqlite3_adapter.rb +66 -0
  38. data/lib/apartment/console.rb +24 -0
  39. data/lib/apartment/custom_console.rb +42 -0
  40. data/lib/apartment/deprecation.rb +11 -0
  41. data/lib/apartment/elevators/domain.rb +23 -0
  42. data/lib/apartment/elevators/first_subdomain.rb +18 -0
  43. data/lib/apartment/elevators/generic.rb +33 -0
  44. data/lib/apartment/elevators/host.rb +35 -0
  45. data/lib/apartment/elevators/host_hash.rb +26 -0
  46. data/lib/apartment/elevators/subdomain.rb +66 -0
  47. data/lib/apartment/log_subscriber.rb +45 -0
  48. data/lib/apartment/migrator.rb +52 -0
  49. data/lib/apartment/model.rb +29 -0
  50. data/lib/apartment/railtie.rb +68 -0
  51. data/lib/apartment/tasks/enhancements.rb +55 -0
  52. data/lib/apartment/tasks/task_helper.rb +52 -0
  53. data/lib/apartment/tenant.rb +63 -0
  54. data/lib/apartment/version.rb +5 -0
  55. data/lib/apartment.rb +159 -0
  56. data/lib/generators/apartment/install/USAGE +5 -0
  57. data/lib/generators/apartment/install/install_generator.rb +11 -0
  58. data/lib/generators/apartment/install/templates/apartment.rb +116 -0
  59. data/lib/tasks/apartment.rake +106 -0
  60. data/puzzle-apartment.gemspec +59 -0
  61. metadata +385 -0
data/Appraisals ADDED
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise 'rails-6-1' do
4
+ gem 'rails', '~> 6.1.0'
5
+ platforms :ruby do
6
+ gem 'sqlite3', '~> 1.4'
7
+ end
8
+ platforms :jruby do
9
+ gem 'activerecord-jdbc-adapter', '~> 61.0'
10
+ gem 'activerecord-jdbcpostgresql-adapter', '~> 61.0'
11
+ gem 'activerecord-jdbcmysql-adapter', '~> 61.0'
12
+ end
13
+ end
14
+
15
+ appraise 'rails-7-0' do
16
+ gem 'rails', '~> 7.0.0'
17
+ platforms :ruby do
18
+ gem 'sqlite3', '~> 1.4'
19
+ end
20
+ platforms :jruby do
21
+ gem 'activerecord-jdbc-adapter', '~> 61.0'
22
+ gem 'activerecord-jdbcpostgresql-adapter', '~> 61.0'
23
+ gem 'activerecord-jdbcmysql-adapter', '~> 61.0'
24
+ end
25
+ end
26
+
27
+ appraise 'rails-7-1' do
28
+ gem 'rails', '~> 7.1.0'
29
+ platforms :ruby do
30
+ gem 'sqlite3', '~> 1.6'
31
+ end
32
+ platforms :jruby do
33
+ gem 'activerecord-jdbc-adapter', '~> 61.0'
34
+ gem 'activerecord-jdbcpostgresql-adapter', '~> 61.0'
35
+ gem 'activerecord-jdbcmysql-adapter', '~> 61.0'
36
+ end
37
+ end
38
+
39
+ appraise 'rails-master' do
40
+ gem 'rails', git: 'https://github.com/rails/rails.git'
41
+ platforms :ruby do
42
+ gem 'sqlite3', '~> 1.4'
43
+ end
44
+ platforms :jruby do
45
+ gem 'activerecord-jdbc-adapter', '~> 61.0'
46
+ gem 'activerecord-jdbcpostgresql-adapter', '~> 61.0'
47
+ gem 'activerecord-jdbcmysql-adapter', '~> 61.0'
48
+ end
49
+ end