can_can_dry 0.1.0 → 0.2.0

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: d5cb2dc732223c48b23a35ae86383f093a160a504a4cf79887a633c8f464d4e2
4
- data.tar.gz: 1a6f3c3201413b9b80d5adc7e0e8193a1e0d7ac3ad894542c3d035e42cf455e2
3
+ metadata.gz: 8616fc62b40c6d68a3a18f5b62a07584031f0512f344806e6b5b131b1858b512
4
+ data.tar.gz: ad1b3dabb44835740a3249728ca53fa63050512c5554e8fbd127f57ef035ea80
5
5
  SHA512:
6
- metadata.gz: a6a7ba6e233a244974fb20b4bfdc258e8aa4f896d95fde9b1fddc636847b6fca90587e0953002d8b97e2ab5500308e40c2564102ad25bd06076a609866029586
7
- data.tar.gz: 624bcc4c819aefc0baac588087af7040aee09ff8c7bd99fc350630343f2120ed345060316418eae41b22753b77bb564a8745549f472349e1ec6bf38580bc2762
6
+ metadata.gz: a441d9615f99a9b6abec4678df0b4d58252a34c4f600da1ceb2136b1509e3515a01a744fdd2c2f31ee84cec7824bba9489f85f581fa11e31e2495ccc67fc3e32
7
+ data.tar.gz: bd08893454b207ebf90fbc0d76981571b2651008e309b7ef7156082b015829d59144e47df50b31b3c53dbefa8b93c1d03b0349acac3a510d09ae5cf3ea9c6629
@@ -45,9 +45,9 @@ module CanCanDry
45
45
  def can_by_can_args(can_args_args)
46
46
  can_args_args.each do |c|
47
47
  next if c.empty?
48
- return false unless can?(*c)
48
+ return true if can?(*c)
49
49
  end
50
- true
50
+ false
51
51
  end
52
52
  end
53
53
  end
@@ -1,3 +1,3 @@
1
1
  module CanCanDry
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: can_can_dry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-24 00:00:00.000000000 Z
11
+ date: 2019-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails