flexible_accessibility 0.2.8.pre → 0.2.9.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 CHANGED
@@ -5,4 +5,8 @@ A simple library for setting access rules, based on analysis of current resource
5
5
  Installation:
6
6
 
7
7
  gem install flexible_accessibility
8
+
9
+ or add to your Gemfile
10
+
11
+ gem "flexible_accesibility", "~> 0.3.0"
8
12
  ======================
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.8.pre"
18
+ gem.version = "0.2.9.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.pre"
8
+ s.version = "0.2.9.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"]
@@ -20,8 +20,8 @@ module FlexibleAccessibility
20
20
  def all
21
21
  permissions = []
22
22
  Utils.new.get_controllers.each do |scope|
23
- namespace = scope.first
24
- (scope - [namespace]).each do |resource|
23
+ namespace = scope.first.to_s
24
+ (scope.last - [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: -654446817
4
+ hash: 1557822611
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 8
9
+ - 9
10
10
  - pre
11
- version: 0.2.8.pre
11
+ version: 0.2.9.pre
12
12
  platform: ruby
13
13
  authors:
14
14
  - Sergey Awanesov