rails_multitenant 0.15.0 → 0.16.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: 7c02cf9f31f24d9691805f12bc6adef3ab888e88485165e4c0650e2b35613f01
4
+ data.tar.gz: 4f72b4851a80747b6ba9d4894ff630d126e01529b7252535c074fca7c0685092
5
5
  SHA512:
6
- metadata.gz: 30b2913470e4964030da8ce6c3a5d66a9ac9146aa9779f99ec65cf6c3a4fd2762b463e5ba21c43ab50a77e6b1f55eb90130638a3ba173ff052bee50f5cce92a2
7
- data.tar.gz: ba249595b87ae32db7d8493277a69c54c2670dbbb10c2d5f2107176fdc9e54a09b177eb65c1b6eee28f48de7e5232aefafedcb8ae58b312c6b25857c94490490
6
+ metadata.gz: 92e605eed7bfa4627ae5efb83e821666f689c36ff8b547a94fdd5f1fa5d4efd07d0f93ebe68d8eacc5d77c964921918ecd114359ef0b76205f01705b92a7b432
7
+ data.tar.gz: 9542475a6ae4a1d0e43e65281a4e70440a1879062a51f6130842b4bee6391ef44f009269b913f0440542bf49337ca807541ed908542f6dfbc3cb56aaa62ffa30
@@ -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,7 +87,8 @@ module RailsMultitenant
87
87
 
88
88
  # Run a block of code that disregards scoping during read queries
89
89
  def with_unscoped_queries
90
- with_merged_registry(__use_unscoped_queries: true) do
90
+ # disabling Style/ExplicitBlockArgument for performance reasons
91
+ with_merged_registry(__use_unscoped_queries: true) do # rubocop:disable Style/ExplicitBlockArgument
91
92
  yield
92
93
  end
93
94
  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.16.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.16.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: 2022-03-30 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
@@ -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.0.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.0.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.2.22
220
+ signing_key:
219
221
  specification_version: 4
220
222
  summary: Automatically configures multiple tenants in a Rails environment
221
223
  test_files: []