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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 528bb716891e71b4d2acde0199b4f92e7c386e3b6ef7236f13571d973cbb235a
4
- data.tar.gz: 9bc59a8cec70d0914aea960d2248c6d3d024569a11d0873fa1920fb3318ea3bb
3
+ metadata.gz: 83824a22e79b637451bceca429cbb612db9d971321336e3fc5734cf50313853a
4
+ data.tar.gz: c5d4b5875b249725b8262a2acb9844c06b203d202eabd81cefa4fe6b1ce8d695
5
5
  SHA512:
6
- metadata.gz: 4e7e8bf18a8d5b0d327caac9c40149fe8dabcd450ecd3737446b96609b37083530ee972d542f31c87935dbae9745bc4ff0349861649a159da2b27ec4facf671c
7
- data.tar.gz: dd9e26bbc1b954c47e2cb5250c87bce73866733214f0a73c876e3237eadf95b9e26052ac69ed457db5f559057a81726d873a9f86490ba0ecaf36a39394e14423
6
+ metadata.gz: 93b9d758a3a8512593f038c8dedd0158fee44e8a3a014add6111e7f158898fb93c0ede679f608c449e389c19373b7d05fe5894604f27340454e2c27071f6bec4
7
+ data.tar.gz: 55ce58357e6993b0929779ab4500757a27034776608d4bbd9eb2a440f82a7d1b346567fc22757d658f0f6b4138a48667f6c2bf0402a379f370f9409552795c38
data/.gitignore CHANGED
@@ -1,2 +1,4 @@
1
1
  spec/debug.log
2
2
  pkg/
3
+ *.rb#
4
+ *.*~
@@ -7,16 +7,18 @@ rvm:
7
7
  - 2.2.7
8
8
  - 2.3.4
9
9
  - 2.4.1
10
+ - 2.4.4
11
+ - 2.6.4
10
12
 
11
13
  gemfile:
12
- - gemfiles/rails_4.0.gemfile
13
- - gemfiles/rails_4.1.gemfile
14
14
  - gemfiles/rails_4.2.gemfile
15
15
  - gemfiles/rails_5.0.gemfile
16
16
  - gemfiles/rails_5.1.gemfile
17
17
  - gemfiles/rails_5.2.gemfile
18
+ - gemfiles/rails_6.0.gemfile
18
19
  - gemfiles/active_record_5.1.gemfile
19
20
  - gemfiles/active_record_5.2.gemfile
21
+ - gemfiles/active_record_6.0.gemfile
20
22
 
21
23
  env:
22
24
  - PREPARED_STATEMENTS=0
@@ -25,10 +27,25 @@ env:
25
27
  matrix:
26
28
  fast_finish: true
27
29
  exclude:
30
+ - rvm: 2.2.7
31
+ gemfile: gemfiles/rails_6.0.gemfile
32
+ - rvm: 2.2.7
33
+ gemfile: gemfiles/active_record_6.0.gemfile
34
+ - rvm: 2.3.4
35
+ gemfile: gemfiles/rails_6.0.gemfile
36
+ - rvm: 2.3.4
37
+ gemfile: gemfiles/active_record_6.0.gemfile
28
38
  - rvm: 2.4.1
29
- gemfile: gemfiles/rails_4.0.gemfile
39
+ gemfile: gemfiles/rails_6.0.gemfile
30
40
  - rvm: 2.4.1
31
- gemfile: gemfiles/rails_4.1.gemfile
41
+ gemfile: gemfiles/active_record_6.0.gemfile
42
+ - rvm: 2.4.4
43
+ gemfile: gemfiles/rails_6.0.gemfile
44
+ - rvm: 2.4.4
45
+ gemfile: gemfiles/active_record_6.0.gemfile
46
+ - rvm: 2.6.4
47
+ gemfile: gemfiles/rails_4.2.gemfile
48
+
32
49
 
33
50
  services:
34
51
  - docker
data/Appraisals CHANGED
@@ -1,11 +1,3 @@
1
- appraise 'rails-4.0' do
2
- gem 'rails', '4.0.13'
3
- end
4
-
5
- appraise 'rails-4.1' do
6
- gem 'rails', '4.1.16'
7
- end
8
-
9
1
  appraise 'rails-4.2' do
10
2
  gem 'rails', '4.2.8'
11
3
  end
@@ -22,6 +14,10 @@ appraise 'rails-5.2' do
22
14
  gem 'rails', '5.2.0'
23
15
  end
24
16
 
17
+ appraise 'rails-6.0' do
18
+ gem 'rails', '6.0.0.rc1'
19
+ end
20
+
25
21
  appraise 'active-record-5.1' do
26
22
  gem 'activerecord', '5.1.0'
27
23
  end
@@ -29,3 +25,8 @@ end
29
25
  appraise 'active-record-5.2' do
30
26
  gem 'activerecord', '5.2.0'
31
27
  end
28
+
29
+
30
+ appraise 'active-record-6.0' do
31
+ gem 'activerecord', '6.0.0.rc1'
32
+ end
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+
4
+ ## 1.0.2 2019-09-20
5
+
6
+ * Compatibility with rails 6
7
+ * Remove support for rails 4.0 and 4.1
8
+ * Fix bug when multiple databases are used
9
+
10
+
3
11
  ## 1.0.1 2019-08-27
4
12
 
5
13
  * Ensure current tenant is present before adding tenant id filter in DatabaseStatements
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activerecord-multi-tenant (1.0.1)
5
- rails (>= 4.0)
4
+ activerecord-multi-tenant (1.0.2)
5
+ rails (>= 4.2)
6
6
  request_store (>= 1.0.5)
7
7
 
8
8
  GEM
data/README.md CHANGED
@@ -16,7 +16,7 @@ gem 'activerecord-multi-tenant'
16
16
 
17
17
  ## Supported Rails versions
18
18
 
19
- All Ruby on Rails versions starting with 4.0 or newer are supported.
19
+ All Ruby on Rails versions starting with 4.2 or newer (up to 6.0) are supported.
20
20
 
21
21
  This gem only supports ActiveRecord (the Rails default ORM), and not alternative ORMs like Sequel.
22
22
 
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.license = 'MIT'
17
17
 
18
18
  s.add_runtime_dependency('request_store', '>= 1.0.5')
19
- s.add_dependency('rails','>= 4.0')
19
+ s.add_dependency('rails','>= 4.2')
20
20
 
21
21
  s.add_development_dependency 'rspec', '>= 3.0'
22
22
  s.add_development_dependency 'rspec-rails'
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -5,4 +5,4 @@ source "https://rubygems.org"
5
5
  gem "appraisal"
6
6
  gem "activerecord", "5.1.0"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- activerecord-multi-tenant (1.0.1)
5
- rails (>= 4.0)
4
+ activerecord-multi-tenant (1.0.2)
5
+ rails (>= 4.2)
6
6
  request_store (>= 1.0.5)
7
7
 
8
8
  GEM
@@ -5,4 +5,4 @@ source "https://rubygems.org"
5
5
  gem "appraisal"
6
6
  gem "activerecord", "5.2.0"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- activerecord-multi-tenant (1.0.1)
5
- rails (>= 4.0)
4
+ activerecord-multi-tenant (1.0.2)
5
+ rails (>= 4.2)
6
6
  request_store (>= 1.0.5)
7
7
 
8
8
  GEM
@@ -3,6 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "appraisal"
6
- gem "rails", "4.1.16"
6
+ gem "activerecord", "6.0.0.rc1"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -0,0 +1,198 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ activerecord-multi-tenant (1.0.2)
5
+ rails (>= 4.2)
6
+ request_store (>= 1.0.5)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (6.0.0.rc1)
12
+ actionpack (= 6.0.0.rc1)
13
+ nio4r (~> 2.0)
14
+ websocket-driver (>= 0.6.1)
15
+ actionmailbox (6.0.0.rc1)
16
+ actionpack (= 6.0.0.rc1)
17
+ activejob (= 6.0.0.rc1)
18
+ activerecord (= 6.0.0.rc1)
19
+ activestorage (= 6.0.0.rc1)
20
+ activesupport (= 6.0.0.rc1)
21
+ mail (>= 2.7.1)
22
+ actionmailer (6.0.0.rc1)
23
+ actionpack (= 6.0.0.rc1)
24
+ actionview (= 6.0.0.rc1)
25
+ activejob (= 6.0.0.rc1)
26
+ mail (~> 2.5, >= 2.5.4)
27
+ rails-dom-testing (~> 2.0)
28
+ actionpack (6.0.0.rc1)
29
+ actionview (= 6.0.0.rc1)
30
+ activesupport (= 6.0.0.rc1)
31
+ rack (~> 2.0)
32
+ rack-test (>= 0.6.3)
33
+ rails-dom-testing (~> 2.0)
34
+ rails-html-sanitizer (~> 1.0, >= 1.0.2)
35
+ actiontext (6.0.0.rc1)
36
+ actionpack (= 6.0.0.rc1)
37
+ activerecord (= 6.0.0.rc1)
38
+ activestorage (= 6.0.0.rc1)
39
+ activesupport (= 6.0.0.rc1)
40
+ nokogiri (>= 1.8.5)
41
+ actionview (6.0.0.rc1)
42
+ activesupport (= 6.0.0.rc1)
43
+ builder (~> 3.1)
44
+ erubi (~> 1.4)
45
+ rails-dom-testing (~> 2.0)
46
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
47
+ activejob (6.0.0.rc1)
48
+ activesupport (= 6.0.0.rc1)
49
+ globalid (>= 0.3.6)
50
+ activemodel (6.0.0.rc1)
51
+ activesupport (= 6.0.0.rc1)
52
+ activerecord (6.0.0.rc1)
53
+ activemodel (= 6.0.0.rc1)
54
+ activesupport (= 6.0.0.rc1)
55
+ activestorage (6.0.0.rc1)
56
+ actionpack (= 6.0.0.rc1)
57
+ activejob (= 6.0.0.rc1)
58
+ activerecord (= 6.0.0.rc1)
59
+ marcel (~> 0.3.1)
60
+ activesupport (6.0.0.rc1)
61
+ concurrent-ruby (~> 1.0, >= 1.0.2)
62
+ i18n (>= 0.7, < 2)
63
+ minitest (~> 5.1)
64
+ tzinfo (~> 1.1)
65
+ zeitwerk (~> 2.1, >= 2.1.4)
66
+ appraisal (2.2.0)
67
+ bundler
68
+ rake
69
+ thor (>= 0.14.0)
70
+ builder (3.2.3)
71
+ byebug (11.0.1)
72
+ coderay (1.1.2)
73
+ concurrent-ruby (1.1.5)
74
+ connection_pool (2.2.2)
75
+ crass (1.0.4)
76
+ diff-lcs (1.3)
77
+ erubi (1.8.0)
78
+ globalid (0.4.2)
79
+ activesupport (>= 4.2.0)
80
+ i18n (1.6.0)
81
+ concurrent-ruby (~> 1.0)
82
+ loofah (2.2.3)
83
+ crass (~> 1.0.2)
84
+ nokogiri (>= 1.5.9)
85
+ mail (2.7.1)
86
+ mini_mime (>= 0.1.1)
87
+ marcel (0.3.3)
88
+ mimemagic (~> 0.3.2)
89
+ method_source (0.9.2)
90
+ mimemagic (0.3.3)
91
+ mini_mime (1.0.2)
92
+ mini_portile2 (2.4.0)
93
+ minitest (5.11.3)
94
+ nio4r (2.5.1)
95
+ nokogiri (1.10.4)
96
+ mini_portile2 (~> 2.4.0)
97
+ pg (1.1.4)
98
+ pry (0.12.2)
99
+ coderay (~> 1.1.0)
100
+ method_source (~> 0.9.0)
101
+ pry-byebug (3.7.0)
102
+ byebug (~> 11.0)
103
+ pry (~> 0.10)
104
+ rack (2.0.7)
105
+ rack-protection (2.0.7)
106
+ rack
107
+ rack-test (1.1.0)
108
+ rack (>= 1.0, < 3)
109
+ rails (6.0.0.rc1)
110
+ actioncable (= 6.0.0.rc1)
111
+ actionmailbox (= 6.0.0.rc1)
112
+ actionmailer (= 6.0.0.rc1)
113
+ actionpack (= 6.0.0.rc1)
114
+ actiontext (= 6.0.0.rc1)
115
+ actionview (= 6.0.0.rc1)
116
+ activejob (= 6.0.0.rc1)
117
+ activemodel (= 6.0.0.rc1)
118
+ activerecord (= 6.0.0.rc1)
119
+ activestorage (= 6.0.0.rc1)
120
+ activesupport (= 6.0.0.rc1)
121
+ bundler (>= 1.3.0)
122
+ railties (= 6.0.0.rc1)
123
+ sprockets-rails (>= 2.0.0)
124
+ rails-dom-testing (2.0.3)
125
+ activesupport (>= 4.2.0)
126
+ nokogiri (>= 1.6)
127
+ rails-html-sanitizer (1.2.0)
128
+ loofah (~> 2.2, >= 2.2.2)
129
+ railties (6.0.0.rc1)
130
+ actionpack (= 6.0.0.rc1)
131
+ activesupport (= 6.0.0.rc1)
132
+ method_source
133
+ rake (>= 0.8.7)
134
+ thor (>= 0.20.3, < 2.0)
135
+ rake (12.3.3)
136
+ redis (4.1.2)
137
+ request_store (1.4.1)
138
+ rack (>= 1.4)
139
+ rspec (3.8.0)
140
+ rspec-core (~> 3.8.0)
141
+ rspec-expectations (~> 3.8.0)
142
+ rspec-mocks (~> 3.8.0)
143
+ rspec-core (3.8.2)
144
+ rspec-support (~> 3.8.0)
145
+ rspec-expectations (3.8.4)
146
+ diff-lcs (>= 1.2.0, < 2.0)
147
+ rspec-support (~> 3.8.0)
148
+ rspec-mocks (3.8.1)
149
+ diff-lcs (>= 1.2.0, < 2.0)
150
+ rspec-support (~> 3.8.0)
151
+ rspec-rails (3.8.2)
152
+ actionpack (>= 3.0)
153
+ activesupport (>= 3.0)
154
+ railties (>= 3.0)
155
+ rspec-core (~> 3.8.0)
156
+ rspec-expectations (~> 3.8.0)
157
+ rspec-mocks (~> 3.8.0)
158
+ rspec-support (~> 3.8.0)
159
+ rspec-support (3.8.2)
160
+ sidekiq (6.0.0)
161
+ connection_pool (>= 2.2.2)
162
+ rack (>= 2.0.0)
163
+ rack-protection (>= 2.0.0)
164
+ redis (>= 4.1.0)
165
+ sprockets (3.7.2)
166
+ concurrent-ruby (~> 1.0)
167
+ rack (> 1, < 3)
168
+ sprockets-rails (3.2.1)
169
+ actionpack (>= 4.0)
170
+ activesupport (>= 4.0)
171
+ sprockets (>= 3.0.0)
172
+ thor (0.20.3)
173
+ thread_safe (0.3.6)
174
+ tzinfo (1.2.5)
175
+ thread_safe (~> 0.1)
176
+ websocket-driver (0.7.1)
177
+ websocket-extensions (>= 0.1.0)
178
+ websocket-extensions (0.1.4)
179
+ zeitwerk (2.1.10)
180
+
181
+ PLATFORMS
182
+ ruby
183
+
184
+ DEPENDENCIES
185
+ activerecord (= 6.0.0.rc1)
186
+ activerecord-multi-tenant!
187
+ appraisal
188
+ pg
189
+ pry
190
+ pry-byebug
191
+ rake
192
+ rspec (>= 3.0)
193
+ rspec-rails
194
+ sidekiq
195
+ thor
196
+
197
+ BUNDLED WITH
198
+ 1.17.2
@@ -5,4 +5,4 @@ source "https://rubygems.org"
5
5
  gem "appraisal"
6
6
  gem "rails", "4.2.8"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- activerecord-multi-tenant (1.0.1)
5
- rails (>= 4.0)
4
+ activerecord-multi-tenant (1.0.2)
5
+ rails (>= 4.2)
6
6
  request_store (>= 1.0.5)
7
7
 
8
8
  GEM
@@ -5,4 +5,4 @@ source "https://rubygems.org"
5
5
  gem "appraisal"
6
6
  gem "rails", "5.0.1"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- activerecord-multi-tenant (1.0.1)
5
- rails (>= 4.0)
4
+ activerecord-multi-tenant (1.0.2)
5
+ rails (>= 4.2)
6
6
  request_store (>= 1.0.5)
7
7
 
8
8
  GEM
@@ -5,4 +5,4 @@ source "https://rubygems.org"
5
5
  gem "appraisal"
6
6
  gem "rails", "5.1.0"
7
7
 
8
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- activerecord-multi-tenant (1.0.1)
5
- rails (>= 4.0)
4
+ activerecord-multi-tenant (1.0.2)
5
+ rails (>= 4.2)
6
6
  request_store (>= 1.0.5)
7
7
 
8
8
  GEM