action_policy 0.4.0 → 0.4.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: 4dadd0bd9a76357e15ca389c572fcf3bdc3f78c56482652d364a08015e4b5c7a
4
- data.tar.gz: e38e115067ad978de53354ad29fd378e04871fd05b9853c2123c8d2514ea5f04
3
+ metadata.gz: da3eeea696df1575a8760726735ecc8a904e1740424dbf0c808689f0411be7a6
4
+ data.tar.gz: 9bbe91fcf1c0ce50ae029ceeca533c93a7d686777b7d2dc64556790e0adde9b3
5
5
  SHA512:
6
- metadata.gz: 2036718d582c6a55fe8ad1242b9971c1563e9a83673f7ae608f818c2930409ac32bb43517e28847916a02c3aaa75f927c8bf9be05b8893e0ceb163e5dbbf4c1e
7
- data.tar.gz: c90eb2088ce0ea1c1b6271f5c8fa03757f720294521f7ad6c70224ac79bb0a474e6b1a57c6d2f0f458cc3073085a052ed81dde61ece1ca797fc21a3e118b786a
6
+ metadata.gz: 3b7899a9c61c1c61178b3d2cb5c5bd57f526518ffab96211e747edcba7e8f88a1c8d35452416551331d7e78cca87639bd90f34508f3ebb6edda66a8efe0fab42
7
+ data.tar.gz: 95029c9883cbe100b9fdc0368446184f9487075923e8151eba0ba02dd5c9da6cc11b31e96b2053ff2f034fcaed200bfc157c6b7eab1c60e38553403113205b6f
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.4.1 (2019-12-13)
6
+
7
+ - Fix regression introduced in 0.4.0 which broke testing Class targets. ([@palkan][])
8
+
5
9
  ## 0.4.0 (2019-12-11)
6
10
 
7
11
  - Add `action_policy.init` instrumentation event. ([@palkan][])
@@ -3,6 +3,17 @@
3
3
  module ActionPolicy
4
4
  # Testing utils
5
5
  module Testing
6
+ # Hack to match both classes and composed matchers:
7
+ # be_authorized_to(:create?, User)
8
+ # be_authorized_to(:maanage?, an_instance_of(User))
9
+ using(Module.new do
10
+ refine Module do
11
+ def ===(other)
12
+ self == other
13
+ end
14
+ end
15
+ end)
16
+
6
17
  # Collects all Authorizer calls
7
18
  module AuthorizeTracker
8
19
  class Call # :nodoc:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActionPolicy
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_policy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-12 00:00:00.000000000 Z
11
+ date: 2019-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ammeter