card-mod-permissions 0.13.2 → 0.13.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/set/right/read.rb +1 -5
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7fe196f31cc68b7614e1d6bd21ab46b58b149ad2a1dff71f367cf779e995bc6
4
- data.tar.gz: e1c8a6638dbd2a5e3873a739d8aab4224263fc34f7ee29c3bd97f122ffc92b1c
3
+ metadata.gz: a6d038f07b88613f7556d9e2d11a0ea2e26b1bc29525d681cc6158ed9e9495b0
4
+ data.tar.gz: c3c8246923b9e281ac5c978d7b1ee0e97302d4e0ae9504ecfe9ead697d2794bb
5
5
  SHA512:
6
- metadata.gz: 0bdfed614373c59bc62663a627c2422fecaf159a14199cf730e969f7186925847236542c600003b7edc712452a222c6c1afb1f279f8573e7ebaeb84f3a6997e1
7
- data.tar.gz: 5d166d96f2a2f0cd3afb258e6e9eb42d3b861ef5d2ce348f65efdce00768e555f8e870abeeca2234c38c6fa51931409087fb7ae86d86a6fa7027e5143887fdaf
6
+ metadata.gz: 9ce1d4e5b248c91a22367f81f520f1464002e5947219a63b398fabebc617ac7166eaee4e3100f0b5a00fa0136bf29c92fd5d34e173e66826966ace9169bdd021
7
+ data.tar.gz: 53aea5976f296ff07f4f788c2b15cc429a0b6b19003ca77b44ac6f96b499003c2f9c1c61a3b71339da10e73ab902b3458046b9098d587cda29064ea04acc96b8
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.2
4
+ version: 0.13.3
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.2
21
+ version: 1.103.3
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.2
28
+ version: 1.103.3
29
29
  description: ''
30
30
  email:
31
31
  - info@decko.org