allowy 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/allowy/registry.rb +0 -2
- data/lib/allowy/version.rb +1 -1
- data/spec/access_control_spec.rb +1 -1
- data/spec/context_spec.rb +1 -1
- data/spec/registry_spec.rb +8 -0
- data/spec/rspec_spec.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: 6226c1034c094d096ce0d675ece0e96742691b35
|
4
|
+
data.tar.gz: 7996daebd96790d93fdf834e5a31a6fd94757600
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3afa5620c56fee9b6d539542ea6a2e37019fe30f19e0dafe2fa04ede0b2dabfc994b5c8cb3782dc33f996db10ffe2aa77db7c3258e4dd73399f4cbfb8ebe417
|
7
|
+
data.tar.gz: d9237a944aba5343928381310eff16abd08369f8085067fa78fc037b0196ec6e497cfafebe5eddfdebdce50b93eefda92db7395a1e1be772f8420345386d6a3c
|
data/lib/allowy/registry.rb
CHANGED
data/lib/allowy/version.rb
CHANGED
data/spec/access_control_spec.rb
CHANGED
data/spec/context_spec.rb
CHANGED
data/spec/registry_spec.rb
CHANGED
@@ -25,6 +25,14 @@ module Allowy
|
|
25
25
|
lambda { subject.access_control_for!(nil) }.should raise_error UndefinedAccessControl
|
26
26
|
end
|
27
27
|
|
28
|
+
it "should return NilClassAccess when subject is nil and NilClassAccess is defined" do
|
29
|
+
nil_class_access = Class.new do
|
30
|
+
include Allowy::AccessControl
|
31
|
+
end
|
32
|
+
stub_const("NilClassAccess", nil_class_access)
|
33
|
+
subject.access_control_for!(nil).should be_a nil_class_access
|
34
|
+
end
|
35
|
+
|
28
36
|
it "should return the same AC instance" do
|
29
37
|
first = subject.access_control_for!(Sample)
|
30
38
|
secnd = subject.access_control_for!(Sample)
|
data/spec/rspec_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: allowy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmytrii Nagirniak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|