action_authorization 0.3.3 → 0.3.4

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: fb47292dbbc20da84de15b97b546bfe3992c15d76ced260631dd3de722e6ea0d
4
- data.tar.gz: e832054d9d6c68d969cb1dbe7b5bda50b91fd50f9b3c1b7c88b376275f387f86
3
+ metadata.gz: 738c9014d3f4738e858d3fed5b026ddf9481f856b814421fe4a2bc7ddcd7c478
4
+ data.tar.gz: e3fcdc5d42fd8071f0b1c28260197f5dc5f7c748b3c4cd02f5968328e58818c4
5
5
  SHA512:
6
- metadata.gz: be44e07c7f4861eb04733f38684ff960236c702e731b4f5d0cd69f46f0f3dc2b8df6d3f25879ee3d1038d72b8c0e465e8c8c48e98212d3bd54a7430d2fe9a393
7
- data.tar.gz: f17d11f851c42110985e49435174a5f66419e3af3a0341196941036008a14fc45912c55d88cb03bd05ef8c3415de3a5b993b40804471e42efcbd2a19277732fe
6
+ metadata.gz: a658d363a670eb08452b23352519747317a8415fd49b6a90bd42c534619c441aa98f572a263f3fb731b67b627c32c62a9da190853216287873ab42bd90ee13a4
7
+ data.tar.gz: '0993d92a305756013707f6391e0368998f742675db8e96765905456b713a35deae8bfcf903df131f6a27d9245c7c091155620b53327236f7cc63da828cca1882'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionAuthorization
4
- VERSION = "0.3.3"
4
+ VERSION = "0.3.4"
5
5
  end
@@ -16,8 +16,8 @@ module ActionAuthorization
16
16
 
17
17
  protected
18
18
 
19
- def authorize(object, action: action_name, policy_class: nil)
20
- raise AuthorizationFailure unless policy(object, policy_class).public_send(:"#{action}?")
19
+ def authorize(object, action: action_name, policy_class: nil, **)
20
+ raise AuthorizationFailure unless policy(object, policy_class).public_send(:"#{action}?", **)
21
21
 
22
22
  object
23
23
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_authorization
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Baldwin
8
8
  - Brightways Learning
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2024-09-23 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activesupport
@@ -17,14 +16,14 @@ dependencies:
17
16
  requirements:
18
17
  - - ">="
19
18
  - !ruby/object:Gem::Version
20
- version: '5.0'
19
+ version: 7.1.0
21
20
  type: :runtime
22
21
  prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
23
  requirements:
25
24
  - - ">="
26
25
  - !ruby/object:Gem::Version
27
- version: '5.0'
26
+ version: 7.1.0
28
27
  description: A base policy class for authorizing controller actions with access to
29
28
  the current_user and object.
30
29
  email:
@@ -47,7 +46,6 @@ licenses:
47
46
  metadata:
48
47
  homepage_uri: https://github.com/wwidea/action_authorization
49
48
  rubygems_mfa_required: 'true'
50
- post_install_message:
51
49
  rdoc_options: []
52
50
  require_paths:
53
51
  - lib
@@ -55,15 +53,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
55
53
  requirements:
56
54
  - - ">="
57
55
  - !ruby/object:Gem::Version
58
- version: 3.1.0
56
+ version: 3.3.0
59
57
  required_rubygems_version: !ruby/object:Gem::Requirement
60
58
  requirements:
61
59
  - - ">="
62
60
  - !ruby/object:Gem::Version
63
61
  version: '0'
64
62
  requirements: []
65
- rubygems_version: 3.5.11
66
- signing_key:
63
+ rubygems_version: 4.0.2
67
64
  specification_version: 4
68
65
  summary: Rails controller object-level action authorization.
69
66
  test_files: []