pundit-matchers 3.0.0.beta4 → 3.0.1

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: 9174f14f9868c035a2bfe235f28cac3565c22b11a0c13f3a4a7d35716a23ca16
4
- data.tar.gz: f2dcbb7dc17617644f238ac24b4a558b32f4655936db2ba23bde8bbbf5df2c15
3
+ metadata.gz: deb38560b2277878e0a13f7f7a6fb510e257c5f84b625a387424e08cb5e8708b
4
+ data.tar.gz: '084e0cb2b93b0e27f1bb710666b3d9c1aadd9fac71ffef0ca178b025a531cafe'
5
5
  SHA512:
6
- metadata.gz: 8873422c0d9c94cf0955d0e088736a90597298a3e38030bbaf15cd73420c77a6e27a44c16dd001e36d63c77354dc76c711c0486c8133b2deb02cbeb5c59ed305
7
- data.tar.gz: 3d20ac4a45dbdb83c1c7dd58a54aa8c869c3780c000f11ac5c46c8d8e075b855ac8172d0b9964279035699a48d885a0f85b2378492d196c2edc6cb11af8a198e
6
+ metadata.gz: b219dfc3fbc0a1283f0c87627b5615947f97b449ce299d65be5106e0a46b06d9a0ed40f1f86a84830cc567a74d75da9b597136f1c563cebcce3752eb2a581d45
7
+ data.tar.gz: ce6b7c6a259a6a4e22f673985c3154e334f87acf2f856b9340f97dd62d5d56945cfc16191bfb503bbce24b12c002394e0994554a29376bbe82849a690926fb19
@@ -41,7 +41,8 @@ module Pundit
41
41
  attr_reader :expected_actions
42
42
 
43
43
  def check_actions!
44
- missing_actions = expected_actions - policy_info.actions
44
+ non_explicit_actions = (expected_actions - policy_info.actions)
45
+ missing_actions = non_explicit_actions.reject { |action| policy_info.policy.respond_to?(:"#{action}?") }
45
46
  return if missing_actions.empty?
46
47
 
47
48
  raise ArgumentError, format(
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pundit-matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.beta4
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Alley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-13 00:00:00.000000000 Z
11
+ date: 2023-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core
@@ -99,9 +99,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
99
  version: '3.0'
100
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ">"
102
+ - - ">="
103
103
  - !ruby/object:Gem::Version
104
- version: 1.3.1
104
+ version: '0'
105
105
  requirements: []
106
106
  rubygems_version: 3.4.12
107
107
  signing_key: