passpartu 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/passpartu/verify.rb +5 -1
- data/lib/passpartu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0fdefd549a1c4e1cc70e938cfd9e14d1b39ee0686ee011796dd59abf1a3710a3
|
|
4
|
+
data.tar.gz: 65579c55e57bdbb8a4de830f2819aaede0aea5c195ad951808a91a88f30263c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fd3b87dc5660861a05ac0d76f9bfa87bb6b16cf108e4784ec8a99680030fe3e8631350a901fdc15e87853acb42a4faba971b9cf7b142eafb3536e8b911da0424
|
|
7
|
+
data.tar.gz: 2ff8ee8f80752d51fc0fbc332d77bb3441072bdd2df67a1f3e83507160734ff800a5d6c28f529d53317045b8c3f7e9e16279c9dbae2270c32dbc07e91cadf821
|
data/lib/passpartu/verify.rb
CHANGED
|
@@ -14,7 +14,7 @@ module Passpartu
|
|
|
14
14
|
|
|
15
15
|
def call
|
|
16
16
|
check
|
|
17
|
-
check_crud if policy_missed?
|
|
17
|
+
check_crud if policy_missed? && last_key_crud?
|
|
18
18
|
|
|
19
19
|
validate_result
|
|
20
20
|
end
|
|
@@ -41,5 +41,9 @@ module Passpartu
|
|
|
41
41
|
def validate_result
|
|
42
42
|
Passpartu::ValidateResult.call(result)
|
|
43
43
|
end
|
|
44
|
+
|
|
45
|
+
def last_key_crud?
|
|
46
|
+
%w[create read update delete].include?(keys[-1])
|
|
47
|
+
end
|
|
44
48
|
end
|
|
45
49
|
end
|
data/lib/passpartu/version.rb
CHANGED