culturecode-cancan 2.0.0.alpha

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.rdoc +381 -0
  3. data/Gemfile +3 -0
  4. data/LICENSE +20 -0
  5. data/README.rdoc +108 -0
  6. data/Rakefile +18 -0
  7. data/init.rb +1 -0
  8. data/lib/cancan.rb +13 -0
  9. data/lib/cancan/ability.rb +348 -0
  10. data/lib/cancan/controller_additions.rb +392 -0
  11. data/lib/cancan/controller_resource.rb +266 -0
  12. data/lib/cancan/exceptions.rb +53 -0
  13. data/lib/cancan/inherited_resource.rb +20 -0
  14. data/lib/cancan/matchers.rb +14 -0
  15. data/lib/cancan/model_adapters/abstract_adapter.rb +56 -0
  16. data/lib/cancan/model_adapters/active_record_adapter.rb +172 -0
  17. data/lib/cancan/model_adapters/data_mapper_adapter.rb +34 -0
  18. data/lib/cancan/model_adapters/default_adapter.rb +7 -0
  19. data/lib/cancan/model_adapters/mongoid_adapter.rb +54 -0
  20. data/lib/cancan/model_additions.rb +29 -0
  21. data/lib/cancan/rule.rb +178 -0
  22. data/lib/generators/cancan/ability/USAGE +5 -0
  23. data/lib/generators/cancan/ability/ability_generator.rb +16 -0
  24. data/lib/generators/cancan/ability/templates/ability.rb +24 -0
  25. data/lib/generators/cancan/ability/templates/ability_spec.rb +16 -0
  26. data/lib/generators/cancan/ability/templates/ability_test.rb +10 -0
  27. data/spec/README.rdoc +28 -0
  28. data/spec/cancan/ability_spec.rb +541 -0
  29. data/spec/cancan/controller_additions_spec.rb +118 -0
  30. data/spec/cancan/controller_resource_spec.rb +551 -0
  31. data/spec/cancan/exceptions_spec.rb +58 -0
  32. data/spec/cancan/inherited_resource_spec.rb +58 -0
  33. data/spec/cancan/matchers_spec.rb +33 -0
  34. data/spec/cancan/model_adapters/active_record_adapter_spec.rb +278 -0
  35. data/spec/cancan/model_adapters/data_mapper_adapter_spec.rb +120 -0
  36. data/spec/cancan/model_adapters/default_adapter_spec.rb +7 -0
  37. data/spec/cancan/model_adapters/mongoid_adapter_spec.rb +226 -0
  38. data/spec/cancan/rule_spec.rb +55 -0
  39. data/spec/matchers.rb +13 -0
  40. data/spec/spec_helper.rb +49 -0
  41. metadata +194 -0
@@ -0,0 +1,7 @@
1
+ require "spec_helper"
2
+
3
+ describe CanCan::ModelAdapters::DefaultAdapter do
4
+ it "is default for generic classes" do
5
+ CanCan::ModelAdapters::AbstractAdapter.adapter_class(Object).should == CanCan::ModelAdapters::DefaultAdapter
6
+ end
7
+ end
@@ -0,0 +1,226 @@
1
+ if ENV["MODEL_ADAPTER"] == "mongoid"
2
+ require "spec_helper"
3
+
4
+ class MongoidCategory
5
+ include Mongoid::Document
6
+ references_many :mongoid_projects
7
+ end
8
+
9
+ class MongoidProject
10
+ include Mongoid::Document
11
+ referenced_in :mongoid_category
12
+ end
13
+
14
+ Mongoid.configure do |config|
15
+ config.master = Mongo::Connection.new('127.0.0.1', 27017).db("cancan_mongoid_spec")
16
+ end
17
+
18
+ describe CanCan::ModelAdapters::MongoidAdapter do
19
+ context "Mongoid defined" do
20
+ before(:each) do
21
+ @ability = Object.new
22
+ @ability.extend(CanCan::Ability)
23
+ end
24
+
25
+ after(:each) do
26
+ Mongoid.master.collections.select do |collection|
27
+ collection.name !~ /system/
28
+ end.each(&:drop)
29
+ end
30
+
31
+ it "is for only Mongoid classes" do
32
+ CanCan::ModelAdapters::MongoidAdapter.should_not be_for_class(Object)
33
+ CanCan::ModelAdapters::MongoidAdapter.should be_for_class(MongoidProject)
34
+ CanCan::ModelAdapters::AbstractAdapter.adapter_class(MongoidProject).should == CanCan::ModelAdapters::MongoidAdapter
35
+ end
36
+
37
+ it "finds record" do
38
+ project = MongoidProject.create
39
+ CanCan::ModelAdapters::MongoidAdapter.find(MongoidProject, project.id).should == project
40
+ end
41
+
42
+ it "compares properties on mongoid documents with the conditions hash" do
43
+ model = MongoidProject.new
44
+ @ability.can :read, :mongoid_projects, :id => model.id
45
+ @ability.should be_able_to(:read, model)
46
+ end
47
+
48
+ it "is able to read hashes when field is array" do
49
+ one_to_three = MongoidProject.create(:numbers => ['one', 'two', 'three'])
50
+ two_to_five = MongoidProject.create(:numbers => ['two', 'three', 'four', 'five'])
51
+
52
+ @ability.can :foo, :mongoid_projects, :numbers => 'one'
53
+ @ability.should be_able_to(:foo, one_to_three)
54
+ @ability.should_not be_able_to(:foo, two_to_five)
55
+ end
56
+
57
+ it "returns [] when no ability is defined so no records are found" do
58
+ MongoidProject.create(:title => 'Sir')
59
+ MongoidProject.create(:title => 'Lord')
60
+ MongoidProject.create(:title => 'Dude')
61
+
62
+ MongoidProject.accessible_by(@ability, :read).entries.should == []
63
+ end
64
+
65
+ it "returns the correct records based on the defined ability" do
66
+ @ability.can :read, :mongoid_projects, :title => "Sir"
67
+ sir = MongoidProject.create(:title => 'Sir')
68
+ lord = MongoidProject.create(:title => 'Lord')
69
+ dude = MongoidProject.create(:title => 'Dude')
70
+
71
+ MongoidProject.accessible_by(@ability, :read).entries.should == [sir]
72
+ end
73
+
74
+ it "returns the correct records when a mix of can and cannot rules in defined ability" do
75
+ pending "TODO figure out why this isn't working"
76
+ @ability.can :manage, :mongoid_projects, :title => 'Sir'
77
+ @ability.cannot :destroy, :mongoid_projects
78
+
79
+ sir = MongoidProject.create(:title => 'Sir')
80
+ lord = MongoidProject.create(:title => 'Lord')
81
+ dude = MongoidProject.create(:title => 'Dude')
82
+
83
+ MongoidProject.accessible_by(@ability, :destroy).entries.should == [sir]
84
+ end
85
+
86
+ it "takes presedence over rule defined without a condition" do
87
+ @ability.can :read, :mongoid_projects
88
+ @ability.can :read, :mongoid_projects, :title => 'Sir'
89
+ sir = MongoidProject.create(:title => 'Sir')
90
+ lord = MongoidProject.create(:title => 'Lord')
91
+
92
+ MongoidProject.accessible_by(@ability, :read).entries.should == [sir]
93
+ end
94
+
95
+ it "returns everything when the defined ability is access all" do
96
+ @ability.can :access, :all
97
+ sir = MongoidProject.create(:title => 'Sir')
98
+ lord = MongoidProject.create(:title => 'Lord')
99
+ dude = MongoidProject.create(:title => 'Dude')
100
+
101
+ MongoidProject.accessible_by(@ability, :read).entries.should == [sir, lord, dude]
102
+ end
103
+
104
+ it "allows a scope for conditions" do
105
+ @ability.can :read, :mongoid_projects, MongoidProject.where(:title => 'Sir')
106
+ sir = MongoidProject.create(:title => 'Sir')
107
+ lord = MongoidProject.create(:title => 'Lord')
108
+ dude = MongoidProject.create(:title => 'Dude')
109
+
110
+ MongoidProject.accessible_by(@ability, :read).entries.should == [sir]
111
+ end
112
+
113
+ describe "Mongoid::Criteria where clause Symbol extensions using MongoDB expressions" do
114
+ it "handles :field.in" do
115
+ obj = MongoidProject.create(:title => 'Sir')
116
+ @ability.can :read, :mongoid_projects, :title.in => ["Sir", "Madam"]
117
+ @ability.can?(:read, obj).should == true
118
+ MongoidProject.accessible_by(@ability, :read).should == [obj]
119
+
120
+ obj2 = MongoidProject.create(:title => 'Lord')
121
+ @ability.can?(:read, obj2).should == false
122
+ end
123
+
124
+ describe "activates only when there are Criteria in the hash" do
125
+ it "Calls where on the model class when there are criteria" do
126
+ obj = MongoidProject.create(:title => 'Bird')
127
+ @conditions = {:title.nin => ["Fork", "Spoon"]}
128
+
129
+ @ability.can :read, :mongoid_projects, @conditions
130
+ @ability.should be_able_to(:read, obj)
131
+ end
132
+ it "Calls the base version if there are no mongoid criteria" do
133
+ obj = MongoidProject.new(:title => 'Bird')
134
+ @conditions = {:id => obj.id}
135
+ @ability.can :read, :mongoid_projects, @conditions
136
+ @ability.should be_able_to(:read, obj)
137
+ end
138
+ end
139
+
140
+ it "handles :field.nin" do
141
+ obj = MongoidProject.create(:title => 'Sir')
142
+ @ability.can :read, :mongoid_projects, :title.nin => ["Lord", "Madam"]
143
+ @ability.can?(:read, obj).should == true
144
+ MongoidProject.accessible_by(@ability, :read).should == [obj]
145
+
146
+ obj2 = MongoidProject.create(:title => 'Lord')
147
+ @ability.can?(:read, obj2).should == false
148
+ end
149
+
150
+ it "handles :field.size" do
151
+ obj = MongoidProject.create(:titles => ['Palatin', 'Margrave'])
152
+ @ability.can :read, :mongoid_projects, :titles.size => 2
153
+ @ability.can?(:read, obj).should == true
154
+ MongoidProject.accessible_by(@ability, :read).should == [obj]
155
+
156
+ obj2 = MongoidProject.create(:titles => ['Palatin', 'Margrave', 'Marquis'])
157
+ @ability.can?(:read, obj2).should == false
158
+ end
159
+
160
+ it "handles :field.exists" do
161
+ obj = MongoidProject.create(:titles => ['Palatin', 'Margrave'])
162
+ @ability.can :read, :mongoid_projects, :titles.exists => true
163
+ @ability.can?(:read, obj).should == true
164
+ MongoidProject.accessible_by(@ability, :read).should == [obj]
165
+
166
+ obj2 = MongoidProject.create
167
+ @ability.can?(:read, obj2).should == false
168
+ end
169
+
170
+ it "handles :field.gt" do
171
+ obj = MongoidProject.create(:age => 50)
172
+ @ability.can :read, :mongoid_projects, :age.gt => 45
173
+ @ability.can?(:read, obj).should == true
174
+ MongoidProject.accessible_by(@ability, :read).should == [obj]
175
+
176
+ obj2 = MongoidProject.create(:age => 40)
177
+ @ability.can?(:read, obj2).should == false
178
+ end
179
+
180
+ it "handles instance not saved to database" do
181
+ obj = MongoidProject.new(:title => 'Sir')
182
+ @ability.can :read, :mongoid_projects, :title.in => ["Sir", "Madam"]
183
+ @ability.can?(:read, obj).should == true
184
+
185
+ # accessible_by only returns saved records
186
+ MongoidProject.accessible_by(@ability, :read).entries.should == []
187
+
188
+ obj2 = MongoidProject.new(:title => 'Lord')
189
+ @ability.can?(:read, obj2).should == false
190
+ end
191
+ end
192
+
193
+ it "calls where with matching ability conditions" do
194
+ obj = MongoidProject.create(:foo => {:bar => 1})
195
+ @ability.can :read, :mongoid_projects, :foo => {:bar => 1}
196
+ MongoidProject.accessible_by(@ability, :read).entries.first.should == obj
197
+ end
198
+
199
+ it "excludes from the result if set to cannot" do
200
+ obj = MongoidProject.create(:bar => 1)
201
+ obj2 = MongoidProject.create(:bar => 2)
202
+ @ability.can :read, :mongoid_projects
203
+ @ability.cannot :read, :mongoid_projects, :bar => 2
204
+ MongoidProject.accessible_by(@ability, :read).entries.should == [obj]
205
+ end
206
+
207
+ it "combines the rules" do
208
+ obj = MongoidProject.create(:bar => 1)
209
+ obj2 = MongoidProject.create(:bar => 2)
210
+ obj3 = MongoidProject.create(:bar => 3)
211
+ @ability.can :read, :mongoid_projects, :bar => 1
212
+ @ability.can :read, :mongoid_projects, :bar => 2
213
+ MongoidProject.accessible_by(@ability, :read).entries.should =~ [obj, obj2]
214
+ end
215
+
216
+ it "does not allow to fetch records when ability with just block present" do
217
+ @ability.can :read, :mongoid_projects do
218
+ false
219
+ end
220
+ lambda {
221
+ MongoidProject.accessible_by(@ability)
222
+ }.should raise_error(CanCan::Error)
223
+ end
224
+ end
225
+ end
226
+ end
@@ -0,0 +1,55 @@
1
+ require "spec_helper"
2
+ require "ostruct" # for OpenStruct below
3
+
4
+ # Most of Rule functionality is tested in Ability specs
5
+ describe CanCan::Rule do
6
+ before(:each) do
7
+ @conditions = {}
8
+ @rule = CanCan::Rule.new(true, :read, :integers, @conditions)
9
+ end
10
+
11
+ it "returns no association joins if none exist" do
12
+ @rule.associations_hash.should == {}
13
+ end
14
+
15
+ it "returns no association for joins if just attributes" do
16
+ @conditions[:foo] = :bar
17
+ @rule.associations_hash.should == {}
18
+ end
19
+
20
+ it "returns single association for joins" do
21
+ @conditions[:foo] = {:bar => 1}
22
+ @rule.associations_hash.should == {:foo => {}}
23
+ end
24
+
25
+ it "returns multiple associations for joins" do
26
+ @conditions[:foo] = {:bar => 1}
27
+ @conditions[:test] = {1 => 2}
28
+ @rule.associations_hash.should == {:foo => {}, :test => {}}
29
+ end
30
+
31
+ it "returns nested associations for joins" do
32
+ @conditions[:foo] = {:bar => {1 => 2}}
33
+ @rule.associations_hash.should == {:foo => {:bar => {}}}
34
+ end
35
+
36
+ it "returns no association joins if conditions is nil" do
37
+ rule = CanCan::Rule.new(true, :read, :integers)
38
+ rule.associations_hash.should == {}
39
+ end
40
+
41
+ it "has higher specificity for attributes/conditions" do
42
+ CanCan::Rule.new(true, :read, :integers).specificity.should eq(1)
43
+ CanCan::Rule.new(true, :read, :integers, :foo => :bar).specificity.should eq(2)
44
+ CanCan::Rule.new(true, :read, :integers, :foo).specificity.should eq(2)
45
+ CanCan::Rule.new(false, :read, :integers).specificity.should eq(3)
46
+ CanCan::Rule.new(false, :read, :integers, :foo => :bar).specificity.should eq(4)
47
+ CanCan::Rule.new(false, :read, :integers, :foo).specificity.should eq(4)
48
+ end
49
+
50
+ it "should not be mergeable if conditions are not simple hashes" do
51
+ meta_where = OpenStruct.new(:name => 'metawhere', :column => 'test')
52
+ @conditions[meta_where] = :bar
53
+ @rule.should be_unmergeable
54
+ end
55
+ end
@@ -0,0 +1,13 @@
1
+ RSpec::Matchers.define :orderlessly_match do |original_string|
2
+ match do |given_string|
3
+ original_string.split('').sort == given_string.split('').sort
4
+ end
5
+
6
+ failure_message_for_should do |given_string|
7
+ "expected \"#{given_string}\" to have the same characters as \"#{original_string}\""
8
+ end
9
+
10
+ failure_message_for_should_not do |given_string|
11
+ "expected \"#{given_string}\" not to have the same characters as \"#{original_string}\""
12
+ end
13
+ end
@@ -0,0 +1,49 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+
4
+ require "sqlite3"
5
+ require "active_record"
6
+
7
+ case ENV["MODEL_ADAPTER"]
8
+ when "data_mapper"
9
+ require "dm-core"
10
+ require "dm-sqlite-adapter"
11
+ require "dm-migrations"
12
+ when "mongoid"
13
+ require "mongoid"
14
+ end
15
+
16
+ require 'active_support/all'
17
+ require 'matchers'
18
+ require 'cancan'
19
+ require 'cancan/matchers'
20
+
21
+ RSpec.configure do |config|
22
+ config.treat_symbols_as_metadata_keys_with_true_values = true
23
+ config.filter_run :focus => true
24
+ config.run_all_when_everything_filtered = true
25
+ end
26
+
27
+ class Ability
28
+ include CanCan::Ability
29
+
30
+ def initialize(user)
31
+ end
32
+ end
33
+
34
+ ActiveRecord::Base.establish_connection(:adapter => "sqlite3", :database => ":memory:")
35
+
36
+ class Category < ActiveRecord::Base
37
+ connection.create_table(table_name) do |t|
38
+ t.boolean :visible
39
+ end
40
+ has_many :projects
41
+ end
42
+
43
+ class Project < ActiveRecord::Base
44
+ connection.create_table(table_name) do |t|
45
+ t.integer :category_id
46
+ t.string :name
47
+ end
48
+ belongs_to :category
49
+ end
metadata ADDED
@@ -0,0 +1,194 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: culturecode-cancan
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.0.alpha
5
+ platform: ruby
6
+ authors:
7
+ - Ryan Bates
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-07-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 2.9.0
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 2.9.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 3.2.6
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 3.2.6
41
+ - !ruby/object:Gem::Dependency
42
+ name: sqlite3
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 1.3.5
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 1.3.5
55
+ - !ruby/object:Gem::Dependency
56
+ name: dm-core
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.2.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 1.2.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: dm-sqlite-adapter
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 1.2.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 1.2.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: dm-migrations
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.2.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.2.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: mongoid
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 2.4.8
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 2.4.8
111
+ - !ruby/object:Gem::Dependency
112
+ name: bson_ext
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 1.6.2
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 1.6.2
125
+ description: Simple authorization solution for Rails which is decoupled from user
126
+ roles. All permissions are stored in a single location.
127
+ email: ryan@railscasts.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - CHANGELOG.rdoc
133
+ - Gemfile
134
+ - LICENSE
135
+ - README.rdoc
136
+ - Rakefile
137
+ - init.rb
138
+ - lib/cancan.rb
139
+ - lib/cancan/ability.rb
140
+ - lib/cancan/controller_additions.rb
141
+ - lib/cancan/controller_resource.rb
142
+ - lib/cancan/exceptions.rb
143
+ - lib/cancan/inherited_resource.rb
144
+ - lib/cancan/matchers.rb
145
+ - lib/cancan/model_adapters/abstract_adapter.rb
146
+ - lib/cancan/model_adapters/active_record_adapter.rb
147
+ - lib/cancan/model_adapters/data_mapper_adapter.rb
148
+ - lib/cancan/model_adapters/default_adapter.rb
149
+ - lib/cancan/model_adapters/mongoid_adapter.rb
150
+ - lib/cancan/model_additions.rb
151
+ - lib/cancan/rule.rb
152
+ - lib/generators/cancan/ability/USAGE
153
+ - lib/generators/cancan/ability/ability_generator.rb
154
+ - lib/generators/cancan/ability/templates/ability.rb
155
+ - lib/generators/cancan/ability/templates/ability_spec.rb
156
+ - lib/generators/cancan/ability/templates/ability_test.rb
157
+ - spec/README.rdoc
158
+ - spec/cancan/ability_spec.rb
159
+ - spec/cancan/controller_additions_spec.rb
160
+ - spec/cancan/controller_resource_spec.rb
161
+ - spec/cancan/exceptions_spec.rb
162
+ - spec/cancan/inherited_resource_spec.rb
163
+ - spec/cancan/matchers_spec.rb
164
+ - spec/cancan/model_adapters/active_record_adapter_spec.rb
165
+ - spec/cancan/model_adapters/data_mapper_adapter_spec.rb
166
+ - spec/cancan/model_adapters/default_adapter_spec.rb
167
+ - spec/cancan/model_adapters/mongoid_adapter_spec.rb
168
+ - spec/cancan/rule_spec.rb
169
+ - spec/matchers.rb
170
+ - spec/spec_helper.rb
171
+ homepage: http://github.com/ryanb/cancan
172
+ licenses: []
173
+ metadata: {}
174
+ post_install_message:
175
+ rdoc_options: []
176
+ require_paths:
177
+ - lib
178
+ required_ruby_version: !ruby/object:Gem::Requirement
179
+ requirements:
180
+ - - ">="
181
+ - !ruby/object:Gem::Version
182
+ version: '0'
183
+ required_rubygems_version: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: 1.3.4
188
+ requirements: []
189
+ rubyforge_project: culturecode-cancan
190
+ rubygems_version: 2.2.2
191
+ signing_key:
192
+ specification_version: 4
193
+ summary: Simple authorization solution for Rails.
194
+ test_files: []