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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3f5b6c7372b951cf3e958813f2a5535a0e1889e646524590e10e1600106ec8d
4
- data.tar.gz: abd0e5aa1f28a82206f02232ca527f84ac340364ed078d515363879d7e8de5f6
3
+ metadata.gz: 8ec1356e77bef938d5c233ba275311eeaa90a5e4fbfc417e1d933f2c5d9e259d
4
+ data.tar.gz: 189785a9f159957bf0cf70a08412736497c3cfbd85617baffcbe500a37e6d6cd
5
5
  SHA512:
6
- metadata.gz: 385a3320289a1b69ddba30897996105547027520009c926cf65f7ba794a7d1c430052bab3c52bae8026c20db61b66bf3954a5d915a8c0c21c02742082907d707
7
- data.tar.gz: 4b04e9507daaeac18001dc29be96f80d60039073122996eb3b2ec7a7a97a6c5eb5afa130cee417d95cb667686fed85cd02a9de2bb4d760f29f305ff686653b11
6
+ metadata.gz: 07b12d058c894882eca091f7ec200f5437f007c2fbe4c05c3343a658bf8366a19d5f4424c5d660e9bbf1359162c179f75a0c61558c995007764f0c11ea695536
7
+ data.tar.gz: 34b8b66f2306502de0271d9db947fa53b31b2ed186464a1a96714ad2759dd542bbae9d0e9e699ea1f7186ccab0045f665cd20d61dbe0e59735d8449dce5a50dd
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module AccessAllow
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.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: 2022-11-22 00:00:00.000000000 Z
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.7
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.