acts_as_authoritah 2.0.0 → 2.0.1

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.
@@ -13,7 +13,7 @@ module ActsAsAuthoritah
13
13
  module InstanceMethods
14
14
  def can?(identifier, options={})
15
15
  klass = self.class
16
- klass.send(:default_acl).match_identifier(identifier)[self.usertype(options)] ||= klass.send(:whitelist)
16
+ klass.send(:default_acl).match_identifier(identifier)[self.usertype(options)] || klass.send(:whitelist)
17
17
  end
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  module ActsAsAuthoritah
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
@@ -5,7 +5,7 @@ describe ActsAsAuthoritah::SpreadsheetWrapper do
5
5
  ActsAsAuthoritah::SpreadsheetWrapper.new("spec/data/default.xls").to_access_rules.first.class.should eq ActsAsAuthoritah::AccessRule
6
6
  end
7
7
 
8
- it "ssadf" do
8
+ it "should load the spreadsheet to ACL correctly" do
9
9
  access_rules = ActsAsAuthoritah::SpreadsheetWrapper.new("spec/data/default.xls").to_access_rules
10
10
  ActsAsAuthoritah::AccessControlList.new(access_rules).store.should eq({
11
11
  "scope1::scope2::DummyController#edit"=>{"admin"=>true, "anonymous"=>false, "super_admin"=>true},
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_authoritah
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-04-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &2151808300 !ruby/object:Gem::Requirement
16
+ requirement: &2151759260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *2151808300
24
+ version_requirements: *2151759260
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &2151807780 !ruby/object:Gem::Requirement
27
+ requirement: &2151758680 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2151807780
35
+ version_requirements: *2151758680
36
36
  description: Define user capabilities in your app
37
37
  email:
38
38
  - unni.tallman@gmail.com