ixtlan-guard 0.4.1 → 0.5.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.
- data/lib/ixtlan/guard/guard.rb +4 -2
- metadata +3 -3
data/lib/ixtlan/guard/guard.rb
CHANGED
|
@@ -166,13 +166,15 @@ module Ixtlan
|
|
|
166
166
|
end
|
|
167
167
|
action_node[flavor.to_s.sub(/s$/, '') + "s"] = flavor_list if flavor_list.size > 0
|
|
168
168
|
end
|
|
169
|
-
actions << action_node
|
|
169
|
+
actions << { :action => action_node }
|
|
170
170
|
actions << @aliases[resource][action] if @aliases[resource][action]
|
|
171
171
|
end
|
|
172
172
|
end
|
|
173
173
|
end
|
|
174
174
|
|
|
175
|
-
result = map.values
|
|
175
|
+
result = map.values.collect do |perm|
|
|
176
|
+
{ :permission => perm }
|
|
177
|
+
end
|
|
176
178
|
result.class_eval "alias :to_x :to_xml" unless map.respond_to? :to_x
|
|
177
179
|
def result.to_xml(options = {}, &block)
|
|
178
180
|
options[:root] = :permissions unless options[:root]
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: ixtlan-guard
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.
|
|
5
|
+
version: 0.5.0
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- mkristian
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-
|
|
13
|
+
date: 2011-08-06 00:00:00 +05:30
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
@@ -21,7 +21,7 @@ dependencies:
|
|
|
21
21
|
requirements:
|
|
22
22
|
- - "="
|
|
23
23
|
- !ruby/object:Gem::Version
|
|
24
|
-
version: 0.
|
|
24
|
+
version: 0.5.0
|
|
25
25
|
type: :runtime
|
|
26
26
|
version_requirements: *id001
|
|
27
27
|
- !ruby/object:Gem::Dependency
|