activerecord-multi-tenant 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +21 -4
- data/Appraisals +9 -8
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/activerecord-multi-tenant.gemspec +1 -1
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/active_record_5.1.gemfile +1 -1
- data/gemfiles/active_record_5.1.gemfile.lock +2 -2
- data/gemfiles/active_record_5.2.gemfile +1 -1
- data/gemfiles/active_record_5.2.gemfile.lock +2 -2
- data/gemfiles/{rails_4.1.gemfile → active_record_6.0.gemfile} +2 -2
- data/gemfiles/active_record_6.0.gemfile.lock +198 -0
- data/gemfiles/rails_4.2.gemfile +1 -1
- data/gemfiles/rails_4.2.gemfile.lock +2 -2
- data/gemfiles/rails_5.0.gemfile +1 -1
- data/gemfiles/rails_5.0.gemfile.lock +2 -2
- data/gemfiles/rails_5.1.gemfile +1 -1
- data/gemfiles/rails_5.1.gemfile.lock +2 -2
- data/gemfiles/rails_5.2.gemfile +1 -1
- data/gemfiles/rails_5.2.gemfile.lock +2 -2
- data/gemfiles/{rails_4.0.gemfile → rails_6.0.gemfile} +2 -2
- data/gemfiles/rails_6.0.gemfile.lock +198 -0
- data/lib/activerecord-multi-tenant/model_extensions.rb +6 -7
- data/lib/activerecord-multi-tenant/multi_tenant.rb +8 -0
- data/lib/activerecord-multi-tenant/query_rewriter.rb +43 -38
- data/lib/activerecord-multi-tenant/version.rb +1 -1
- data/spec/activerecord-multi-tenant/model_extensions_spec.rb +64 -84
- metadata +9 -8
- data/gemfiles/rails_4.0.gemfile.lock +0 -141
- data/gemfiles/rails_4.1.gemfile.lock +0 -146
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-multi-tenant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Citus Data
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: request_store
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '4.
|
33
|
+
version: '4.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '4.
|
40
|
+
version: '4.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -167,14 +167,13 @@ files:
|
|
167
167
|
- Rakefile
|
168
168
|
- activerecord-multi-tenant.gemspec
|
169
169
|
- docker-compose.yml
|
170
|
+
- gemfiles/.bundle/config
|
170
171
|
- gemfiles/active_record_5.1.gemfile
|
171
172
|
- gemfiles/active_record_5.1.gemfile.lock
|
172
173
|
- gemfiles/active_record_5.2.gemfile
|
173
174
|
- gemfiles/active_record_5.2.gemfile.lock
|
174
|
-
- gemfiles/
|
175
|
-
- gemfiles/
|
176
|
-
- gemfiles/rails_4.1.gemfile
|
177
|
-
- gemfiles/rails_4.1.gemfile.lock
|
175
|
+
- gemfiles/active_record_6.0.gemfile
|
176
|
+
- gemfiles/active_record_6.0.gemfile.lock
|
178
177
|
- gemfiles/rails_4.2.gemfile
|
179
178
|
- gemfiles/rails_4.2.gemfile.lock
|
180
179
|
- gemfiles/rails_5.0.gemfile
|
@@ -183,6 +182,8 @@ files:
|
|
183
182
|
- gemfiles/rails_5.1.gemfile.lock
|
184
183
|
- gemfiles/rails_5.2.gemfile
|
185
184
|
- gemfiles/rails_5.2.gemfile.lock
|
185
|
+
- gemfiles/rails_6.0.gemfile
|
186
|
+
- gemfiles/rails_6.0.gemfile.lock
|
186
187
|
- lib/activerecord-multi-tenant.rb
|
187
188
|
- lib/activerecord-multi-tenant/controller_extensions.rb
|
188
189
|
- lib/activerecord-multi-tenant/copy_from_client.rb
|
@@ -1,141 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
activerecord-multi-tenant (1.0.1)
|
5
|
-
rails (>= 4.0)
|
6
|
-
request_store (>= 1.0.5)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
actionmailer (4.0.13)
|
12
|
-
actionpack (= 4.0.13)
|
13
|
-
mail (~> 2.5, >= 2.5.4)
|
14
|
-
actionpack (4.0.13)
|
15
|
-
activesupport (= 4.0.13)
|
16
|
-
builder (~> 3.1.0)
|
17
|
-
erubis (~> 2.7.0)
|
18
|
-
rack (~> 1.5.2)
|
19
|
-
rack-test (~> 0.6.2)
|
20
|
-
activemodel (4.0.13)
|
21
|
-
activesupport (= 4.0.13)
|
22
|
-
builder (~> 3.1.0)
|
23
|
-
activerecord (4.0.13)
|
24
|
-
activemodel (= 4.0.13)
|
25
|
-
activerecord-deprecated_finders (~> 1.0.2)
|
26
|
-
activesupport (= 4.0.13)
|
27
|
-
arel (~> 4.0.0)
|
28
|
-
activerecord-deprecated_finders (1.0.4)
|
29
|
-
activesupport (4.0.13)
|
30
|
-
i18n (~> 0.6, >= 0.6.9)
|
31
|
-
minitest (~> 4.2)
|
32
|
-
multi_json (~> 1.3)
|
33
|
-
thread_safe (~> 0.1)
|
34
|
-
tzinfo (~> 0.3.37)
|
35
|
-
appraisal (2.1.0)
|
36
|
-
bundler
|
37
|
-
rake
|
38
|
-
thor (>= 0.14.0)
|
39
|
-
arel (4.0.2)
|
40
|
-
builder (3.1.4)
|
41
|
-
byebug (9.0.6)
|
42
|
-
coderay (1.1.1)
|
43
|
-
concurrent-ruby (1.0.5)
|
44
|
-
connection_pool (2.2.1)
|
45
|
-
diff-lcs (1.3)
|
46
|
-
erubis (2.7.0)
|
47
|
-
i18n (0.8.1)
|
48
|
-
mail (2.6.4)
|
49
|
-
mime-types (>= 1.16, < 4)
|
50
|
-
method_source (0.8.2)
|
51
|
-
mime-types (3.1)
|
52
|
-
mime-types-data (~> 3.2015)
|
53
|
-
mime-types-data (3.2016.0521)
|
54
|
-
minitest (4.7.5)
|
55
|
-
multi_json (1.12.1)
|
56
|
-
pg (0.20.0)
|
57
|
-
pry (0.10.4)
|
58
|
-
coderay (~> 1.1.0)
|
59
|
-
method_source (~> 0.8.1)
|
60
|
-
slop (~> 3.4)
|
61
|
-
pry-byebug (3.4.2)
|
62
|
-
byebug (~> 9.0)
|
63
|
-
pry (~> 0.10)
|
64
|
-
rack (1.5.5)
|
65
|
-
rack-protection (2.0.0)
|
66
|
-
rack
|
67
|
-
rack-test (0.6.3)
|
68
|
-
rack (>= 1.0)
|
69
|
-
rails (4.0.13)
|
70
|
-
actionmailer (= 4.0.13)
|
71
|
-
actionpack (= 4.0.13)
|
72
|
-
activerecord (= 4.0.13)
|
73
|
-
activesupport (= 4.0.13)
|
74
|
-
bundler (>= 1.3.0, < 2.0)
|
75
|
-
railties (= 4.0.13)
|
76
|
-
sprockets-rails (~> 2.0)
|
77
|
-
railties (4.0.13)
|
78
|
-
actionpack (= 4.0.13)
|
79
|
-
activesupport (= 4.0.13)
|
80
|
-
rake (>= 0.8.7)
|
81
|
-
thor (>= 0.18.1, < 2.0)
|
82
|
-
rake (12.0.0)
|
83
|
-
redis (3.3.3)
|
84
|
-
request_store (1.4.1)
|
85
|
-
rack (>= 1.4)
|
86
|
-
rspec (3.5.0)
|
87
|
-
rspec-core (~> 3.5.0)
|
88
|
-
rspec-expectations (~> 3.5.0)
|
89
|
-
rspec-mocks (~> 3.5.0)
|
90
|
-
rspec-core (3.5.4)
|
91
|
-
rspec-support (~> 3.5.0)
|
92
|
-
rspec-expectations (3.5.0)
|
93
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
94
|
-
rspec-support (~> 3.5.0)
|
95
|
-
rspec-mocks (3.5.0)
|
96
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
97
|
-
rspec-support (~> 3.5.0)
|
98
|
-
rspec-rails (3.5.2)
|
99
|
-
actionpack (>= 3.0)
|
100
|
-
activesupport (>= 3.0)
|
101
|
-
railties (>= 3.0)
|
102
|
-
rspec-core (~> 3.5.0)
|
103
|
-
rspec-expectations (~> 3.5.0)
|
104
|
-
rspec-mocks (~> 3.5.0)
|
105
|
-
rspec-support (~> 3.5.0)
|
106
|
-
rspec-support (3.5.0)
|
107
|
-
sidekiq (5.0.3)
|
108
|
-
concurrent-ruby (~> 1.0)
|
109
|
-
connection_pool (~> 2.2, >= 2.2.0)
|
110
|
-
rack-protection (>= 1.5.0)
|
111
|
-
redis (~> 3.3, >= 3.3.3)
|
112
|
-
slop (3.6.0)
|
113
|
-
sprockets (3.7.1)
|
114
|
-
concurrent-ruby (~> 1.0)
|
115
|
-
rack (> 1, < 3)
|
116
|
-
sprockets-rails (2.3.3)
|
117
|
-
actionpack (>= 3.0)
|
118
|
-
activesupport (>= 3.0)
|
119
|
-
sprockets (>= 2.8, < 4.0)
|
120
|
-
thor (0.19.4)
|
121
|
-
thread_safe (0.3.6)
|
122
|
-
tzinfo (0.3.53)
|
123
|
-
|
124
|
-
PLATFORMS
|
125
|
-
ruby
|
126
|
-
|
127
|
-
DEPENDENCIES
|
128
|
-
activerecord-multi-tenant!
|
129
|
-
appraisal
|
130
|
-
pg
|
131
|
-
pry
|
132
|
-
pry-byebug
|
133
|
-
rails (= 4.0.13)
|
134
|
-
rake
|
135
|
-
rspec (>= 3.0)
|
136
|
-
rspec-rails
|
137
|
-
sidekiq
|
138
|
-
thor
|
139
|
-
|
140
|
-
BUNDLED WITH
|
141
|
-
1.17.2
|
@@ -1,146 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
activerecord-multi-tenant (1.0.1)
|
5
|
-
rails (>= 4.0)
|
6
|
-
request_store (>= 1.0.5)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
actionmailer (4.1.16)
|
12
|
-
actionpack (= 4.1.16)
|
13
|
-
actionview (= 4.1.16)
|
14
|
-
mail (~> 2.5, >= 2.5.4)
|
15
|
-
actionpack (4.1.16)
|
16
|
-
actionview (= 4.1.16)
|
17
|
-
activesupport (= 4.1.16)
|
18
|
-
rack (~> 1.5.2)
|
19
|
-
rack-test (~> 0.6.2)
|
20
|
-
actionview (4.1.16)
|
21
|
-
activesupport (= 4.1.16)
|
22
|
-
builder (~> 3.1)
|
23
|
-
erubis (~> 2.7.0)
|
24
|
-
activemodel (4.1.16)
|
25
|
-
activesupport (= 4.1.16)
|
26
|
-
builder (~> 3.1)
|
27
|
-
activerecord (4.1.16)
|
28
|
-
activemodel (= 4.1.16)
|
29
|
-
activesupport (= 4.1.16)
|
30
|
-
arel (~> 5.0.0)
|
31
|
-
activesupport (4.1.16)
|
32
|
-
i18n (~> 0.6, >= 0.6.9)
|
33
|
-
json (~> 1.7, >= 1.7.7)
|
34
|
-
minitest (~> 5.1)
|
35
|
-
thread_safe (~> 0.1)
|
36
|
-
tzinfo (~> 1.1)
|
37
|
-
appraisal (2.1.0)
|
38
|
-
bundler
|
39
|
-
rake
|
40
|
-
thor (>= 0.14.0)
|
41
|
-
arel (5.0.1.20140414130214)
|
42
|
-
builder (3.2.3)
|
43
|
-
byebug (9.0.6)
|
44
|
-
coderay (1.1.1)
|
45
|
-
concurrent-ruby (1.0.5)
|
46
|
-
connection_pool (2.2.1)
|
47
|
-
diff-lcs (1.3)
|
48
|
-
erubis (2.7.0)
|
49
|
-
i18n (0.8.1)
|
50
|
-
json (1.8.6)
|
51
|
-
mail (2.6.4)
|
52
|
-
mime-types (>= 1.16, < 4)
|
53
|
-
method_source (0.8.2)
|
54
|
-
mime-types (3.1)
|
55
|
-
mime-types-data (~> 3.2015)
|
56
|
-
mime-types-data (3.2016.0521)
|
57
|
-
minitest (5.10.1)
|
58
|
-
pg (0.20.0)
|
59
|
-
pry (0.10.4)
|
60
|
-
coderay (~> 1.1.0)
|
61
|
-
method_source (~> 0.8.1)
|
62
|
-
slop (~> 3.4)
|
63
|
-
pry-byebug (3.4.2)
|
64
|
-
byebug (~> 9.0)
|
65
|
-
pry (~> 0.10)
|
66
|
-
rack (1.5.5)
|
67
|
-
rack-protection (2.0.0)
|
68
|
-
rack
|
69
|
-
rack-test (0.6.3)
|
70
|
-
rack (>= 1.0)
|
71
|
-
rails (4.1.16)
|
72
|
-
actionmailer (= 4.1.16)
|
73
|
-
actionpack (= 4.1.16)
|
74
|
-
actionview (= 4.1.16)
|
75
|
-
activemodel (= 4.1.16)
|
76
|
-
activerecord (= 4.1.16)
|
77
|
-
activesupport (= 4.1.16)
|
78
|
-
bundler (>= 1.3.0, < 2.0)
|
79
|
-
railties (= 4.1.16)
|
80
|
-
sprockets-rails (~> 2.0)
|
81
|
-
railties (4.1.16)
|
82
|
-
actionpack (= 4.1.16)
|
83
|
-
activesupport (= 4.1.16)
|
84
|
-
rake (>= 0.8.7)
|
85
|
-
thor (>= 0.18.1, < 2.0)
|
86
|
-
rake (12.0.0)
|
87
|
-
redis (3.3.3)
|
88
|
-
request_store (1.4.1)
|
89
|
-
rack (>= 1.4)
|
90
|
-
rspec (3.5.0)
|
91
|
-
rspec-core (~> 3.5.0)
|
92
|
-
rspec-expectations (~> 3.5.0)
|
93
|
-
rspec-mocks (~> 3.5.0)
|
94
|
-
rspec-core (3.5.4)
|
95
|
-
rspec-support (~> 3.5.0)
|
96
|
-
rspec-expectations (3.5.0)
|
97
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
98
|
-
rspec-support (~> 3.5.0)
|
99
|
-
rspec-mocks (3.5.0)
|
100
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
101
|
-
rspec-support (~> 3.5.0)
|
102
|
-
rspec-rails (3.5.2)
|
103
|
-
actionpack (>= 3.0)
|
104
|
-
activesupport (>= 3.0)
|
105
|
-
railties (>= 3.0)
|
106
|
-
rspec-core (~> 3.5.0)
|
107
|
-
rspec-expectations (~> 3.5.0)
|
108
|
-
rspec-mocks (~> 3.5.0)
|
109
|
-
rspec-support (~> 3.5.0)
|
110
|
-
rspec-support (3.5.0)
|
111
|
-
sidekiq (5.0.3)
|
112
|
-
concurrent-ruby (~> 1.0)
|
113
|
-
connection_pool (~> 2.2, >= 2.2.0)
|
114
|
-
rack-protection (>= 1.5.0)
|
115
|
-
redis (~> 3.3, >= 3.3.3)
|
116
|
-
slop (3.6.0)
|
117
|
-
sprockets (3.7.1)
|
118
|
-
concurrent-ruby (~> 1.0)
|
119
|
-
rack (> 1, < 3)
|
120
|
-
sprockets-rails (2.3.3)
|
121
|
-
actionpack (>= 3.0)
|
122
|
-
activesupport (>= 3.0)
|
123
|
-
sprockets (>= 2.8, < 4.0)
|
124
|
-
thor (0.19.4)
|
125
|
-
thread_safe (0.3.6)
|
126
|
-
tzinfo (1.2.2)
|
127
|
-
thread_safe (~> 0.1)
|
128
|
-
|
129
|
-
PLATFORMS
|
130
|
-
ruby
|
131
|
-
|
132
|
-
DEPENDENCIES
|
133
|
-
activerecord-multi-tenant!
|
134
|
-
appraisal
|
135
|
-
pg
|
136
|
-
pry
|
137
|
-
pry-byebug
|
138
|
-
rails (= 4.1.16)
|
139
|
-
rake
|
140
|
-
rspec (>= 3.0)
|
141
|
-
rspec-rails
|
142
|
-
sidekiq
|
143
|
-
thor
|
144
|
-
|
145
|
-
BUNDLED WITH
|
146
|
-
1.17.2
|