rails_multitenant 0.11.0 → 0.12.0

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
- SHA1:
3
- metadata.gz: 7c9936e0904797c7af7fb67e3a08102b5d4388be
4
- data.tar.gz: 5ba8bb69723b5d3b83007d6b5ad2148aa9769a50
2
+ SHA256:
3
+ metadata.gz: 59ff37a41d189f0a862756fad37fcde1f1795aa7636c1ff74272b0bfc2a9c0b2
4
+ data.tar.gz: aabfc280d54676a28e97377ac3c2efb05d2bbc465cdf5324f1ddf4698254d3e6
5
5
  SHA512:
6
- metadata.gz: c1affba9e932ba4ffd61a034382a05fcc7027701137bafd215345451173ec5d92ef087366acf101db4e8fa48220f33c1b4649b33cb1b57c77c05b99db2de5bda
7
- data.tar.gz: d7e99b00fe2ef9bd7070b7074a0ea09e6a7a35a70554f62b095843318086da92a231543530132c95f316b913d01a3f71d062aa22b2d9cb2f3ee116188480e6be
6
+ metadata.gz: ba686f109c703650b17d446119b8aea52c7a9d4c40121e90788b9755219b37b45cedb8abca64f61961233cc06cf152d2f8c1c51ce3c418f9e24dacd535944e84
7
+ data.tar.gz: e627d7ed403a1e7c54e224d094d9211a224c2bf598ee20a8465029f4d4ce55962169f506ad053ba1d282dda5b1d283f73128e7833b280a8daa93869237109339
data/.gitignore CHANGED
@@ -12,3 +12,5 @@
12
12
  bundle
13
13
  .idea
14
14
  *.iml
15
+ /gemfiles/*.gemfile.lock
16
+ config
@@ -1 +1 @@
1
- 2.4.3
1
+ 2.6.3
@@ -1,29 +1,16 @@
1
1
  language: ruby
2
2
  sudo: false
3
- env:
4
- - RAILS_VERSION="~> 4.1.16"
5
- - RAILS_VERSION="~> 4.2.10"
6
- - RAILS_VERSION="~> 5.0.7"
7
- - RAILS_VERSION="~> 5.1.6"
8
- - RAILS_VERSION="~> 5.2.0"
3
+ gemfile:
4
+ - gemfiles/rails_4.2.gemfile
5
+ - gemfiles/rails_5.0.gemfile
6
+ - gemfiles/rails_5.1.gemfile
7
+ - gemfiles/rails_5.2.gemfile
8
+ - gemfiles/rails_6.0.gemfile
9
9
  rvm:
10
- - 2.5.1
11
- - 2.4.4
12
- - 2.3.7
13
- - 2.2.10
14
- - 2.1.10
10
+ - 2.6.3
11
+ - 2.5.5
12
+ - 2.4.6
15
13
  matrix:
16
14
  exclude:
17
- - rvm: 2.1.10
18
- env: RAILS_VERSION="~> 5.0.7"
19
- - rvm: 2.1.10
20
- env: RAILS_VERSION="~> 5.1.6"
21
- - rvm: 2.1.10
22
- env: RAILS_VERSION="~> 5.2.0"
23
- - rvm: 2.4.4
24
- env: RAILS_VERSION="~> 4.1.16"
25
- - rvm: 2.5.1
26
- env: RAILS_VERSION="~> 4.1.16"
27
- before_install:
28
- - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
29
- - gem install bundler -v '< 2'
15
+ - rvm: 2.4.6
16
+ gemfile: gemfiles/rails_6.0.gemfile
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ appraise 'rails-4.2' do
4
+ gem 'sqlite3', '~> 1.3.6'
5
+ gem 'activerecord', '4.2.11.1'
6
+ gem 'activesupport', '4.2.11.1'
7
+ end
8
+
9
+ appraise 'rails-5.0' do
10
+ gem 'sqlite3', '~> 1.3.6'
11
+ gem 'activerecord', '5.0.7.2'
12
+ gem 'activesupport', '5.0.7.2'
13
+ end
14
+
15
+ appraise 'rails-5.1' do
16
+ gem 'activerecord', '5.1.7'
17
+ gem 'activesupport', '5.1.7'
18
+ end
19
+
20
+ appraise 'rails-5.2' do
21
+ gem 'activerecord', '5.2.3'
22
+ gem 'activesupport', '5.2.3'
23
+ end
24
+
25
+ appraise 'rails-6.0' do
26
+ gem 'activerecord', '6.0.0.rc2'
27
+ gem 'activesupport', '6.0.0.rc2'
28
+ end
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 0.12.0
4
+ * Drop support for Ruby < 2.4 and Rails < 4.2.
5
+ * Add support for Rails 6.
6
+
3
7
  ### 0.11.0
4
8
  * Provide shorthands to access `RailsMultitenant::GlobalContextRegistry` methods via `RailsMultitenant`.
5
9
  For example `RailsMultitenant[:organization_id] = 'some value'` will set that value in the registry.
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "sqlite3", "~> 1.3.6"
6
+ gem "activerecord", "4.2.11.1"
7
+ gem "activesupport", "4.2.11.1"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,9 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "sqlite3", "~> 1.3.6"
6
+ gem "activerecord", "5.0.7.2"
7
+ gem "activesupport", "5.0.7.2"
8
+
9
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "5.1.7"
6
+ gem "activesupport", "5.1.7"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "5.2.3"
6
+ gem "activesupport", "5.2.3"
7
+
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "6.0.0.rc2"
6
+ gem "activesupport", "6.0.0.rc2"
7
+
8
+ gemspec path: "../"
@@ -1,3 +1,3 @@
1
1
  module RailsMultitenant
2
- VERSION = '0.11.0'
2
+ VERSION = '0.12.0'
3
3
  end
@@ -17,17 +17,16 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = Dir.glob('spec/**/*')
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.required_ruby_version = '>= 2.1.0'
20
+ spec.required_ruby_version = '>= 2.4.0'
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.10"
23
-
24
- spec.add_dependency 'activerecord', ENV.fetch('RAILS_VERSION', ['>= 4.1', '< 5.3'])
25
- spec.add_dependency 'activesupport', ENV.fetch('RAILS_VERSION', ['>= 4.1', '< 5.3'])
22
+ spec.add_dependency 'activerecord', '>= 4.2', '< 6.1'
23
+ spec.add_dependency 'activesupport', '>= 4.2', '< 6.1'
26
24
 
25
+ spec.add_development_dependency 'appraisal'
27
26
  spec.add_development_dependency 'coveralls'
28
27
  spec.add_development_dependency 'database_cleaner', '>= 1.2'
29
- spec.add_development_dependency 'rake', '< 11.0'
30
- spec.add_development_dependency 'rspec', '~> 2'
28
+ spec.add_development_dependency 'rake', '>= 12.0'
29
+ spec.add_development_dependency 'rspec', '~> 3.8.0'
31
30
  spec.add_development_dependency 'simplecov', '~> 0.15.1'
32
- spec.add_development_dependency 'sqlite3', '~> 1.3.0'
31
+ spec.add_development_dependency 'sqlite3', '~> 1.4.0'
33
32
  end
@@ -42,7 +42,7 @@ describe RailsMultitenant::GlobalContextRegistry::Current do
42
42
 
43
43
  it 'raises an error when current not set' do
44
44
  NoDefaultTestClass.clear_current!
45
- expect { NoDefaultTestClass.current! }.to raise_error
45
+ expect { NoDefaultTestClass.current! }.to raise_error('No current NoDefaultTestClass set')
46
46
  end
47
47
  end
48
48
 
metadata CHANGED
@@ -1,69 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_multitenant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Breault
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-25 00:00:00.000000000 Z
11
+ date: 2019-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.10'
20
- type: :development
19
+ version: '4.2'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '6.1'
23
+ type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '4.2'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '1.10'
32
+ version: '6.1'
27
33
  - !ruby/object:Gem::Dependency
28
- name: activerecord
34
+ name: activesupport
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - ">="
32
38
  - !ruby/object:Gem::Version
33
- version: '4.1'
39
+ version: '4.2'
34
40
  - - "<"
35
41
  - !ruby/object:Gem::Version
36
- version: '5.3'
42
+ version: '6.1'
37
43
  type: :runtime
38
44
  prerelease: false
39
45
  version_requirements: !ruby/object:Gem::Requirement
40
46
  requirements:
41
47
  - - ">="
42
48
  - !ruby/object:Gem::Version
43
- version: '4.1'
49
+ version: '4.2'
44
50
  - - "<"
45
51
  - !ruby/object:Gem::Version
46
- version: '5.3'
52
+ version: '6.1'
47
53
  - !ruby/object:Gem::Dependency
48
- name: activesupport
54
+ name: appraisal
49
55
  requirement: !ruby/object:Gem::Requirement
50
56
  requirements:
51
57
  - - ">="
52
58
  - !ruby/object:Gem::Version
53
- version: '4.1'
54
- - - "<"
55
- - !ruby/object:Gem::Version
56
- version: '5.3'
57
- type: :runtime
59
+ version: '0'
60
+ type: :development
58
61
  prerelease: false
59
62
  version_requirements: !ruby/object:Gem::Requirement
60
63
  requirements:
61
64
  - - ">="
62
65
  - !ruby/object:Gem::Version
63
- version: '4.1'
64
- - - "<"
65
- - !ruby/object:Gem::Version
66
- version: '5.3'
66
+ version: '0'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: coveralls
69
69
  requirement: !ruby/object:Gem::Requirement
@@ -96,30 +96,30 @@ dependencies:
96
96
  name: rake
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - "<"
99
+ - - ">="
100
100
  - !ruby/object:Gem::Version
101
- version: '11.0'
101
+ version: '12.0'
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
- - - "<"
106
+ - - ">="
107
107
  - !ruby/object:Gem::Version
108
- version: '11.0'
108
+ version: '12.0'
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: rspec
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: '2'
115
+ version: 3.8.0
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: '2'
122
+ version: 3.8.0
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: simplecov
125
125
  requirement: !ruby/object:Gem::Requirement
@@ -140,14 +140,14 @@ dependencies:
140
140
  requirements:
141
141
  - - "~>"
142
142
  - !ruby/object:Gem::Version
143
- version: 1.3.0
143
+ version: 1.4.0
144
144
  type: :development
145
145
  prerelease: false
146
146
  version_requirements: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - "~>"
149
149
  - !ruby/object:Gem::Version
150
- version: 1.3.0
150
+ version: 1.4.0
151
151
  description: Handles multiple tenants in a Rails environment
152
152
  email:
153
153
  - pbreault@salsify.com
@@ -159,6 +159,7 @@ files:
159
159
  - ".rspec"
160
160
  - ".ruby-version"
161
161
  - ".travis.yml"
162
+ - Appraisals
162
163
  - CHANGELOG.md
163
164
  - CODE_OF_CONDUCT.md
164
165
  - Gemfile
@@ -166,6 +167,11 @@ files:
166
167
  - Rakefile
167
168
  - bin/console
168
169
  - bin/setup
170
+ - gemfiles/rails_4.2.gemfile
171
+ - gemfiles/rails_5.0.gemfile
172
+ - gemfiles/rails_5.1.gemfile
173
+ - gemfiles/rails_5.2.gemfile
174
+ - gemfiles/rails_6.0.gemfile
169
175
  - lib/rails_multitenant.rb
170
176
  - lib/rails_multitenant/global_context_registry.rb
171
177
  - lib/rails_multitenant/middleware/extensions.rb
@@ -200,15 +206,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
200
206
  requirements:
201
207
  - - ">="
202
208
  - !ruby/object:Gem::Version
203
- version: 2.1.0
209
+ version: 2.4.0
204
210
  required_rubygems_version: !ruby/object:Gem::Requirement
205
211
  requirements:
206
212
  - - ">="
207
213
  - !ruby/object:Gem::Version
208
214
  version: '0'
209
215
  requirements: []
210
- rubyforge_project:
211
- rubygems_version: 2.6.14
216
+ rubygems_version: 3.0.4
212
217
  signing_key:
213
218
  specification_version: 4
214
219
  summary: Automatically configures multiple tenants in a Rails environment