corral_acl 0.9.9 → 1.0.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
  SHA1:
3
- metadata.gz: 109d68a815474f4d6c29c677eb916607aaa85404
4
- data.tar.gz: 864996ff4eaecd593c8b900fa8eac14882d52aef
3
+ metadata.gz: a289c9b01b924d02bdf094ca573f1c8e8ae1917f
4
+ data.tar.gz: 86fc415588a4ed5ce2d7cf48f1c0015ed51740cb
5
5
  SHA512:
6
- metadata.gz: 57518f38d32e3fd35ef776f1b14892f5ae157452ba17854f567d1f3a72dd2b7ba3853b92bf9b9103095a80ec4ba347f18cbc60e5a706130535279ed3c8932282
7
- data.tar.gz: 74cd802f26f852fbd1102feb2cf2a02c33b2cab3471b45eef760b9b375cb8fac4f3c17acdeb7e56eb004fb5054810e64d30ef4b0134e260ea057cc7665a61ca1
6
+ metadata.gz: dee367be33b2bb073659441663d5f6e7a888256e5956c8562de9fff9b8959328e9d4773f045aa422ae48ed546952430b3222d8ce975a935658dec42d25aa8d70
7
+ data.tar.gz: a0fc40f1e740869bda723619d3c24aebfb8c47ae180f5b6f248175ec27625792f7803e79fcc453b8ae795fbbf0186d76b47b5b19f537ee655cfd1f8d615208ba
@@ -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, Class
78
+ when Symbol, Module
79
79
  r = subjects[subject] || subjects[:all] || NullRule
80
80
  else
81
- r = subjects[subject.class] || NullRule
81
+ subjects[subject.class] || NullRule
82
82
  end
83
- r
84
83
  end
85
84
  end
86
85
  end
@@ -1,3 +1,3 @@
1
1
  module Corral
2
- VERSION = "0.9.9"
2
+ VERSION = "1.0.0"
3
3
  end
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.9.9
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-21 00:00:00.000000000 Z
11
+ date: 2016-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails