card-mod-permissions 0.11.3 → 0.11.4

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: 37c24c8f5488febf54764f417798004fd9a14123618208e40e42ba5256c15e34
4
- data.tar.gz: b481254eac53c77db5a6f090d643d295ec4167912df234845ff962f5dcbf7a2d
3
+ metadata.gz: 588c237c885364801617bf81982e5c202a6cbc9e0b5f4931bc93f3315152c1a5
4
+ data.tar.gz: f0502bd2c432523959497206e788d4d70b8b00bb5712c1a3a4d4684fbf6d6e25
5
5
  SHA512:
6
- metadata.gz: aa2f959873536373bc364393731d374fce3d2c0c1226f215fdf0ad71564df674124564ffeaac54c77d5f4739d9825a8827fddf55350bef88e61d703f6fbead27
7
- data.tar.gz: f433543acf4ac59f3722ae90eb0b07296cbed617b0fc6bc72a4c00f7f72291cb5d8fd8708363f5097d27278abdc4b89a16744e507e18192477151d3ceef0ef77
6
+ metadata.gz: a65e935794bf6c7d9a714158582c3941cbdbe08240e9a90c724593b95f584bf798486207550fe6fcffb4004d1ddb22fb579dac6a0fc81ad1235a2f92fc8c36d0
7
+ data.tar.gz: 066fda9824c995c94afa6bf641d272b015932dd284a948a2e6715bd025f20a396605d26232465dce304167d839c46c616d5d5345de7c3cb73f4c032f3ee47054
@@ -78,7 +78,8 @@ def require_permission_rule! rule_id, action
78
78
  return if rule_id
79
79
  # RULE missing. should not be possible.
80
80
  # generalize this to handling of all required rules
81
- errors.add :permission_denied, tr(:error_no_action_rule, action: action, name: name)
81
+ errors.add :permission_denied,
82
+ t(:permission_error_no_action_rule, action: action, name: name)
82
83
  raise Card::Error::PermissionDenied, self
83
84
  end
84
85
 
@@ -2,7 +2,7 @@
2
2
  # FIXME: the following don't really belong here, but they have to come after
3
3
  # the reference stuff. we need to organize a bit!
4
4
 
5
- event :update_rule_cache, :finalize, when: :is_rule? do
5
+ event :update_rule_cache, :finalize, when: :rule? do
6
6
  Card::Rule.clear_rule_cache
7
7
  end
8
8
 
data/set/right/read.rb CHANGED
@@ -2,7 +2,7 @@ include Abstract::Permission
2
2
 
3
3
  format :html do include Abstract::Permission::HtmlFormat end
4
4
 
5
- event :cascade_read_rule, :finalize, after: :update_rule_cache, when: :is_rule? do
5
+ event :cascade_read_rule, :finalize, after: :update_rule_cache, when: :rule? do
6
6
  return unless name_is_changing? || trash_is_changing?
7
7
 
8
8
  update_read_ruled_cards
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.11.3
4
+ version: 0.11.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-04-01 00:00:00.000000000 Z
13
+ date: 2021-05-05 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.101.3
21
+ version: 1.101.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.101.3
28
+ version: 1.101.4
29
29
  description: ''
30
30
  email:
31
31
  - info@decko.org