nexus_cqrs 0.4.6 → 0.4.7

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: f161457b535982dea76014d06a36f559a37171e17726ebdbde1d3a6e35c988b8
4
- data.tar.gz: bba7db5996f94df23f40710d89f89bda13ae5d2d6ac960377063d96e0270655c
3
+ metadata.gz: faac1f432d692edcc43068b97fbac0261b4f0b7ebd1ff1f74bef37cabf97b377
4
+ data.tar.gz: 86e217db7e9db65b23e1eebb0af6649fb9248f4cf987b2f6924013cd86fb3c97
5
5
  SHA512:
6
- metadata.gz: 3571626f27df1a94b200bb4a249740c3e12fed54781f4eeb349e3ddf7b07651bb62991e07d77c2a0c85cc9a78149b6ebee471d5e93d9464a39a1a5d4165ec3ca
7
- data.tar.gz: 02ecda8ebdde1b2c3780f8e5797d8209d83730317ff2d9f53d1bd2762dcd17f30166a8fea62779ca8327b8053fe84679fcc7f051499c184e60539323eae28189
6
+ metadata.gz: cfda5b1fc3d64af583692cb85180c979fcef2a77e56f91937db14a8e53e28068638da45791011aeb154c5e1234550dc5fe4a795257d2e74099c0f6925019385c
7
+ data.tar.gz: a777fe6969d4d93bc877e3420c0e62b6b29597c8a683fb9c538ed4bf4f1b3debf84a0a9820fea6374dcd28999302d037b2c155e83c8baf175e4e24b4d448f929
data/Gemfile.lock CHANGED
@@ -33,14 +33,14 @@ GEM
33
33
  zeitwerk (~> 2.3)
34
34
  ast (2.4.2)
35
35
  builder (3.2.4)
36
- concurrent-ruby (1.1.9)
36
+ concurrent-ruby (1.1.10)
37
37
  crass (1.0.6)
38
38
  diff-lcs (1.4.4)
39
39
  erubi (1.10.0)
40
40
  generator_spec (0.9.4)
41
41
  activesupport (>= 3.0.0)
42
42
  railties (>= 3.0.0)
43
- i18n (1.8.11)
43
+ i18n (1.10.0)
44
44
  concurrent-ruby (~> 1.0)
45
45
  ibsciss-middleware (0.4.2)
46
46
  loofah (2.12.0)
@@ -48,7 +48,7 @@ GEM
48
48
  nokogiri (>= 1.5.9)
49
49
  method_source (1.0.0)
50
50
  mini_portile2 (2.6.1)
51
- minitest (5.14.4)
51
+ minitest (5.15.0)
52
52
  nokogiri (1.12.5)
53
53
  mini_portile2 (~> 2.6.1)
54
54
  racc (~> 1.4)
@@ -111,7 +111,7 @@ GEM
111
111
  tzinfo (2.0.4)
112
112
  concurrent-ruby (~> 1.0)
113
113
  unicode-display_width (2.1.0)
114
- zeitwerk (2.5.1)
114
+ zeitwerk (2.5.4)
115
115
 
116
116
  PLATFORMS
117
117
  ruby
@@ -54,7 +54,7 @@ module NexusCqrs
54
54
  def for_user_on_entity(permission_model, entity_id)
55
55
  return [] if @user_id.nil?
56
56
 
57
- # retrieve entity-specific permissions from DB and map to hash
57
+ # retrieve entity-specific permissions from cached user permissions and map to hash
58
58
  entity_permissions = if cached_permissions(permission_model).key?(entity_id)
59
59
  cached_permissions(permission_model)[entity_id]
60
60
  .map { |p| { global: false, key: p } }
@@ -120,7 +120,7 @@ module NexusCqrs
120
120
  # @param [ApplicationRecord] permission_model Permission model
121
121
  # @see PermissionProvider#for_user
122
122
  def cached_permissions(permission_model)
123
- ::RequestStore.store[:permissions] ||= for_user(permission_model)
123
+ ::RequestStore.store["permissions_#{permission_model.class.name}"] ||= for_user(permission_model)
124
124
  end
125
125
  end
126
126
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module NexusCqrs
3
- # Leave this as 0.4.6 in order for CI process to replace with the tagged version.
4
- VERSION = '0.4.6'
3
+ # Leave this as 0.4.7 in order for CI process to replace with the tagged version.
4
+ VERSION = '0.4.7'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexus_cqrs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dean Lovett
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-23 00:00:00.000000000 Z
11
+ date: 2022-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: generator_spec
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  - !ruby/object:Gem::Version
155
155
  version: '0'
156
156
  requirements: []
157
- rubygems_version: 3.3.9
157
+ rubygems_version: 3.3.24
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Core package for the nexus cqrs gem