access_allow 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/access_allow/check.rb +1 -1
- data/lib/access_allow/controller_access_dsl.rb +0 -1
- data/lib/access_allow/version.rb +1 -1
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ec1356e77bef938d5c233ba275311eeaa90a5e4fbfc417e1d933f2c5d9e259d
|
4
|
+
data.tar.gz: 189785a9f159957bf0cf70a08412736497c3cfbd85617baffcbe500a37e6d6cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07b12d058c894882eca091f7ec200f5437f007c2fbe4c05c3343a658bf8366a19d5f4424c5d660e9bbf1359162c179f75a0c61558c995007764f0c11ea695536
|
7
|
+
data.tar.gz: 34b8b66f2306502de0271d9db947fa53b31b2ed186464a1a96714ad2759dd542bbae9d0e9e699ea1f7186ccab0045f665cd20d61dbe0e59735d8449dce5a50dd
|
data/lib/access_allow/check.rb
CHANGED
@@ -31,7 +31,7 @@ module AccessAllow
|
|
31
31
|
Rails.logger.info error_message(false)
|
32
32
|
return false
|
33
33
|
end
|
34
|
-
ability_manager.has?(ability_namespace, ability_name).tap { |can| Rails.logger.info error_message(can) }
|
34
|
+
ability_manager.has?(ability_namespace, ability_name).tap { |can| Rails.logger.info error_message(can) unless can }
|
35
35
|
end
|
36
36
|
|
37
37
|
def possible!
|
@@ -36,7 +36,6 @@ module AccessAllow
|
|
36
36
|
access_manager.configure_no_match(violation, &block)
|
37
37
|
end
|
38
38
|
|
39
|
-
# TODO: consider a `if:` conditional allowed on rules
|
40
39
|
# Specify an access requirement, that must pass for any other action access checks to pass
|
41
40
|
# The default violation level is :severe
|
42
41
|
def access_require(check, with: nil, violation: :severe, &block)
|
data/lib/access_allow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: access_allow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Ierodiaconou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 7.0.4
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '8.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,6 +27,9 @@ dependencies:
|
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 7.0.4
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '8.0'
|
27
33
|
description: Permissions and access control gem for Rails.
|
28
34
|
email:
|
29
35
|
- stevegeek@gmail.com
|
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
75
|
- !ruby/object:Gem::Version
|
70
76
|
version: '0'
|
71
77
|
requirements: []
|
72
|
-
rubygems_version: 3.3
|
78
|
+
rubygems_version: 3.5.3
|
73
79
|
signing_key:
|
74
80
|
specification_version: 4
|
75
81
|
summary: Permissions and access control gem for Rails.
|