activerecord-multi-tenant 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -0
  3. data/.travis.yml +6 -14
  4. data/Appraisals +24 -24
  5. data/CHANGELOG.md +22 -0
  6. data/Gemfile.lock +79 -63
  7. data/README.md +1 -1
  8. data/activerecord-multi-tenant.gemspec +1 -1
  9. data/gemfiles/.bundle/config +2 -0
  10. data/gemfiles/active_record_5.2.gemfile +10 -2
  11. data/gemfiles/active_record_5.2.gemfile.lock +102 -96
  12. data/gemfiles/{active_record_5.1.gemfile → active_record_6.0.gemfile} +2 -2
  13. data/gemfiles/active_record_6.0.gemfile.lock +198 -0
  14. data/gemfiles/rails_5.2.gemfile +10 -2
  15. data/gemfiles/rails_5.2.gemfile.lock +109 -103
  16. data/gemfiles/{rails_5.0.gemfile → rails_6.0.gemfile} +2 -2
  17. data/gemfiles/rails_6.0.gemfile.lock +198 -0
  18. data/lib/activerecord-multi-tenant.rb +1 -0
  19. data/lib/activerecord-multi-tenant/controller_extensions.rb +2 -6
  20. data/lib/activerecord-multi-tenant/copy_from_client.rb +2 -2
  21. data/lib/activerecord-multi-tenant/migrations.rb +2 -2
  22. data/lib/activerecord-multi-tenant/model_extensions.rb +8 -15
  23. data/lib/activerecord-multi-tenant/multi_tenant.rb +9 -0
  24. data/lib/activerecord-multi-tenant/persistence_extension.rb +13 -0
  25. data/lib/activerecord-multi-tenant/query_rewriter.rb +59 -105
  26. data/lib/activerecord-multi-tenant/sidekiq.rb +2 -1
  27. data/lib/activerecord-multi-tenant/version.rb +1 -1
  28. data/spec/activerecord-multi-tenant/controller_extensions_spec.rb +19 -24
  29. data/spec/activerecord-multi-tenant/model_extensions_spec.rb +54 -104
  30. data/spec/activerecord-multi-tenant/query_rewriter_spec.rb +40 -0
  31. data/spec/activerecord-multi-tenant/record_modifications_spec.rb +60 -3
  32. data/spec/activerecord-multi-tenant/schema_dumper_tester.rb +0 -0
  33. data/spec/activerecord-multi-tenant/sidekiq_spec.rb +4 -4
  34. data/spec/schema.rb +1 -4
  35. data/spec/spec_helper.rb +1 -6
  36. metadata +15 -20
  37. data/gemfiles/active_record_5.1.gemfile.lock +0 -173
  38. data/gemfiles/rails_4.0.gemfile +0 -8
  39. data/gemfiles/rails_4.0.gemfile.lock +0 -141
  40. data/gemfiles/rails_4.1.gemfile +0 -8
  41. data/gemfiles/rails_4.1.gemfile.lock +0 -146
  42. data/gemfiles/rails_4.2.gemfile +0 -8
  43. data/gemfiles/rails_4.2.gemfile.lock +0 -169
  44. data/gemfiles/rails_5.0.gemfile.lock +0 -175
  45. data/gemfiles/rails_5.1.gemfile +0 -8
  46. data/gemfiles/rails_5.1.gemfile.lock +0 -175
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "appraisal"
6
- gem "rails", "5.1.0"
7
-
8
- gemspec :path => "../"
@@ -1,175 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- activerecord-multi-tenant (1.0.0)
5
- rails (>= 4.0)
6
- request_store (>= 1.0.5)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actioncable (5.1.0)
12
- actionpack (= 5.1.0)
13
- nio4r (~> 2.0)
14
- websocket-driver (~> 0.6.1)
15
- actionmailer (5.1.0)
16
- actionpack (= 5.1.0)
17
- actionview (= 5.1.0)
18
- activejob (= 5.1.0)
19
- mail (~> 2.5, >= 2.5.4)
20
- rails-dom-testing (~> 2.0)
21
- actionpack (5.1.0)
22
- actionview (= 5.1.0)
23
- activesupport (= 5.1.0)
24
- rack (~> 2.0)
25
- rack-test (~> 0.6.3)
26
- rails-dom-testing (~> 2.0)
27
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.1.0)
29
- activesupport (= 5.1.0)
30
- builder (~> 3.1)
31
- erubi (~> 1.4)
32
- rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.1.0)
35
- activesupport (= 5.1.0)
36
- globalid (>= 0.3.6)
37
- activemodel (5.1.0)
38
- activesupport (= 5.1.0)
39
- activerecord (5.1.0)
40
- activemodel (= 5.1.0)
41
- activesupport (= 5.1.0)
42
- arel (~> 8.0)
43
- activesupport (5.1.0)
44
- concurrent-ruby (~> 1.0, >= 1.0.2)
45
- i18n (~> 0.7)
46
- minitest (~> 5.1)
47
- tzinfo (~> 1.1)
48
- appraisal (2.2.0)
49
- bundler
50
- rake
51
- thor (>= 0.14.0)
52
- arel (8.0.0)
53
- builder (3.2.3)
54
- byebug (9.0.6)
55
- coderay (1.1.1)
56
- concurrent-ruby (1.0.5)
57
- connection_pool (2.2.1)
58
- diff-lcs (1.3)
59
- erubi (1.6.0)
60
- globalid (0.4.0)
61
- activesupport (>= 4.2.0)
62
- i18n (0.8.1)
63
- loofah (2.0.3)
64
- nokogiri (>= 1.5.9)
65
- mail (2.6.5)
66
- mime-types (>= 1.16, < 4)
67
- method_source (0.8.2)
68
- mime-types (3.1)
69
- mime-types-data (~> 3.2015)
70
- mime-types-data (3.2016.0521)
71
- mini_portile2 (2.1.0)
72
- minitest (5.10.1)
73
- nio4r (2.0.0)
74
- nokogiri (1.7.1)
75
- mini_portile2 (~> 2.1.0)
76
- pg (0.20.0)
77
- pry (0.10.4)
78
- coderay (~> 1.1.0)
79
- method_source (~> 0.8.1)
80
- slop (~> 3.4)
81
- pry-byebug (3.4.2)
82
- byebug (~> 9.0)
83
- pry (~> 0.10)
84
- rack (2.0.1)
85
- rack-protection (1.5.3)
86
- rack
87
- rack-test (0.6.3)
88
- rack (>= 1.0)
89
- rails (5.1.0)
90
- actioncable (= 5.1.0)
91
- actionmailer (= 5.1.0)
92
- actionpack (= 5.1.0)
93
- actionview (= 5.1.0)
94
- activejob (= 5.1.0)
95
- activemodel (= 5.1.0)
96
- activerecord (= 5.1.0)
97
- activesupport (= 5.1.0)
98
- bundler (>= 1.3.0, < 2.0)
99
- railties (= 5.1.0)
100
- sprockets-rails (>= 2.0.0)
101
- rails-dom-testing (2.0.2)
102
- activesupport (>= 4.2.0, < 6.0)
103
- nokogiri (~> 1.6)
104
- rails-html-sanitizer (1.0.3)
105
- loofah (~> 2.0)
106
- railties (5.1.0)
107
- actionpack (= 5.1.0)
108
- activesupport (= 5.1.0)
109
- method_source
110
- rake (>= 0.8.7)
111
- thor (>= 0.18.1, < 2.0)
112
- rake (12.0.0)
113
- redis (3.3.3)
114
- request_store (1.4.1)
115
- rack (>= 1.4)
116
- rspec (3.6.0)
117
- rspec-core (~> 3.6.0)
118
- rspec-expectations (~> 3.6.0)
119
- rspec-mocks (~> 3.6.0)
120
- rspec-core (3.6.0)
121
- rspec-support (~> 3.6.0)
122
- rspec-expectations (3.6.0)
123
- diff-lcs (>= 1.2.0, < 2.0)
124
- rspec-support (~> 3.6.0)
125
- rspec-mocks (3.6.0)
126
- diff-lcs (>= 1.2.0, < 2.0)
127
- rspec-support (~> 3.6.0)
128
- rspec-rails (3.6.0)
129
- actionpack (>= 3.0)
130
- activesupport (>= 3.0)
131
- railties (>= 3.0)
132
- rspec-core (~> 3.6.0)
133
- rspec-expectations (~> 3.6.0)
134
- rspec-mocks (~> 3.6.0)
135
- rspec-support (~> 3.6.0)
136
- rspec-support (3.6.0)
137
- sidekiq (4.2.10)
138
- concurrent-ruby (~> 1.0)
139
- connection_pool (~> 2.2, >= 2.2.0)
140
- rack-protection (>= 1.5.0)
141
- redis (~> 3.2, >= 3.2.1)
142
- slop (3.6.0)
143
- sprockets (3.7.1)
144
- concurrent-ruby (~> 1.0)
145
- rack (> 1, < 3)
146
- sprockets-rails (3.2.0)
147
- actionpack (>= 4.0)
148
- activesupport (>= 4.0)
149
- sprockets (>= 3.0.0)
150
- thor (0.19.4)
151
- thread_safe (0.3.6)
152
- tzinfo (1.2.3)
153
- thread_safe (~> 0.1)
154
- websocket-driver (0.6.5)
155
- websocket-extensions (>= 0.1.0)
156
- websocket-extensions (0.1.2)
157
-
158
- PLATFORMS
159
- ruby
160
-
161
- DEPENDENCIES
162
- activerecord-multi-tenant!
163
- appraisal
164
- pg
165
- pry
166
- pry-byebug
167
- rails (= 5.1.0)
168
- rake
169
- rspec (>= 3.0)
170
- rspec-rails
171
- sidekiq
172
- thor
173
-
174
- BUNDLED WITH
175
- 1.17.2