card-mod-permissions 0.13.0 → 0.13.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/locales/en.yml +2 -0
  3. data/set/right/read.rb +1 -5
  4. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c31d640a58ed977bbc3d771a627d69bd16247c04f51bb1ab347d1aef635bd472
4
- data.tar.gz: 0465ffbf247be591a0a1766dc1997426e8a31da60582044849ca411cc389a45d
3
+ metadata.gz: b0b2954268b60138cdb1ae4ef106d7e122b0ce842dfc4e7efb358880d3e8d25b
4
+ data.tar.gz: 406ee2bccf3a497665e01dcf7ea82e0925ba13cd2e3d6b775df9e5716c3bec29
5
5
  SHA512:
6
- metadata.gz: c9c69bfb462f403c9a4ce3c897c3de4eb94bd08f7e4d59e0b67047db70718d30239da330241ca4e9bba4617e4a9422e0deba3fba9416a0871f258b1bb9874097
7
- data.tar.gz: f61c403a7f055362082dda5e1c86965fc3bd221f01076dab7af0a5350e44a442f4868c593b2e0fa8810fdf703758c6ff07f472734da90326ec9ecbcb5efbdd15
6
+ metadata.gz: ca824f201a457d2159d46181aa025622985233c5a9923e3a54227add38c8e05979840989a87db36608ee64e4245d12ab84e0642419deab86d72c4d05d86ebb8f
7
+ data.tar.gz: f5dfa67348d6cac555e0915a8fefb4ea5235dc52bc7a1d2a91c2923cfac198abf16c79a918c1d7ad9a15beb5b858fbd41d11b17f280832ad2f293a2763336d78
data/locales/en.yml ADDED
@@ -0,0 +1,2 @@
1
+ en:
2
+ permission_error_no_action_rule: No %{action} rule for %{name}
data/set/right/read.rb CHANGED
@@ -61,11 +61,7 @@ def rule_pattern_index
61
61
  end
62
62
 
63
63
  def pattern_index pattern_id
64
- pattern_ids.index(pattern_id) || invalid_pattern_id(pattern_id)
65
- end
66
-
67
- def pattern_ids
68
- @pattern_ids ||= set_patterns.map(&:pattern_id)
64
+ Pattern.ids.index(pattern_id) || invalid_pattern_id(pattern_id)
69
65
  end
70
66
 
71
67
  def invalid_pattern_id pattern_id
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-permissions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.13.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-08-06 00:00:00.000000000 Z
13
+ date: 2021-09-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.103.0
21
+ version: 1.103.4
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.103.0
28
+ version: 1.103.4
29
29
  description: ''
30
30
  email:
31
31
  - info@decko.org
@@ -33,6 +33,7 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
+ - locales/en.yml
36
37
  - set/abstract/permission.rb
37
38
  - set/all/permissions.rb
38
39
  - set/all/update_read_rules.rb