flexible_accessibility 0.2.7.pre → 0.2.8.pre
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/README.md +7 -1
- data/README.rdoc +2 -3
- data/Rakefile +1 -1
- data/flexible_accessibility.gemspec +1 -1
- data/lib/flexible_accessibility/permission.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -1,2 +1,8 @@
|
|
1
|
-
|
1
|
+
Flexible Accessibility
|
2
|
+
|
3
|
+
A simple library for setting access rules, based on analysis of current resources (e.g. controllers (with namespaces) and actions) that exists in application.
|
4
|
+
|
5
|
+
Installation:
|
6
|
+
|
7
|
+
gem install flexible_accessibility
|
2
8
|
======================
|
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= flexible_accessibility
|
2
2
|
|
3
|
-
|
3
|
+
A simple library for setting access rules, based on analysis of current resources (e.g. controllers (with namespaces) and actions) that exists in application.
|
4
4
|
|
5
5
|
== Contributing to flexible_accessibility
|
6
6
|
|
@@ -14,6 +14,5 @@ Description goes here.
|
|
14
14
|
|
15
15
|
== Copyright
|
16
16
|
|
17
|
-
Copyright (c) 2012 Sergey Awanesov. See LICENSE.txt for
|
18
|
-
further details.
|
17
|
+
Copyright (c) 2012 Sergey Awanesov. See LICENSE.txt for further details.
|
19
18
|
|
data/Rakefile
CHANGED
@@ -15,7 +15,7 @@ require 'jeweler'
|
|
15
15
|
Jeweler::Tasks.new do |gem|
|
16
16
|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
17
|
gem.name = "flexible_accessibility"
|
18
|
-
gem.version = "0.2.
|
18
|
+
gem.version = "0.2.8.pre"
|
19
19
|
gem.homepage = "http://github.com/mochnatiy/flexible_accessibility"
|
20
20
|
gem.license = "MIT"
|
21
21
|
gem.summary = %Q{Flexible access control system}
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "flexible_accessibility"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.8.pre"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Sergey Awanesov"]
|
@@ -21,7 +21,7 @@ module FlexibleAccessibility
|
|
21
21
|
permissions = []
|
22
22
|
Utils.new.get_controllers.each do |scope|
|
23
23
|
namespace = scope.first
|
24
|
-
(scope - namespace
|
24
|
+
(scope - [namespace]).each do |resource|
|
25
25
|
resource = "#{namespace}::#{resource}" unless namespace == "default"
|
26
26
|
permissions << Permission.new(:resource => resource.gsub(/_controller/, "").to_sym, :actions => ApplicationResource.new(resource).klass.instance_variable_get(:@_checkable_routes))
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flexible_accessibility
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -654446817
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
9
|
+
- 8
|
10
10
|
- pre
|
11
|
-
version: 0.2.
|
11
|
+
version: 0.2.8.pre
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Sergey Awanesov
|