cantango 0.8.6 → 0.8.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/README.textile +7 -33
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/cantango.gemspec +6 -5
- data/lib/cantango/permits/macros.rb +2 -2
- data/lib/generators/cantango/install/templates/permissions.yml +2 -0
- data/spec/generators/cantango/account_role_permit_generator_spec.rb +3 -3
- data/spec/generators/cantango/account_role_permits_generator_spec.rb +13 -13
- data/spec/generators/cantango/install_generator_spec.rb +42 -0
- data/spec/generators/cantango/license_generator_spec.rb +3 -3
- data/spec/generators/cantango/licenses_generator_spec.rb +3 -3
- data/spec/generators/cantango/role_permit_generator_spec.rb +4 -4
- data/spec/generators/cantango/role_permits_generator_spec.rb +6 -6
- metadata +43 -42
data/Gemfile
CHANGED
@@ -5,7 +5,6 @@ group :default do
|
|
5
5
|
gem 'cancan', '>= 1.4'
|
6
6
|
gem 'sugar-high', '>= 0.6.0'
|
7
7
|
gem 'sweetloader', '~> 0.1.0'
|
8
|
-
gem 'sqlite3'
|
9
8
|
gem 'hashie', '>= 0.4'
|
10
9
|
|
11
10
|
# adapters
|
@@ -52,6 +51,7 @@ group :development, :test do
|
|
52
51
|
gem "rspec-rails", '>= 2.6.1' # needed in development to expose the rails generators
|
53
52
|
gem 'forgery', '>= 0.3' # needed in development when using rake db:seed
|
54
53
|
gem 'factory_girl'
|
54
|
+
gem 'sqlite3'
|
55
55
|
|
56
56
|
# Adapters
|
57
57
|
gem 'sourcify'
|
data/README.textile
CHANGED
@@ -35,19 +35,18 @@ Run bundler in a terminal/console from the folder of your Gemfile (root folder o
|
|
35
35
|
|
36
36
|
@$ bundle@
|
37
37
|
|
38
|
-
h2. Update Sept
|
38
|
+
h2. Update Sept 20, 2011
|
39
39
|
|
40
|
-
Version *0.8.
|
40
|
+
Version *0.8.6* has been released.
|
41
41
|
|
42
42
|
CanTango now:
|
43
43
|
|
44
44
|
* supports "sugar-high 0.6":https://github.com/kristianmandrup/sugar-high.
|
45
45
|
* The ability cache has been refactored
|
46
|
-
*
|
46
|
+
* Engines can now be mounted/unmounted, activated/deactivated and the execution order specified
|
47
47
|
* The ability cache rules compiler (for dynamic rules caching) and Moneta cache/store are now optional (enabled via adapters)
|
48
|
-
* Permits are
|
49
|
-
|
50
|
-
The wiki will soon be updated to reflect these improvements and changes.
|
48
|
+
* Permits are loaded using pre-registration of permit classes either via inheritance or use of the _tango_permit_ macro.
|
49
|
+
* Enhanced Permits debugging. Easily track which permits granted or declined certain abilities
|
51
50
|
|
52
51
|
h2. Quickstart
|
53
52
|
|
@@ -75,7 +74,7 @@ The CanTango "Configuration":https://github.com/kristianmandrup/cantango/wiki/Co
|
|
75
74
|
|
76
75
|
h3. Abilities via Permits and Permissions
|
77
76
|
|
78
|
-
Abilities are Access Control rules. With CanTango,
|
77
|
+
Abilities are Access Control rules. With CanTango, the AC rules can be defined in both:
|
79
78
|
|
80
79
|
* "Permissions":https://github.com/kristianmandrup/cantango/wiki/Permissions (fx a yaml file)
|
81
80
|
* "Permits":https://github.com/kristianmandrup/cantango/wiki/Permits (special classes)
|
@@ -92,32 +91,7 @@ Abilities can be defined for the following conceptual entities:
|
|
92
91
|
|
93
92
|
h3. Debugging Abilities and Permits
|
94
93
|
|
95
|
-
|
96
|
-
|
97
|
-
Debugging Example:
|
98
|
-
|
99
|
-
<pre>
|
100
|
-
# First you must enable debug mode
|
101
|
-
CanTango.debug!
|
102
|
-
|
103
|
-
# And have the permit engine execute at least once
|
104
|
-
user_can? :read, Article
|
105
|
-
|
106
|
-
# Then you can debug the permits execution
|
107
|
-
CanTango.permits_allowed current_user, :read, Article
|
108
|
-
|
109
|
-
admin_can? :read, Article
|
110
|
-
CanTango.permits_denied admin_user, :publish, [Article, Post]
|
111
|
-
CanTango.permits_allowed admin_user, :write, Article
|
112
|
-
|
113
|
-
CanTango.clear_executed_permits! # reset as if no permits have been executed
|
114
|
-
|
115
|
-
user_can? :publish, Article
|
116
|
-
CanTango.permits_denied current_user, [:write, publish], [Article, Post]
|
117
|
-
|
118
|
-
guest_account_can? :publish, Article
|
119
|
-
CanTango.permits_denied guest_account, :publish, [Article, Post], options
|
120
|
-
</pre>
|
94
|
+
See [[Debugging permits]]
|
121
95
|
|
122
96
|
h3. Design overview
|
123
97
|
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.6
|
1
|
+
0.8.6.1
|
data/cantango.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "cantango"
|
8
|
-
s.version = "0.8.6"
|
8
|
+
s.version = "0.8.6.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kristian Mandrup", "Stanislaw Pankevich"]
|
12
|
-
s.date = "2011-09-
|
12
|
+
s.date = "2011-09-27"
|
13
13
|
s.description = "Define your permission rules as role- or role group specific permits.\nIntegrates well with multiple Devise user acounts.\nIncludes rules caching.\nStore permissions in yaml file or key-value store"
|
14
14
|
s.email = "kmandrup@gmail.com, s.pankevich@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -577,6 +577,7 @@ Gem::Specification.new do |s|
|
|
577
577
|
"spec/fixtures/tango_fixtures.rb",
|
578
578
|
"spec/generators/cantango/account_role_permit_generator_spec.rb",
|
579
579
|
"spec/generators/cantango/account_role_permits_generator_spec.rb",
|
580
|
+
"spec/generators/cantango/install_generator_spec.rb",
|
580
581
|
"spec/generators/cantango/license_generator_spec.rb",
|
581
582
|
"spec/generators/cantango/licenses_generator_spec.rb",
|
582
583
|
"spec/generators/cantango/role_permit_generator_spec.rb",
|
@@ -646,11 +647,11 @@ Gem::Specification.new do |s|
|
|
646
647
|
s.add_runtime_dependency(%q<cancan>, [">= 1.4"])
|
647
648
|
s.add_runtime_dependency(%q<sugar-high>, [">= 0.6.0"])
|
648
649
|
s.add_runtime_dependency(%q<sweetloader>, ["~> 0.1.0"])
|
649
|
-
s.add_runtime_dependency(%q<sqlite3>, [">= 0"])
|
650
650
|
s.add_runtime_dependency(%q<hashie>, [">= 0.4"])
|
651
651
|
s.add_development_dependency(%q<rspec-rails>, [">= 2.6.1"])
|
652
652
|
s.add_development_dependency(%q<forgery>, [">= 0.3"])
|
653
653
|
s.add_development_dependency(%q<factory_girl>, [">= 0"])
|
654
|
+
s.add_development_dependency(%q<sqlite3>, [">= 0"])
|
654
655
|
s.add_development_dependency(%q<sourcify>, [">= 0"])
|
655
656
|
s.add_development_dependency(%q<dkastner-moneta>, [">= 1.0"])
|
656
657
|
s.add_development_dependency(%q<rspec>, [">= 2.4.0"])
|
@@ -662,11 +663,11 @@ Gem::Specification.new do |s|
|
|
662
663
|
s.add_dependency(%q<cancan>, [">= 1.4"])
|
663
664
|
s.add_dependency(%q<sugar-high>, [">= 0.6.0"])
|
664
665
|
s.add_dependency(%q<sweetloader>, ["~> 0.1.0"])
|
665
|
-
s.add_dependency(%q<sqlite3>, [">= 0"])
|
666
666
|
s.add_dependency(%q<hashie>, [">= 0.4"])
|
667
667
|
s.add_dependency(%q<rspec-rails>, [">= 2.6.1"])
|
668
668
|
s.add_dependency(%q<forgery>, [">= 0.3"])
|
669
669
|
s.add_dependency(%q<factory_girl>, [">= 0"])
|
670
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
670
671
|
s.add_dependency(%q<sourcify>, [">= 0"])
|
671
672
|
s.add_dependency(%q<dkastner-moneta>, [">= 1.0"])
|
672
673
|
s.add_dependency(%q<rspec>, [">= 2.4.0"])
|
@@ -679,11 +680,11 @@ Gem::Specification.new do |s|
|
|
679
680
|
s.add_dependency(%q<cancan>, [">= 1.4"])
|
680
681
|
s.add_dependency(%q<sugar-high>, [">= 0.6.0"])
|
681
682
|
s.add_dependency(%q<sweetloader>, ["~> 0.1.0"])
|
682
|
-
s.add_dependency(%q<sqlite3>, [">= 0"])
|
683
683
|
s.add_dependency(%q<hashie>, [">= 0.4"])
|
684
684
|
s.add_dependency(%q<rspec-rails>, [">= 2.6.1"])
|
685
685
|
s.add_dependency(%q<forgery>, [">= 0.3"])
|
686
686
|
s.add_dependency(%q<factory_girl>, [">= 0"])
|
687
|
+
s.add_dependency(%q<sqlite3>, [">= 0"])
|
687
688
|
s.add_dependency(%q<sourcify>, [">= 0"])
|
688
689
|
s.add_dependency(%q<dkastner-moneta>, [">= 1.0"])
|
689
690
|
s.add_dependency(%q<rspec>, [">= 2.4.0"])
|
@@ -1,9 +1,9 @@
|
|
1
1
|
class Module
|
2
2
|
def tango_permit options = {}
|
3
|
-
name_from_class_name = CanTango::
|
3
|
+
name_from_class_name = CanTango::Permit.first_name self.to_s.split("::").last
|
4
4
|
name = options[:name] || name_from_class_name
|
5
5
|
|
6
|
-
account_from_class_name = CanTango::
|
6
|
+
account_from_class_name = CanTango::Permit.first_name self.to_s.split("::").first if (self.to_s.split("::").size > 1)
|
7
7
|
account = options[:account] || account_from_class_name
|
8
8
|
|
9
9
|
type = options[:type] || self.superclass.type
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'spec_helper'
|
1
|
+
require 'spec_helper'
|
2
2
|
require 'generator-spec'
|
3
3
|
|
4
4
|
require_generator :cantango => :role_permit
|
@@ -12,11 +12,11 @@ RSpec::Generator.configure do |config|
|
|
12
12
|
end
|
13
13
|
|
14
14
|
|
15
|
-
describe
|
15
|
+
describe Cantango::Generators::RolePermitGenerator do
|
16
16
|
use_helpers :special, :file
|
17
17
|
|
18
18
|
setup_generator :permit do
|
19
|
-
tests
|
19
|
+
tests Cantango::Generators::RolePermitGenerator
|
20
20
|
end
|
21
21
|
|
22
22
|
describe 'Run Permit generator' do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'spec_helper'
|
1
|
+
require 'spec_helper'
|
2
2
|
require 'generator-spec'
|
3
3
|
|
4
4
|
require_generator :cantango => :role_permits
|
@@ -6,22 +6,22 @@ require_generator :cantango => :role_permits
|
|
6
6
|
RSpec::Generator.configure do |config|
|
7
7
|
config.debug = true
|
8
8
|
config.remove_temp_dir = true #false
|
9
|
-
config.default_rails_root(__FILE__)
|
9
|
+
config.default_rails_root(__FILE__)
|
10
10
|
config.lib = File.dirname(__FILE__) + '/../lib'
|
11
11
|
config.logger = :stdout # :file
|
12
12
|
end
|
13
13
|
|
14
14
|
|
15
|
-
describe
|
15
|
+
describe Cantango::Generators::RolePermitsGenerator do
|
16
16
|
use_helpers :controller, :special, :file
|
17
17
|
|
18
18
|
setup_generator :permits do
|
19
|
-
tests
|
19
|
+
tests Cantango::Generators::RolePermitsGenerator
|
20
20
|
end
|
21
21
|
|
22
22
|
describe 'result of running generator with default profile' do
|
23
23
|
before :each do
|
24
|
-
@generator = with_generator do |g|
|
24
|
+
@generator = with_generator do |g|
|
25
25
|
g.run_generator "--orm mongoid --account editor".args
|
26
26
|
end
|
27
27
|
end
|
@@ -31,29 +31,29 @@ describe CanTango::Generators::RolePermitsGenerator do
|
|
31
31
|
@generator.should generate_permit :admin
|
32
32
|
end
|
33
33
|
|
34
|
-
it "should generate a permits initializer file with orm set to mongoid" do
|
34
|
+
it "should generate a permits initializer file with orm set to mongoid" do
|
35
35
|
File.read(initializer_file(:cantango)).should match /config.orm = :mongoid/
|
36
|
-
end
|
36
|
+
end
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
40
|
describe 'result of running generator with option to create permit for each registered role' do
|
41
41
|
context "Registered roles :editor, :admin" do
|
42
42
|
before :each do
|
43
|
-
@generator = with_generator do |g|
|
43
|
+
@generator = with_generator do |g|
|
44
44
|
g.run_generator "admin editor".args
|
45
45
|
end
|
46
46
|
end
|
47
|
-
|
47
|
+
|
48
48
|
it "should have created Guest and Admin permits" do
|
49
49
|
@generator.should have_permit_files :guest, :admin
|
50
50
|
end
|
51
|
-
|
52
|
-
it "should have created the Editor permit for the :editor role and the permit should not use licenses" do
|
51
|
+
|
52
|
+
it "should have created the Editor permit for the :editor role and the permit should not use licenses" do
|
53
53
|
@generator.should have_permit_file :editor do |editor_permit|
|
54
|
-
editor_permit.should_not have_licenses :user_admin, :blogging
|
54
|
+
editor_permit.should_not have_licenses :user_admin, :blogging
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end #ctx
|
58
|
-
end
|
58
|
+
end
|
59
59
|
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'generator-spec'
|
3
|
+
|
4
|
+
# require 'generators/cantango/install/install_generator'
|
5
|
+
|
6
|
+
require_generator :cantango => :install
|
7
|
+
|
8
|
+
RSpec::Generator.configure do |config|
|
9
|
+
config.debug = true
|
10
|
+
config.remove_temp_dir = false
|
11
|
+
config.default_rails_root(__FILE__)
|
12
|
+
config.lib = File.dirname(__FILE__) + '/../lib'
|
13
|
+
config.logger = :stdout # :file
|
14
|
+
end
|
15
|
+
|
16
|
+
|
17
|
+
describe Cantango::Generators::InstallGenerator do
|
18
|
+
use_helpers :special, :file
|
19
|
+
|
20
|
+
setup_generator :permit do
|
21
|
+
tests Cantango::Generators::InstallGenerator
|
22
|
+
end
|
23
|
+
|
24
|
+
describe 'Run Install generator' do
|
25
|
+
before :each do
|
26
|
+
@gen_result = with_generator do |g|
|
27
|
+
g.run_generator
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
describe 'result of running Install generator' do
|
32
|
+
it "should create config files" do
|
33
|
+
@gen_result.should have_initializer_file :cantango do |file|
|
34
|
+
file.should have_content /engines/
|
35
|
+
end
|
36
|
+
@gen_result.should have_config_file :categories
|
37
|
+
@gen_result.should have_config_file :permissions
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'spec_helper'
|
1
|
+
require 'spec_helper'
|
2
2
|
require 'generator-spec'
|
3
3
|
|
4
4
|
require_generator :cantango => :license
|
@@ -6,13 +6,13 @@ require_generator :cantango => :license
|
|
6
6
|
RSpec::Generator.configure do |config|
|
7
7
|
config.debug = true
|
8
8
|
config.remove_temp_dir = true #false
|
9
|
-
config.default_rails_root(__FILE__)
|
9
|
+
config.default_rails_root(__FILE__)
|
10
10
|
config.lib = File.dirname(__FILE__) + '/../lib'
|
11
11
|
config.logger = :stdout # :file
|
12
12
|
end
|
13
13
|
|
14
14
|
|
15
|
-
describe
|
15
|
+
describe Cantango::Generators::LicenseGenerator do
|
16
16
|
use_helpers :special, :file
|
17
17
|
|
18
18
|
setup_generator :license do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'spec_helper'
|
1
|
+
require 'spec_helper'
|
2
2
|
require 'generator-spec'
|
3
3
|
|
4
4
|
require_generator :cantango => :licenses
|
@@ -12,11 +12,11 @@ RSpec::Generator.configure do |config|
|
|
12
12
|
end
|
13
13
|
|
14
14
|
|
15
|
-
describe
|
15
|
+
describe Cantango::Generators::LicensesGenerator do
|
16
16
|
use_helpers :controller, :special, :file
|
17
17
|
|
18
18
|
setup_generator :licenses do
|
19
|
-
tests
|
19
|
+
tests Cantango::Generators::LicensesGenerator
|
20
20
|
end
|
21
21
|
|
22
22
|
describe "Licenses: Profile Administration and Article Editing" do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'spec_helper'
|
1
|
+
require 'spec_helper'
|
2
2
|
require 'generator-spec'
|
3
3
|
|
4
4
|
require_generator :cantango => :role_permit
|
@@ -6,17 +6,17 @@ require_generator :cantango => :role_permit
|
|
6
6
|
RSpec::Generator.configure do |config|
|
7
7
|
config.debug = true
|
8
8
|
config.remove_temp_dir = true #false
|
9
|
-
config.default_rails_root(__FILE__)
|
9
|
+
config.default_rails_root(__FILE__)
|
10
10
|
config.lib = File.dirname(__FILE__) + '/../lib'
|
11
11
|
config.logger = :stdout # :file
|
12
12
|
end
|
13
13
|
|
14
14
|
|
15
|
-
describe
|
15
|
+
describe Cantango::Generators::RolePermitGenerator do
|
16
16
|
use_helpers :special, :file
|
17
17
|
|
18
18
|
setup_generator :permit do
|
19
|
-
tests
|
19
|
+
tests Cantango::Generators::RolePermitGenerator
|
20
20
|
end
|
21
21
|
|
22
22
|
describe 'Run Permit generator' do
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'spec_helper'
|
1
|
+
require 'spec_helper'
|
2
2
|
require 'generator-spec'
|
3
3
|
|
4
4
|
require_generator :cantango => :role_permits
|
@@ -12,10 +12,10 @@ RSpec::Generator.configure do |config|
|
|
12
12
|
end
|
13
13
|
|
14
14
|
|
15
|
-
describe
|
15
|
+
describe Cantango::Generators::RolePermitsGenerator do
|
16
16
|
use_helpers :controller, :special, :file
|
17
17
|
setup_generator :permits do
|
18
|
-
tests
|
18
|
+
tests Cantango::Generators::RolePermitsGenerator
|
19
19
|
end
|
20
20
|
|
21
21
|
describe 'result of running generator with default profile' do
|
@@ -43,16 +43,16 @@ describe CanTango::Generators::RolePermitsGenerator do
|
|
43
43
|
g.run_generator "admin editor".args
|
44
44
|
end
|
45
45
|
end
|
46
|
-
|
46
|
+
|
47
47
|
it "should have created Guest and Admin permits" do
|
48
48
|
@generator.should have_permit_files :guest, :admin
|
49
49
|
end
|
50
|
-
|
50
|
+
|
51
51
|
it "should have created the Editor permit for the :editor role and the permit should not use licenses" do
|
52
52
|
@generator.should have_permit_file :editor do |editor_permit|
|
53
53
|
editor_permit.should_not have_licenses :user_admin, :blogging
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end #ctx
|
57
|
-
end
|
57
|
+
end
|
58
58
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cantango
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.6
|
4
|
+
version: 0.8.6.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-09-
|
13
|
+
date: 2011-09-27 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
17
|
-
requirement: &
|
17
|
+
requirement: &2159452280 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.0.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2159452280
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: cancan
|
28
|
-
requirement: &
|
28
|
+
requirement: &2159451800 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '1.4'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2159451800
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: sugar-high
|
39
|
-
requirement: &
|
39
|
+
requirement: &2159451320 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ! '>='
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: 0.6.0
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2159451320
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: sweetloader
|
50
|
-
requirement: &
|
50
|
+
requirement: &2159450840 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
@@ -55,21 +55,10 @@ dependencies:
|
|
55
55
|
version: 0.1.0
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: sqlite3
|
61
|
-
requirement: &2158749860 !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
|
-
requirements:
|
64
|
-
- - ! '>='
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: '0'
|
67
|
-
type: :runtime
|
68
|
-
prerelease: false
|
69
|
-
version_requirements: *2158749860
|
58
|
+
version_requirements: *2159450840
|
70
59
|
- !ruby/object:Gem::Dependency
|
71
60
|
name: hashie
|
72
|
-
requirement: &
|
61
|
+
requirement: &2159450360 !ruby/object:Gem::Requirement
|
73
62
|
none: false
|
74
63
|
requirements:
|
75
64
|
- - ! '>='
|
@@ -77,10 +66,10 @@ dependencies:
|
|
77
66
|
version: '0.4'
|
78
67
|
type: :runtime
|
79
68
|
prerelease: false
|
80
|
-
version_requirements: *
|
69
|
+
version_requirements: *2159450360
|
81
70
|
- !ruby/object:Gem::Dependency
|
82
71
|
name: rspec-rails
|
83
|
-
requirement: &
|
72
|
+
requirement: &2159449880 !ruby/object:Gem::Requirement
|
84
73
|
none: false
|
85
74
|
requirements:
|
86
75
|
- - ! '>='
|
@@ -88,10 +77,10 @@ dependencies:
|
|
88
77
|
version: 2.6.1
|
89
78
|
type: :development
|
90
79
|
prerelease: false
|
91
|
-
version_requirements: *
|
80
|
+
version_requirements: *2159449880
|
92
81
|
- !ruby/object:Gem::Dependency
|
93
82
|
name: forgery
|
94
|
-
requirement: &
|
83
|
+
requirement: &2159449400 !ruby/object:Gem::Requirement
|
95
84
|
none: false
|
96
85
|
requirements:
|
97
86
|
- - ! '>='
|
@@ -99,10 +88,21 @@ dependencies:
|
|
99
88
|
version: '0.3'
|
100
89
|
type: :development
|
101
90
|
prerelease: false
|
102
|
-
version_requirements: *
|
91
|
+
version_requirements: *2159449400
|
103
92
|
- !ruby/object:Gem::Dependency
|
104
93
|
name: factory_girl
|
105
|
-
requirement: &
|
94
|
+
requirement: &2159448920 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ! '>='
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
type: :development
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *2159448920
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: sqlite3
|
105
|
+
requirement: &2159448440 !ruby/object:Gem::Requirement
|
106
106
|
none: false
|
107
107
|
requirements:
|
108
108
|
- - ! '>='
|
@@ -110,10 +110,10 @@ dependencies:
|
|
110
110
|
version: '0'
|
111
111
|
type: :development
|
112
112
|
prerelease: false
|
113
|
-
version_requirements: *
|
113
|
+
version_requirements: *2159448440
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
115
|
name: sourcify
|
116
|
-
requirement: &
|
116
|
+
requirement: &2159447960 !ruby/object:Gem::Requirement
|
117
117
|
none: false
|
118
118
|
requirements:
|
119
119
|
- - ! '>='
|
@@ -121,10 +121,10 @@ dependencies:
|
|
121
121
|
version: '0'
|
122
122
|
type: :development
|
123
123
|
prerelease: false
|
124
|
-
version_requirements: *
|
124
|
+
version_requirements: *2159447960
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: dkastner-moneta
|
127
|
-
requirement: &
|
127
|
+
requirement: &2159447480 !ruby/object:Gem::Requirement
|
128
128
|
none: false
|
129
129
|
requirements:
|
130
130
|
- - ! '>='
|
@@ -132,10 +132,10 @@ dependencies:
|
|
132
132
|
version: '1.0'
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
|
-
version_requirements: *
|
135
|
+
version_requirements: *2159447480
|
136
136
|
- !ruby/object:Gem::Dependency
|
137
137
|
name: rspec
|
138
|
-
requirement: &
|
138
|
+
requirement: &2159447000 !ruby/object:Gem::Requirement
|
139
139
|
none: false
|
140
140
|
requirements:
|
141
141
|
- - ! '>='
|
@@ -143,10 +143,10 @@ dependencies:
|
|
143
143
|
version: 2.4.0
|
144
144
|
type: :development
|
145
145
|
prerelease: false
|
146
|
-
version_requirements: *
|
146
|
+
version_requirements: *2159447000
|
147
147
|
- !ruby/object:Gem::Dependency
|
148
148
|
name: jeweler
|
149
|
-
requirement: &
|
149
|
+
requirement: &2159446520 !ruby/object:Gem::Requirement
|
150
150
|
none: false
|
151
151
|
requirements:
|
152
152
|
- - ! '>='
|
@@ -154,10 +154,10 @@ dependencies:
|
|
154
154
|
version: 1.6.4
|
155
155
|
type: :development
|
156
156
|
prerelease: false
|
157
|
-
version_requirements: *
|
157
|
+
version_requirements: *2159446520
|
158
158
|
- !ruby/object:Gem::Dependency
|
159
159
|
name: bundler
|
160
|
-
requirement: &
|
160
|
+
requirement: &2159446040 !ruby/object:Gem::Requirement
|
161
161
|
none: false
|
162
162
|
requirements:
|
163
163
|
- - ! '>='
|
@@ -165,10 +165,10 @@ dependencies:
|
|
165
165
|
version: 1.0.1
|
166
166
|
type: :development
|
167
167
|
prerelease: false
|
168
|
-
version_requirements: *
|
168
|
+
version_requirements: *2159446040
|
169
169
|
- !ruby/object:Gem::Dependency
|
170
170
|
name: rdoc
|
171
|
-
requirement: &
|
171
|
+
requirement: &2159445560 !ruby/object:Gem::Requirement
|
172
172
|
none: false
|
173
173
|
requirements:
|
174
174
|
- - ! '>='
|
@@ -176,7 +176,7 @@ dependencies:
|
|
176
176
|
version: '0'
|
177
177
|
type: :development
|
178
178
|
prerelease: false
|
179
|
-
version_requirements: *
|
179
|
+
version_requirements: *2159445560
|
180
180
|
description: ! 'Define your permission rules as role- or role group specific permits.
|
181
181
|
|
182
182
|
Integrates well with multiple Devise user acounts.
|
@@ -751,6 +751,7 @@ files:
|
|
751
751
|
- spec/fixtures/tango_fixtures.rb
|
752
752
|
- spec/generators/cantango/account_role_permit_generator_spec.rb
|
753
753
|
- spec/generators/cantango/account_role_permits_generator_spec.rb
|
754
|
+
- spec/generators/cantango/install_generator_spec.rb
|
754
755
|
- spec/generators/cantango/license_generator_spec.rb
|
755
756
|
- spec/generators/cantango/licenses_generator_spec.rb
|
756
757
|
- spec/generators/cantango/role_permit_generator_spec.rb
|
@@ -820,7 +821,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
820
821
|
version: '0'
|
821
822
|
segments:
|
822
823
|
- 0
|
823
|
-
hash: -
|
824
|
+
hash: -2761645409637514242
|
824
825
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
825
826
|
none: false
|
826
827
|
requirements:
|