nexus_cqrs_auth 0.0.4 → 0.0.5

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: 26eebafb47f52358431b983d83a6f850926f2a26e650603cb25451488e8ec8d8
4
- data.tar.gz: 18e62542c4ee5e180bda9ff8227a9193ecf026050542adf8fed02972b42b049e
3
+ metadata.gz: ba5ea106ddd9ac8566584d353c718a1b2a861c1308301c855d758e54a3928bad
4
+ data.tar.gz: 461fda9b1ffa501529c8e07d91acface837f7bbbfba1dd1de193eb85b9f4c207
5
5
  SHA512:
6
- metadata.gz: 2883708fb78909af81ad2f0839e82d08ae5c54a931c6f05ad3727766b7a4153e6c3958efa1e69ee0a867903423b2bfefb14bf14d3b0690afd3c64c783df35720
7
- data.tar.gz: 894a40035cde2e7a02fa424836ef18af5b179953bbf81b262270a55f1fd048e1543cb0ab5cf6fcc0fee15dd8d183f9d18d91eb7751ab91bba260e7a316216c21
6
+ metadata.gz: 313f9218ba94bee5cd4e62b79eca24774582de4023f072670f6e7f3683c95ab6e113b0199020da152ecebc9b5cb5f06e9d765d471a2708e87a481236610b2489
7
+ data.tar.gz: 0b735178b3e5ab4b428a7fd6b29d8451dc95ec4d5f2aaf4d9631ff347adab6f0e9f04e5c76581542303c34eba3d877fbb6f140402a4a2e93e5f3ca5802f66e06
@@ -12,6 +12,12 @@ module NexusCqrsAuth
12
12
  end
13
13
 
14
14
  def pundit_user
15
- @command_user || super
15
+ @command_user || super || nil
16
+ end
17
+
18
+ def current_user
19
+ return super if defined?(super)
20
+
21
+ nil
16
22
  end
17
23
  end
@@ -1,3 +1,3 @@
1
1
  module NexusCqrsAuth
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexus_cqrs_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Harrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-10 00:00:00.000000000 Z
11
+ date: 2021-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nexus_cqrs
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
- rubygems_version: 3.1.4
91
+ rubygems_version: 3.2.17
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Authorisation for the Nexus CQRS pattern