cancancan 3.0.0 → 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: 77676f7b21c8e3000fc960cf841b10bc2e41b46d0131928683411b1aa44f8d3a
4
- data.tar.gz: b14fb24388906a0e6309fbc3f5f729aa222f9b9bac4bc8fc7388c62d642047f8
3
+ metadata.gz: ec5d008dea72d99ee804c69a710c9b474e39c8085cf23317cfa031f0ef3acd95
4
+ data.tar.gz: dfc2e52da361d4405ced63b2a229dbb34e80885abebad71bb531df4999d25fa1
5
5
  SHA512:
6
- metadata.gz: 7a35baf8436bac8174101d920996e1680249e9dfb8040035ec5a3a770938d1257c12047cdcc3c3d408900e32f1bf5e366f8c4d4d524fe9b8a4c31823369b9269
7
- data.tar.gz: bd6472ac5d5adb531146f7af7c374f0e7c996d01797a4d39e8b8da94a597bc4e66586f810382186a58cb95fd1412ba6d0a04007b1706162b22167b66407f1666
6
+ metadata.gz: 43d51d793d5dad4d3e0b21f106c09ff3abcbb8862bbb6377b479b9748191af470bdd45d6005126a5622626c4d3a16e7f3242889a5ddf2a6da1b74c3f8f553edf
7
+ data.tar.gz: ad7df527d7267c980a229a81fde2d6e5d03129260786f808ffc8c0d4016db7d29d9fd275e18a608c7cf1d474108638d4e3bdf4ac2ab56c18bc946270f39f830e
@@ -21,7 +21,7 @@ module CanCan
21
21
  def matches_block_conditions(subject, *extra_args)
22
22
  return @base_behavior if subject_class?(subject)
23
23
 
24
- @block.call(subject, *extra_args)
24
+ @block.call(subject, *extra_args.compact)
25
25
  end
26
26
 
27
27
  def matches_non_block_conditions(subject)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CanCan
4
- VERSION = '3.0.0'.freeze
4
+ VERSION = '3.0.1'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cancancan
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Rodi (Renuo AG)
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2019-04-03 00:00:00.000000000 Z
14
+ date: 2019-04-16 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: appraisal