simple_roles 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +21 -0
- data/Gemfile +2 -4
- data/README.md +100 -17
- data/Rakefile +6 -12
- data/db/migrate/001_create_user_roles.rb +5 -4
- data/db/migrate/002_create_roles.rb +6 -3
- data/lib/simple_roles/configuration.rb +64 -11
- data/lib/simple_roles/engine.rb +2 -0
- data/lib/simple_roles/macros.rb +2 -5
- data/lib/simple_roles/many/persistence.rb +44 -0
- data/lib/simple_roles/many/roles_methods.rb +88 -0
- data/lib/simple_roles/many.rb +5 -0
- data/lib/simple_roles/one/persistence.rb +13 -0
- data/lib/simple_roles/one/roles_methods.rb +38 -0
- data/lib/simple_roles/one.rb +5 -0
- data/lib/simple_roles/packager.rb +18 -0
- data/lib/simple_roles/version.rb +1 -1
- data/lib/simple_roles.rb +27 -12
- data/simple_roles.gemspec +36 -30
- data/spec/dummy/config/database.yml +2 -13
- data/spec/dummy/config/environments/development.rb +0 -3
- data/spec/dummy/config/initializers/simple_roles.rb +2 -1
- data/spec/integration/main_spec.rb +6 -6
- data/spec/integration/requests/main_spec.rb +16 -17
- data/spec/simple_roles/configuration_spec.rb +66 -0
- data/spec/simple_roles/integration_many_spec.rb +47 -0
- data/spec/simple_roles/macros_spec.rb +25 -10
- data/spec/{support/aliases.rb → simple_roles/many/persistence_spec.rb} +0 -0
- data/spec/simple_roles/many_spec.rb +186 -0
- data/spec/simple_roles/one_spec.rb +77 -0
- data/spec/spec_helper.rb +40 -21
- data/spec/support/controller_macros.rb +1 -18
- data/spec/support/database.yml +1 -1
- data/spec/support/factories.rb +6 -17
- data/spec/support/migrations/010_create_one_users.rb +16 -0
- data/spec/support/migrations/{010_create_users.rb → 011_create_users.rb} +3 -3
- data/spec/support/{fixtures/models → models}/.gitkeep +0 -0
- data/spec/support/models/one_user.rb +2 -0
- data/spec/support/{fixtures/models → models}/user.rb +0 -1
- data/spec/support/setup_roles.rb +5 -0
- data/spec/support/transaction.rb +30 -0
- data/spec/transaction_spec.rb +15 -0
- metadata +176 -137
- data/lib/simple_roles/base.rb +0 -111
- data/lib/simple_roles/roles_array.rb +0 -63
- data/spec/integration/messages_spec.rb +0 -62
- data/spec/simple_roles/base_spec.rb +0 -191
- data/spec/support/rspec_helpers.rb +0 -22
data/spec/spec_helper.rb
CHANGED
@@ -4,49 +4,68 @@ require 'rubygems'
|
|
4
4
|
ENV["RAILS_ENV"] ||= 'test'
|
5
5
|
|
6
6
|
#require File.expand_path("../dummy/config/environment", __FILE__)
|
7
|
+
require 'logger'
|
7
8
|
require 'require_all'
|
8
|
-
|
9
|
-
#require 'rails'
|
10
|
-
require 'active_record'
|
11
|
-
require 'active_model'
|
12
|
-
|
13
|
-
require 'simple_roles'
|
14
|
-
|
15
9
|
require 'cutter'
|
16
10
|
require 'sugar-high/dsl'
|
17
11
|
|
12
|
+
require 'active_record'
|
13
|
+
|
18
14
|
require 'rspec/core'
|
19
|
-
|
15
|
+
|
20
16
|
require 'factory_girl'
|
21
17
|
|
18
|
+
require 'simple_roles'
|
19
|
+
|
22
20
|
require_all File.expand_path('../support', __FILE__)
|
23
21
|
|
24
22
|
path = File.dirname(__FILE__) + '/support/database.yml'
|
23
|
+
|
25
24
|
dbfile = File.open(path)
|
26
25
|
dbconfig = YAML::load(dbfile)
|
27
26
|
ActiveRecord::Base.establish_connection(dbconfig)
|
28
27
|
|
29
|
-
|
28
|
+
class ActiveRecord::Base
|
29
|
+
mattr_accessor :shared_connection
|
30
|
+
@@shared_connection = nil
|
31
|
+
|
32
|
+
def self.connection
|
33
|
+
@@shared_connection || retrieve_connection
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
ActiveRecord::Base.shared_connection = ActiveRecord::Base.connection
|
38
|
+
|
39
|
+
# ActiveRecord::Base.logger = Logger.new(STDERR)
|
30
40
|
|
31
41
|
RSpec.configure do |config|
|
32
42
|
config.mock_with :rspec
|
33
|
-
|
34
|
-
config.include
|
43
|
+
|
44
|
+
config.include FactoryGirl::Syntax::Methods
|
35
45
|
|
36
46
|
config.before(:suite) do
|
37
47
|
with ActiveRecord::Base.connection do
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
48
|
+
# tables.each {|t| drop_table t }
|
49
|
+
|
50
|
+
# with ActiveRecord::Migrator do
|
51
|
+
# # SimpleRoles's own migrations
|
52
|
+
# migrate File.expand_path('../../db/migrate', __FILE__)
|
53
|
+
# # Helper migration - users table
|
54
|
+
# migrate File.expand_path('../support/migrations', __FILE__)
|
55
|
+
# end if tables.empty?
|
43
56
|
|
44
|
-
|
45
|
-
#
|
46
|
-
|
47
|
-
#
|
48
|
-
ActiveRecord::Migrator.migrate File.expand_path('../support/migrations', __FILE__)
|
57
|
+
# (tables - ['schema_migrations']).map do |table|
|
58
|
+
# table_count = execute("SELECT COUNT(*) FROM #{table}").first.first
|
59
|
+
# execute "TRUNCATE #{table}" unless table_count == 0
|
60
|
+
# end
|
49
61
|
end
|
62
|
+
end
|
63
|
+
|
64
|
+
config.before(:each) do
|
65
|
+
Transaction.start
|
66
|
+
end
|
50
67
|
|
68
|
+
config.after(:each) do
|
69
|
+
Transaction.clean
|
51
70
|
end
|
52
71
|
end
|
@@ -2,25 +2,8 @@ module ControllerMacros
|
|
2
2
|
def login_user
|
3
3
|
before(:each) do
|
4
4
|
@request.env["devise.mapping"] = :user
|
5
|
-
sign_in
|
5
|
+
sign_in create(:user)
|
6
6
|
end
|
7
7
|
end
|
8
|
-
|
9
|
-
def login_student
|
10
|
-
before(:each) do
|
11
|
-
@student = User.create!(:username => "AStudent", :email => "agb@yandex.ru", :middlename => "Sergeevna", :surname => "Bakhtiyarova", :name => "Galina", :password => "666666", :role => :student)
|
12
|
-
@request.env["devise.mapping"] = @student
|
13
|
-
sign_in @student
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
def login_curator
|
18
|
-
before(:each) do
|
19
|
-
@curator = User.create!(:username => "AStudent", :email => "agb@yandex.ru", :middlename => "Sergeevna", :surname => "Bakhtiyarova", :name => "Galina", :password => "666666", :role => :curator)
|
20
|
-
@request.env["devise.mapping"] = @curator
|
21
|
-
sign_in @curator
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
8
|
end
|
26
9
|
|
data/spec/support/database.yml
CHANGED
data/spec/support/factories.rb
CHANGED
@@ -1,22 +1,11 @@
|
|
1
|
-
=begin
|
2
|
-
FactoryGirl.define do
|
3
|
-
factory :first_message, :class => Carrier::Message do
|
4
|
-
sender 1
|
5
|
-
recipients [2, 3]
|
6
|
-
content "Hello!"
|
7
|
-
subject "FirstMessage"
|
8
|
-
association :chain, :factory => :chain
|
9
|
-
end
|
10
1
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
content "Hello you too!"
|
15
|
-
subject "SecondMessage"
|
16
|
-
association :chain, :factory => :chain
|
2
|
+
FactoryGirl.define do
|
3
|
+
factory :user, :class => User do
|
4
|
+
name 'stanislaw'
|
17
5
|
end
|
18
6
|
|
19
|
-
factory :
|
7
|
+
factory :one_user, :class => OneUser do
|
8
|
+
name 'stanislaw'
|
9
|
+
role = 'user'
|
20
10
|
end
|
21
11
|
end
|
22
|
-
=end
|
File without changes
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Stolen from Bmabey's database_cleaner gem for educational purposes ;)
|
2
|
+
|
3
|
+
module Transaction
|
4
|
+
class << self
|
5
|
+
def connection_klass
|
6
|
+
ActiveRecord::Base
|
7
|
+
end
|
8
|
+
|
9
|
+
def start
|
10
|
+
if connection_klass.connection.respond_to?(:increment_open_transactions)
|
11
|
+
connection_klass.connection.increment_open_transactions
|
12
|
+
else
|
13
|
+
connection_klass.__send__(:increment_open_transactions)
|
14
|
+
end
|
15
|
+
connection_klass.connection.begin_db_transaction
|
16
|
+
end
|
17
|
+
|
18
|
+
def clean
|
19
|
+
return unless connection_klass.connection.open_transactions > 0
|
20
|
+
|
21
|
+
connection_klass.connection.rollback_db_transaction
|
22
|
+
|
23
|
+
if connection_klass.connection.respond_to?(:decrement_open_transactions)
|
24
|
+
connection_klass.connection.decrement_open_transactions
|
25
|
+
else
|
26
|
+
connection_klass.__send__(:decrement_open_transactions)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "Transactions test" do
|
4
|
+
specify "We create some records" do
|
5
|
+
3.times do
|
6
|
+
create :one_user
|
7
|
+
create :user
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
specify "All tables must empty" do
|
12
|
+
OneUser.count.should == 0
|
13
|
+
User.count.should == 0
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,170 +1,201 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_roles
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.6
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.5
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- stanislaw
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-06-27 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: require_all
|
17
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements:
|
26
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
27
31
|
name: sugar-high
|
28
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
29
33
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
38
47
|
name: sweetloader
|
39
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
40
49
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version:
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
45
54
|
type: :runtime
|
46
55
|
prerelease: false
|
47
|
-
version_requirements:
|
48
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
49
63
|
name: activerecord
|
50
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
51
65
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version:
|
56
|
-
type: :
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :runtime
|
57
71
|
prerelease: false
|
58
|
-
version_requirements:
|
59
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
60
79
|
name: rake-kit
|
61
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
62
81
|
none: false
|
63
|
-
requirements:
|
64
|
-
- -
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version:
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
67
86
|
type: :development
|
68
87
|
prerelease: false
|
69
|
-
version_requirements:
|
70
|
-
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
71
95
|
name: devise
|
72
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
73
97
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version:
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
78
102
|
type: :development
|
79
103
|
prerelease: false
|
80
|
-
version_requirements:
|
81
|
-
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
82
111
|
name: mysql2
|
83
|
-
requirement:
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
84
113
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version:
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
89
118
|
type: :development
|
90
119
|
prerelease: false
|
91
|
-
version_requirements:
|
92
|
-
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
93
127
|
name: jeweler
|
94
|
-
requirement:
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
95
129
|
none: false
|
96
|
-
requirements:
|
97
|
-
- -
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
version:
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
100
134
|
type: :development
|
101
135
|
prerelease: false
|
102
|
-
version_requirements:
|
103
|
-
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
104
143
|
name: cutter
|
105
|
-
requirement:
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
106
145
|
none: false
|
107
|
-
requirements:
|
108
|
-
- -
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version:
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
111
150
|
type: :development
|
112
151
|
prerelease: false
|
113
|
-
version_requirements:
|
114
|
-
- !ruby/object:Gem::Dependency
|
115
|
-
name: rails
|
116
|
-
requirement: &id010 !ruby/object:Gem::Requirement
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
117
153
|
none: false
|
118
|
-
requirements:
|
119
|
-
- -
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
version:
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rspec-rails
|
127
|
-
requirement: &id011 !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: rspec
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
128
161
|
none: false
|
129
|
-
requirements:
|
130
|
-
- -
|
131
|
-
- !ruby/object:Gem::Version
|
132
|
-
version:
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
133
166
|
type: :development
|
134
167
|
prerelease: false
|
135
|
-
version_requirements:
|
136
|
-
- !ruby/object:Gem::Dependency
|
137
|
-
name: capybara
|
138
|
-
requirement: &id012 !ruby/object:Gem::Requirement
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
139
169
|
none: false
|
140
|
-
requirements:
|
141
|
-
- -
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
version:
|
144
|
-
|
145
|
-
prerelease: false
|
146
|
-
version_requirements: *id012
|
147
|
-
- !ruby/object:Gem::Dependency
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
- !ruby/object:Gem::Dependency
|
148
175
|
name: factory_girl
|
149
|
-
requirement:
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
150
177
|
none: false
|
151
|
-
requirements:
|
152
|
-
- -
|
153
|
-
- !ruby/object:Gem::Version
|
154
|
-
version:
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
155
182
|
type: :development
|
156
183
|
prerelease: false
|
157
|
-
version_requirements:
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ! '>='
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
158
190
|
description: Simple Role System for Rails Apps
|
159
191
|
email: s.pankevich@gmail.com
|
160
192
|
executables: []
|
161
|
-
|
162
193
|
extensions: []
|
163
|
-
|
164
|
-
extra_rdoc_files:
|
194
|
+
extra_rdoc_files:
|
165
195
|
- README.md
|
166
|
-
files:
|
196
|
+
files:
|
167
197
|
- .rspec
|
198
|
+
- CHANGELOG.md
|
168
199
|
- Gemfile
|
169
200
|
- MIT-LICENSE
|
170
201
|
- README.md
|
@@ -184,11 +215,16 @@ files:
|
|
184
215
|
- db/migrate/001_create_user_roles.rb
|
185
216
|
- db/migrate/002_create_roles.rb
|
186
217
|
- lib/simple_roles.rb
|
187
|
-
- lib/simple_roles/base.rb
|
188
218
|
- lib/simple_roles/configuration.rb
|
189
219
|
- lib/simple_roles/engine.rb
|
190
220
|
- lib/simple_roles/macros.rb
|
191
|
-
- lib/simple_roles/
|
221
|
+
- lib/simple_roles/many.rb
|
222
|
+
- lib/simple_roles/many/persistence.rb
|
223
|
+
- lib/simple_roles/many/roles_methods.rb
|
224
|
+
- lib/simple_roles/one.rb
|
225
|
+
- lib/simple_roles/one/persistence.rb
|
226
|
+
- lib/simple_roles/one/roles_methods.rb
|
227
|
+
- lib/simple_roles/packager.rb
|
192
228
|
- lib/simple_roles/version.rb
|
193
229
|
- lib/tasks/simple_roles_tasks.rake
|
194
230
|
- script/rails
|
@@ -273,48 +309,51 @@ files:
|
|
273
309
|
- spec/dummy/test/unit/user_test.rb
|
274
310
|
- spec/dummy_spec_helper.rb
|
275
311
|
- spec/integration/main_spec.rb
|
276
|
-
- spec/integration/messages_spec.rb
|
277
312
|
- spec/integration/requests/main_spec.rb
|
278
|
-
- spec/simple_roles/
|
313
|
+
- spec/simple_roles/configuration_spec.rb
|
314
|
+
- spec/simple_roles/integration_many_spec.rb
|
279
315
|
- spec/simple_roles/macros_spec.rb
|
316
|
+
- spec/simple_roles/many/persistence_spec.rb
|
317
|
+
- spec/simple_roles/many_spec.rb
|
318
|
+
- spec/simple_roles/one_spec.rb
|
280
319
|
- spec/spec_helper.rb
|
281
|
-
- spec/support/aliases.rb
|
282
320
|
- spec/support/controller_macros.rb
|
283
321
|
- spec/support/database.yml
|
284
322
|
- spec/support/factories.rb
|
285
|
-
- spec/support/
|
286
|
-
- spec/support/
|
287
|
-
- spec/support/
|
288
|
-
- spec/support/
|
323
|
+
- spec/support/migrations/010_create_one_users.rb
|
324
|
+
- spec/support/migrations/011_create_users.rb
|
325
|
+
- spec/support/models/.gitkeep
|
326
|
+
- spec/support/models/one_user.rb
|
327
|
+
- spec/support/models/user.rb
|
328
|
+
- spec/support/setup_roles.rb
|
329
|
+
- spec/support/transaction.rb
|
330
|
+
- spec/transaction_spec.rb
|
289
331
|
homepage: http://github.com/stanislaw/simple_roles
|
290
|
-
licenses:
|
332
|
+
licenses:
|
291
333
|
- MIT
|
292
334
|
post_install_message:
|
293
335
|
rdoc_options: []
|
294
|
-
|
295
|
-
require_paths:
|
336
|
+
require_paths:
|
296
337
|
- lib
|
297
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
338
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
298
339
|
none: false
|
299
|
-
requirements:
|
300
|
-
- -
|
301
|
-
- !ruby/object:Gem::Version
|
302
|
-
|
303
|
-
segments:
|
340
|
+
requirements:
|
341
|
+
- - ! '>='
|
342
|
+
- !ruby/object:Gem::Version
|
343
|
+
version: '0'
|
344
|
+
segments:
|
304
345
|
- 0
|
305
|
-
|
306
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
346
|
+
hash: -387698285
|
347
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
307
348
|
none: false
|
308
|
-
requirements:
|
309
|
-
- -
|
310
|
-
- !ruby/object:Gem::Version
|
311
|
-
version:
|
349
|
+
requirements:
|
350
|
+
- - ! '>='
|
351
|
+
- !ruby/object:Gem::Version
|
352
|
+
version: '0'
|
312
353
|
requirements: []
|
313
|
-
|
314
354
|
rubyforge_project:
|
315
|
-
rubygems_version: 1.8.
|
355
|
+
rubygems_version: 1.8.19
|
316
356
|
signing_key:
|
317
357
|
specification_version: 3
|
318
358
|
summary: Rails Engine providing Role System for Rails apps
|
319
359
|
test_files: []
|
320
|
-
|