rails_multitenant 0.15.0 → 0.17.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
2
  SHA256:
3
- metadata.gz: ab1547ea14417be1bbde8797d064b3c16e108ad698907e5ee5632ebd5d22468e
4
- data.tar.gz: 6d03ee228b67715d3cd648e2ad9bf4396b68a2741f23941e560eac2000f1677e
3
+ metadata.gz: f12466f03396bc81cc80442aa94dbcc15300b8c6b6455ab10b44fb119d5b0c4a
4
+ data.tar.gz: 8c0f7cf5d1194a6b203c6f95779ad5deafe030d982d33d812fdf2df89cc6d582
5
5
  SHA512:
6
- metadata.gz: 30b2913470e4964030da8ce6c3a5d66a9ac9146aa9779f99ec65cf6c3a4fd2762b463e5ba21c43ab50a77e6b1f55eb90130638a3ba173ff052bee50f5cce92a2
7
- data.tar.gz: ba249595b87ae32db7d8493277a69c54c2670dbbb10c2d5f2107176fdc9e54a09b177eb65c1b6eee28f48de7e5232aefafedcb8ae58b312c6b25857c94490490
6
+ metadata.gz: 045d489fe1f2b98ac9491434600b0551c695af632753cc27906f172fcf6170c22370dfabca3637041492762a725317d82b59ac90aa050f7c70ad5b71948dfc57
7
+ data.tar.gz: '075395d1f3d9944640cbc0b3ae4ce01da72ec237f3814233418b4022abf07ed8921591b306cbb5b5c638778683e420da28166835d641d390b7274e2673616bf0'
@@ -48,8 +48,8 @@ module RailsMultitenant
48
48
 
49
49
  # Duplicate the registry
50
50
  def duplicate_registry
51
- globals.each_with_object({}) do |(key, value), result|
52
- result[key] = value.nil? || value.is_a?(Integer) ? value : value.dup
51
+ globals.transform_values do |value|
52
+ value.nil? || value.is_a?(Integer) ? value : value.dup
53
53
  end
54
54
  end
55
55
 
@@ -87,6 +87,7 @@ module RailsMultitenant
87
87
 
88
88
  # Run a block of code that disregards scoping during read queries
89
89
  def with_unscoped_queries
90
+ # disabling Style/ExplicitBlockArgument for performance reasons
90
91
  with_merged_registry(__use_unscoped_queries: true) do
91
92
  yield
92
93
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsMultitenant
4
- VERSION = '0.15.0'
4
+ VERSION = '0.17.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_multitenant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Breault
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-10 00:00:00.000000000 Z
11
+ date: 2023-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,40 +16,40 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '5.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.2'
22
+ version: '7.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '4.2'
29
+ version: '5.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.2'
32
+ version: '7.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activesupport
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '4.2'
39
+ version: '5.2'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '6.2'
42
+ version: '7.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: '4.2'
49
+ version: '5.2'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '6.2'
52
+ version: '7.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: appraisal
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -112,14 +112,14 @@ dependencies:
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: 3.8.0
115
+ version: 3.11.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: 3.8.0
122
+ version: 3.11.0
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: rspec_junit_formatter
125
125
  requirement: !ruby/object:Gem::Requirement
@@ -138,16 +138,16 @@ dependencies:
138
138
  name: salsify_rubocop
139
139
  requirement: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - '='
141
+ - - "~>"
142
142
  - !ruby/object:Gem::Version
143
- version: 0.63.0
143
+ version: 1.27.1
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: 0.63.0
150
+ version: 1.27.1
151
151
  - !ruby/object:Gem::Dependency
152
152
  name: simplecov
153
153
  requirement: !ruby/object:Gem::Requirement
@@ -198,8 +198,10 @@ files:
198
198
  homepage: https://github.com/salsify/rails-multitenant
199
199
  licenses:
200
200
  - MIT
201
- metadata: {}
202
- post_install_message:
201
+ metadata:
202
+ allowed_push_host: https://rubygems.org
203
+ rubygems_mfa_required: 'true'
204
+ post_install_message:
203
205
  rdoc_options: []
204
206
  require_paths:
205
207
  - lib
@@ -207,15 +209,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
209
  requirements:
208
210
  - - ">="
209
211
  - !ruby/object:Gem::Version
210
- version: 2.4.0
212
+ version: 2.7.0
211
213
  required_rubygems_version: !ruby/object:Gem::Requirement
212
214
  requirements:
213
215
  - - ">="
214
216
  - !ruby/object:Gem::Version
215
217
  version: '0'
216
218
  requirements: []
217
- rubygems_version: 3.0.4
218
- signing_key:
219
+ rubygems_version: 3.3.7
220
+ signing_key:
219
221
  specification_version: 4
220
222
  summary: Automatically configures multiple tenants in a Rails environment
221
223
  test_files: []