corral_acl 0.9.9 → 1.0.0
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 +4 -4
- data/lib/corral/ability.rb +2 -3
- data/lib/corral/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a289c9b01b924d02bdf094ca573f1c8e8ae1917f
|
4
|
+
data.tar.gz: 86fc415588a4ed5ce2d7cf48f1c0015ed51740cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dee367be33b2bb073659441663d5f6e7a888256e5956c8562de9fff9b8959328e9d4773f045aa422ae48ed546952430b3222d8ce975a935658dec42d25aa8d70
|
7
|
+
data.tar.gz: a0fc40f1e740869bda723619d3c24aebfb8c47ae180f5b6f248175ec27625792f7803e79fcc453b8ae795fbbf0186d76b47b5b19f537ee655cfd1f8d615208ba
|
data/lib/corral/ability.rb
CHANGED
@@ -75,12 +75,11 @@ module Corral
|
|
75
75
|
# @param subject [Object] The subject.
|
76
76
|
def lookup_rule(subject)
|
77
77
|
case subject
|
78
|
-
when Symbol,
|
78
|
+
when Symbol, Module
|
79
79
|
r = subjects[subject] || subjects[:all] || NullRule
|
80
80
|
else
|
81
|
-
|
81
|
+
subjects[subject.class] || NullRule
|
82
82
|
end
|
83
|
-
r
|
84
83
|
end
|
85
84
|
end
|
86
85
|
end
|
data/lib/corral/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: corral_acl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elliot Speck (Arcaire)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|