credential_authorization 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50754e789bb77e7b0295b2e7ce3b79892d9ff27df65114661b8a4fed4d78b698
4
- data.tar.gz: 8311803d62c38ce7e07680f6847a09628ede5e65350c297d15490e3046514141
3
+ metadata.gz: ed3869fa7e81dde4e217229ae7c47e7faea3132c093eaae300d58a28adf8c656
4
+ data.tar.gz: 80f75ccce9922cdd8c07d3cb0cca11b1435d3b69661ee4df5d14cf3b0d07bdd6
5
5
  SHA512:
6
- metadata.gz: 3d6524a1b85e00e2903a35b1880e4db6d72298ce1f63d82c80545a84c028ba0c02c6c93c63aa55c4853cb900af022df2e3edbdfef1a9de2b4b697aa968850385
7
- data.tar.gz: bcb8507249c8c71f275e02e56dbcf7e6d3648928b9e428962026811f7c10f3c88f5a4b9a6f3577f296ed72b00e8a5c5e04a7d52fcff9309e278e87f2aa848d2e
6
+ metadata.gz: bccf752f971f2b7baa3b7eb4963a7ccac2aea9314a4545806394c72148f13735fe9d93cc21225e0d6391cd60d0a7050a5fc157df1a491679233afe382a7d954b
7
+ data.tar.gz: 1db2501a8f9fb350fd10934f01e48c932c8a19b628026cb17abf28e2f8cdd1733932ea6507a9be45c36e1cf0088743b02b42958a7d920d163daf45044b6ae752
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CredentialAuthorization
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -36,6 +36,10 @@ module CredentialAuthorization
36
36
  true
37
37
  end
38
38
 
39
+ def build_permission_key(record:, permission:)
40
+ "#{record.class.name.downcase}.#{record.id}.#{permission}"
41
+ end
42
+
39
43
  private
40
44
 
41
45
  def self.find_permission(permission)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: credential_authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - JoelGamer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-30 00:00:00.000000000 Z
11
+ date: 2024-10-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: