lockdown 1.0.5 → 1.0.6
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.
- data/lib/lockdown/permission.rb +3 -2
- data/lib/lockdown.rb +1 -1
- metadata +2 -2
data/lib/lockdown/permission.rb
CHANGED
|
@@ -17,13 +17,14 @@ module Lockdown
|
|
|
17
17
|
@access_methods = paths_for(@name)
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
apply_exceptions
|
|
20
|
+
apply_exceptions if @except_methods.length > 0
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
private
|
|
24
24
|
|
|
25
25
|
def apply_exceptions
|
|
26
|
-
|
|
26
|
+
exceptions = paths_for(@name, *@except_methods)
|
|
27
|
+
@access_methods = @access_methods - exceptions
|
|
27
28
|
end
|
|
28
29
|
|
|
29
30
|
def paths_for(str_sym, *methods)
|
data/lib/lockdown.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lockdown
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Stone
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-08-02 00:00:00 -04:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|