authengine 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +10 -0
- data/.rspec +1 -0
- data/Gemfile +4 -0
- data/README.md +86 -0
- data/Rakefile +31 -0
- data/app/assets/images/message_block/back.gif +0 -0
- data/app/assets/images/message_block/back_m.gif +0 -0
- data/app/assets/images/message_block/confirmation.gif +0 -0
- data/app/assets/images/message_block/confirmation_m.gif +0 -0
- data/app/assets/images/message_block/error.gif +0 -0
- data/app/assets/images/message_block/error_m.gif +0 -0
- data/app/assets/images/message_block/info.gif +0 -0
- data/app/assets/images/message_block/info_m.gif +0 -0
- data/app/assets/images/message_block/notice.gif +0 -0
- data/app/assets/images/message_block/notice_m.gif +0 -0
- data/app/assets/images/message_block/warn.gif +0 -0
- data/app/assets/images/message_block/warn_m.gif +0 -0
- data/app/assets/stylesheets/authengine.css +3 -0
- data/app/assets/stylesheets/message_block.css +45 -0
- data/app/controllers/authengine/accounts_controller.rb +56 -0
- data/app/controllers/authengine/action_roles_controller.rb +22 -0
- data/app/controllers/authengine/actions_controller.rb +17 -0
- data/app/controllers/authengine/roles_controller.rb +35 -0
- data/app/controllers/authengine/sessions_controller.rb +75 -0
- data/app/controllers/authengine/user_roles_controller.rb +55 -0
- data/app/controllers/authengine/useractions_controller.rb +17 -0
- data/app/controllers/authengine/users_controller.rb +137 -0
- data/app/helpers/application_helper.rb +2 -0
- data/app/helpers/authengine/users_helper.rb +11 -0
- data/app/helpers/roles_helper.rb +2 -0
- data/app/mailers/authengine/user_mailer.rb +53 -0
- data/app/models/action.rb +54 -0
- data/app/models/action_role.rb +29 -0
- data/app/models/authenticated_system.rb +179 -0
- data/app/models/authorized_system.rb +41 -0
- data/app/models/controller.rb +124 -0
- data/app/models/role.rb +71 -0
- data/app/models/session.rb +3 -0
- data/app/models/session_role.rb +17 -0
- data/app/models/user.rb +191 -0
- data/app/models/user_observer.rb +14 -0
- data/app/models/user_role.rb +4 -0
- data/app/models/useraction.rb +56 -0
- data/app/views/authengine/accounts/edit.html.erb +19 -0
- data/app/views/authengine/actions/create.html.erb +2 -0
- data/app/views/authengine/actions/destroy.html.erb +2 -0
- data/app/views/authengine/actions/edit.html.erb +80 -0
- data/app/views/authengine/actions/index.html.haml +26 -0
- data/app/views/authengine/actions/new.html.erb +2 -0
- data/app/views/authengine/actions/show.html.erb +8 -0
- data/app/views/authengine/actions/update.html.erb +11 -0
- data/app/views/authengine/admin/_show.html.haml +5 -0
- data/app/views/authengine/layouts/authengine.html.haml +9 -0
- data/app/views/authengine/roles/index.html.haml +12 -0
- data/app/views/authengine/roles/new.html.haml +15 -0
- data/app/views/authengine/roles/show.html.erb +8 -0
- data/app/views/authengine/sessions/new.html.haml +18 -0
- data/app/views/authengine/user_mailer/activation.html.erb +5 -0
- data/app/views/authengine/user_mailer/forgot_password.html.erb +3 -0
- data/app/views/authengine/user_mailer/message_to_admin.html.erb +2 -0
- data/app/views/authengine/user_mailer/reset_password.html.erb +1 -0
- data/app/views/authengine/user_mailer/signup_notification.html.erb +5 -0
- data/app/views/authengine/user_roles/edit.html.haml +10 -0
- data/app/views/authengine/user_roles/index.html.haml +14 -0
- data/app/views/authengine/user_roles/new.html.haml +8 -0
- data/app/views/authengine/useractions/_useraction.html.erb +6 -0
- data/app/views/authengine/useractions/index.html.erb +13 -0
- data/app/views/authengine/useractions/show.html.haml +14 -0
- data/app/views/authengine/useractions/update.html.erb +2 -0
- data/app/views/authengine/users/_no_privacy_policy.html.haml +1 -0
- data/app/views/authengine/users/_privacy_policy_example.html.haml +36 -0
- data/app/views/authengine/users/_user.html.haml +19 -0
- data/app/views/authengine/users/edit.html.haml +24 -0
- data/app/views/authengine/users/index.html.haml +10 -0
- data/app/views/authengine/users/new.html.haml +31 -0
- data/app/views/authengine/users/show.html.haml +19 -0
- data/app/views/authengine/users/signup.html.haml +52 -0
- data/authengine.gemspec +44 -0
- data/config/application.rb +1 -0
- data/config/routes.rb +43 -0
- data/db/migrate/20110320171029_create_authengine_tables.rb +90 -0
- data/db/migrate/20110924165900_add_parent_id_to_roles_table.rb +5 -0
- data/db/migrate/20110925202800_add_type_field_to_user_roles_table.rb +5 -0
- data/db/migrate/20111003074700_add_indexes_to_several_tables.rb +7 -0
- data/db/seeds.rb +7 -0
- data/lib/application_helper.rb +19 -0
- data/lib/authengine.rb +5 -0
- data/lib/authengine/engine.rb +44 -0
- data/lib/authengine/testing_support/factories/user_factory.rb +13 -0
- data/lib/authengine/version.rb +3 -0
- data/lib/rails/generators/authengine/authengine_generator.rb +160 -0
- data/lib/rails/generators/authengine/templates/initializer.rb +3 -0
- data/lib/rails/generators/authengine/templates/migration.rb +16 -0
- data/lib/rails/generators/authengine/templates/pre_populate_database.rb +20 -0
- data/lib/rails/generators/authengine/templates/schema.rb +69 -0
- data/lib/tasks/bootstrap.rake +29 -0
- data/spec/authengine_spec.rb +7 -0
- data/spec/dummy/.rspec +1 -0
- data/spec/dummy/Gemfile +3 -0
- data/spec/dummy/Rakefile +8 -0
- data/spec/dummy/app/assets/javascripts/jasmine_examples/Player.js +22 -0
- data/spec/dummy/app/assets/javascripts/jasmine_examples/Song.js +7 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +50 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +22 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +26 -0
- data/spec/dummy/config/environments/production.rb +49 -0
- data/spec/dummy/config/environments/test.rb +35 -0
- data/spec/dummy/config/initializers/application.rb +1 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +87 -0
- data/spec/dummy/lib/constants.rb +5 -0
- data/spec/dummy/log/development.log +117 -0
- data/spec/dummy/log/production.log +0 -0
- data/spec/dummy/log/server.log +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/javascripts/application.js +2 -0
- data/spec/dummy/public/javascripts/controls.js +965 -0
- data/spec/dummy/public/javascripts/dragdrop.js +974 -0
- data/spec/dummy/public/javascripts/effects.js +1123 -0
- data/spec/dummy/public/javascripts/prototype.js +6001 -0
- data/spec/dummy/public/javascripts/rails.js +191 -0
- data/spec/dummy/public/stylesheets/.gitkeep +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/spec/javascripts/helpers/.gitkeep +0 -0
- data/spec/dummy/spec/javascripts/helpers/SpecHelper.js +9 -0
- data/spec/dummy/spec/javascripts/jasmine_examples/PlayerSpec.js +58 -0
- data/spec/dummy/spec/javascripts/support/jasmine.yml +76 -0
- data/spec/generators/authengine_generator_spec.rb +11 -0
- data/spec/integration/navigation_spec.rb +9 -0
- data/spec/javascripts/spec.css +3 -0
- data/spec/javascripts/spec.js.coffee +2 -0
- data/spec/models/action_role_spec.rb +59 -0
- data/spec/models/authenticated_system_spec.rb +109 -0
- data/spec/models/role_spec.rb +38 -0
- data/spec/models/user_factory_spec.rb +7 -0
- data/spec/models/user_spec.rb +16 -0
- data/spec/requests/sessions_spec.rb +11 -0
- data/spec/spec_helper.rb +57 -0
- metadata +405 -0
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "ancestors method" do
|
4
|
+
before(:each) do
|
5
|
+
@big_boss = Role.create(:name => "big_boss", :parent_id => nil)
|
6
|
+
@boss = Role.create(:name => "boss", :parent_id => @big_boss.id)
|
7
|
+
@minion = Role.create(:name => "minion", :parent_id => @boss.id)
|
8
|
+
end
|
9
|
+
|
10
|
+
it "minions ancestors should include boss and big boss" do
|
11
|
+
@minion.ancestors.should include(@boss)
|
12
|
+
@minion.ancestors.should include(@big_boss)
|
13
|
+
@minion.ancestors.size.should == 2
|
14
|
+
@boss.ancestors.should include(@big_boss)
|
15
|
+
@boss.ancestors.size.should == 1
|
16
|
+
@big_boss.ancestors.should be_empty
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
describe "equal_or_lower_than class method" do
|
22
|
+
before(:each) do
|
23
|
+
@big_boss = Role.create(:name => "big_boss", :parent_id => nil)
|
24
|
+
@boss = Role.create(:name => "boss", :parent_id => @big_boss.id)
|
25
|
+
@minion = Role.create(:name => "minion", :parent_id => @boss.id)
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should return minion and boss when parameter is 'boss'" do
|
29
|
+
Role.equal_or_lower_than(@boss).should include(@minion)
|
30
|
+
Role.equal_or_lower_than(@boss).should include(@boss)
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should return minion and boss and big_boss when parameter is an array ['boss','big_boss']" do
|
34
|
+
Role.equal_or_lower_than([@boss, @big_boss]).should include(@minion)
|
35
|
+
Role.equal_or_lower_than([@boss, @big_boss]).should include(@boss)
|
36
|
+
Role.equal_or_lower_than([@boss, @big_boss]).should include(@big_boss)
|
37
|
+
end
|
38
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe "when a new user is added" do
|
4
|
+
before(:each) do
|
5
|
+
user = FactoryGirl.create(:user)
|
6
|
+
end
|
7
|
+
|
8
|
+
it "a registration email should be sent" do
|
9
|
+
ActionMailer::Base.deliveries.size.should == 1
|
10
|
+
end
|
11
|
+
|
12
|
+
it "email should have 'Please activate' etc in subject" do
|
13
|
+
ActionMailer::Base.deliveries.last.subject.should == "Test database - Please activate your new account"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# Configure Rails Envinronment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
require 'rubygems'
|
4
|
+
|
5
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
6
|
+
require "rails/test_help"
|
7
|
+
require "rspec/rails"
|
8
|
+
require "factory_girl_rails"
|
9
|
+
require 'database_cleaner'
|
10
|
+
require 'authengine/testing_support/factories/user_factory'
|
11
|
+
|
12
|
+
|
13
|
+
ENGINE_RAILS_ROOT = File.join( File.dirname(__FILE__), '../')
|
14
|
+
ActionMailer::Base.delivery_method = :test
|
15
|
+
ActionMailer::Base.perform_deliveries = true
|
16
|
+
ActionMailer::Base.default_url_options[:host] = "test.com"
|
17
|
+
|
18
|
+
Rails.backtrace_cleaner.remove_silencers!
|
19
|
+
|
20
|
+
# Configure capybara for integration testing
|
21
|
+
require "capybara/rails"
|
22
|
+
Capybara.default_driver = :rack_test
|
23
|
+
Capybara.default_selector = :css
|
24
|
+
|
25
|
+
# Run any available migration
|
26
|
+
ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
|
27
|
+
|
28
|
+
# Load support files
|
29
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
|
30
|
+
Dir[File.join(Rails.root, "spec/factories/*.rb")].each{|f| require f }
|
31
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "spec/factories/*.rb")].each{|f| require f }
|
32
|
+
RSpec.configure do |config|
|
33
|
+
# Remove this line if you don't want RSpec's should and should_not
|
34
|
+
# methods or matchers
|
35
|
+
require 'rspec/expectations'
|
36
|
+
config.include RSpec::Matchers
|
37
|
+
|
38
|
+
# == Mock Framework
|
39
|
+
#config.mock_with :rspec
|
40
|
+
config.mock_with :flexmock
|
41
|
+
|
42
|
+
config.use_transactional_fixtures = false
|
43
|
+
|
44
|
+
config.before(:suite) do
|
45
|
+
DatabaseCleaner.strategy = :transaction
|
46
|
+
DatabaseCleaner.clean_with(:truncation)
|
47
|
+
end
|
48
|
+
|
49
|
+
config.before(:each) do
|
50
|
+
ActionMailer::Base.deliveries = []
|
51
|
+
DatabaseCleaner.start
|
52
|
+
end
|
53
|
+
|
54
|
+
config.after(:each) do
|
55
|
+
DatabaseCleaner.clean
|
56
|
+
end
|
57
|
+
end
|
metadata
ADDED
@@ -0,0 +1,405 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: authengine
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Les Nightingill
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-07-17 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rspec
|
16
|
+
requirement: &2153318680 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 2.0.0
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2153318680
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: rails
|
27
|
+
requirement: &2153333980 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.2.5
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *2153333980
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: sqlite3-ruby
|
38
|
+
requirement: &2153333120 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2153333120
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: capybara
|
49
|
+
requirement: &2153331580 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *2153331580
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: rspec-rails
|
60
|
+
requirement: &2153329960 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ! '>='
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 2.0.0
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: *2153329960
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: flexmock
|
71
|
+
requirement: &2153328520 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: *2153328520
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: faker
|
82
|
+
requirement: &2153326860 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ! '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *2153326860
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: message_block
|
93
|
+
requirement: &2153341580 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ! '>='
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
type: :runtime
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: *2153341580
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: haml
|
104
|
+
requirement: &2153338780 !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
type: :runtime
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: *2153338780
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: factory_girl_rails
|
115
|
+
requirement: &2153337120 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ! '>='
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: '0'
|
121
|
+
type: :runtime
|
122
|
+
prerelease: false
|
123
|
+
version_requirements: *2153337120
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: database_cleaner
|
126
|
+
requirement: &2153350380 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: *2153350380
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: jasmine
|
137
|
+
requirement: &2153348820 !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
139
|
+
requirements:
|
140
|
+
- - ! '>='
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: '0'
|
143
|
+
type: :runtime
|
144
|
+
prerelease: false
|
145
|
+
version_requirements: *2153348820
|
146
|
+
- !ruby/object:Gem::Dependency
|
147
|
+
name: jasminerice
|
148
|
+
requirement: &2153347880 !ruby/object:Gem::Requirement
|
149
|
+
none: false
|
150
|
+
requirements:
|
151
|
+
- - ! '>='
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
154
|
+
type: :runtime
|
155
|
+
prerelease: false
|
156
|
+
version_requirements: *2153347880
|
157
|
+
description: ! "A rails authentication and authorization engine that\n reduces
|
158
|
+
clutter in your controllers and views.\n Includes aliased link_to
|
159
|
+
and button_to helpers that return an empty string\n if the current
|
160
|
+
user is not permitted to follow the link.\n Authorization configuration
|
161
|
+
is removed from the controllers and instead\n is stored in the
|
162
|
+
database and configured through html views."
|
163
|
+
email:
|
164
|
+
- codehacker@comcast.net
|
165
|
+
executables: []
|
166
|
+
extensions: []
|
167
|
+
extra_rdoc_files: []
|
168
|
+
files:
|
169
|
+
- .gitignore
|
170
|
+
- .rspec
|
171
|
+
- Gemfile
|
172
|
+
- README.md
|
173
|
+
- Rakefile
|
174
|
+
- app/assets/images/message_block/back.gif
|
175
|
+
- app/assets/images/message_block/back_m.gif
|
176
|
+
- app/assets/images/message_block/confirmation.gif
|
177
|
+
- app/assets/images/message_block/confirmation_m.gif
|
178
|
+
- app/assets/images/message_block/error.gif
|
179
|
+
- app/assets/images/message_block/error_m.gif
|
180
|
+
- app/assets/images/message_block/info.gif
|
181
|
+
- app/assets/images/message_block/info_m.gif
|
182
|
+
- app/assets/images/message_block/notice.gif
|
183
|
+
- app/assets/images/message_block/notice_m.gif
|
184
|
+
- app/assets/images/message_block/warn.gif
|
185
|
+
- app/assets/images/message_block/warn_m.gif
|
186
|
+
- app/assets/stylesheets/authengine.css
|
187
|
+
- app/assets/stylesheets/message_block.css
|
188
|
+
- app/controllers/authengine/accounts_controller.rb
|
189
|
+
- app/controllers/authengine/action_roles_controller.rb
|
190
|
+
- app/controllers/authengine/actions_controller.rb
|
191
|
+
- app/controllers/authengine/roles_controller.rb
|
192
|
+
- app/controllers/authengine/sessions_controller.rb
|
193
|
+
- app/controllers/authengine/user_roles_controller.rb
|
194
|
+
- app/controllers/authengine/useractions_controller.rb
|
195
|
+
- app/controllers/authengine/users_controller.rb
|
196
|
+
- app/helpers/application_helper.rb
|
197
|
+
- app/helpers/authengine/users_helper.rb
|
198
|
+
- app/helpers/roles_helper.rb
|
199
|
+
- app/mailers/authengine/user_mailer.rb
|
200
|
+
- app/models/action.rb
|
201
|
+
- app/models/action_role.rb
|
202
|
+
- app/models/authenticated_system.rb
|
203
|
+
- app/models/authorized_system.rb
|
204
|
+
- app/models/controller.rb
|
205
|
+
- app/models/role.rb
|
206
|
+
- app/models/session.rb
|
207
|
+
- app/models/session_role.rb
|
208
|
+
- app/models/user.rb
|
209
|
+
- app/models/user_observer.rb
|
210
|
+
- app/models/user_role.rb
|
211
|
+
- app/models/useraction.rb
|
212
|
+
- app/views/authengine/accounts/edit.html.erb
|
213
|
+
- app/views/authengine/actions/create.html.erb
|
214
|
+
- app/views/authengine/actions/destroy.html.erb
|
215
|
+
- app/views/authengine/actions/edit.html.erb
|
216
|
+
- app/views/authengine/actions/index.html.haml
|
217
|
+
- app/views/authengine/actions/new.html.erb
|
218
|
+
- app/views/authengine/actions/show.html.erb
|
219
|
+
- app/views/authengine/actions/update.html.erb
|
220
|
+
- app/views/authengine/admin/_show.html.haml
|
221
|
+
- app/views/authengine/layouts/authengine.html.haml
|
222
|
+
- app/views/authengine/roles/index.html.haml
|
223
|
+
- app/views/authengine/roles/new.html.haml
|
224
|
+
- app/views/authengine/roles/show.html.erb
|
225
|
+
- app/views/authengine/sessions/new.html.haml
|
226
|
+
- app/views/authengine/user_mailer/activation.html.erb
|
227
|
+
- app/views/authengine/user_mailer/forgot_password.html.erb
|
228
|
+
- app/views/authengine/user_mailer/message_to_admin.html.erb
|
229
|
+
- app/views/authengine/user_mailer/reset_password.html.erb
|
230
|
+
- app/views/authengine/user_mailer/signup_notification.html.erb
|
231
|
+
- app/views/authengine/user_roles/edit.html.haml
|
232
|
+
- app/views/authengine/user_roles/index.html.haml
|
233
|
+
- app/views/authengine/user_roles/new.html.haml
|
234
|
+
- app/views/authengine/useractions/_useraction.html.erb
|
235
|
+
- app/views/authengine/useractions/index.html.erb
|
236
|
+
- app/views/authengine/useractions/show.html.haml
|
237
|
+
- app/views/authengine/useractions/update.html.erb
|
238
|
+
- app/views/authengine/users/_no_privacy_policy.html.haml
|
239
|
+
- app/views/authengine/users/_privacy_policy_example.html.haml
|
240
|
+
- app/views/authengine/users/_user.html.haml
|
241
|
+
- app/views/authengine/users/edit.html.haml
|
242
|
+
- app/views/authengine/users/index.html.haml
|
243
|
+
- app/views/authengine/users/new.html.haml
|
244
|
+
- app/views/authengine/users/show.html.haml
|
245
|
+
- app/views/authengine/users/signup.html.haml
|
246
|
+
- authengine.gemspec
|
247
|
+
- config/application.rb
|
248
|
+
- config/routes.rb
|
249
|
+
- db/migrate/20110320171029_create_authengine_tables.rb
|
250
|
+
- db/migrate/20110924165900_add_parent_id_to_roles_table.rb
|
251
|
+
- db/migrate/20110925202800_add_type_field_to_user_roles_table.rb
|
252
|
+
- db/migrate/20111003074700_add_indexes_to_several_tables.rb
|
253
|
+
- db/seeds.rb
|
254
|
+
- lib/application_helper.rb
|
255
|
+
- lib/authengine.rb
|
256
|
+
- lib/authengine/engine.rb
|
257
|
+
- lib/authengine/testing_support/factories/user_factory.rb
|
258
|
+
- lib/authengine/version.rb
|
259
|
+
- lib/rails/generators/authengine/authengine_generator.rb
|
260
|
+
- lib/rails/generators/authengine/templates/initializer.rb
|
261
|
+
- lib/rails/generators/authengine/templates/migration.rb
|
262
|
+
- lib/rails/generators/authengine/templates/pre_populate_database.rb
|
263
|
+
- lib/rails/generators/authengine/templates/schema.rb
|
264
|
+
- lib/tasks/bootstrap.rake
|
265
|
+
- spec/authengine_spec.rb
|
266
|
+
- spec/dummy/.rspec
|
267
|
+
- spec/dummy/Gemfile
|
268
|
+
- spec/dummy/Rakefile
|
269
|
+
- spec/dummy/app/assets/javascripts/jasmine_examples/Player.js
|
270
|
+
- spec/dummy/app/assets/javascripts/jasmine_examples/Song.js
|
271
|
+
- spec/dummy/app/controllers/application_controller.rb
|
272
|
+
- spec/dummy/app/helpers/application_helper.rb
|
273
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
274
|
+
- spec/dummy/config.ru
|
275
|
+
- spec/dummy/config/application.rb
|
276
|
+
- spec/dummy/config/boot.rb
|
277
|
+
- spec/dummy/config/database.yml
|
278
|
+
- spec/dummy/config/environment.rb
|
279
|
+
- spec/dummy/config/environments/development.rb
|
280
|
+
- spec/dummy/config/environments/production.rb
|
281
|
+
- spec/dummy/config/environments/test.rb
|
282
|
+
- spec/dummy/config/initializers/application.rb
|
283
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
284
|
+
- spec/dummy/config/initializers/inflections.rb
|
285
|
+
- spec/dummy/config/initializers/mime_types.rb
|
286
|
+
- spec/dummy/config/initializers/secret_token.rb
|
287
|
+
- spec/dummy/config/initializers/session_store.rb
|
288
|
+
- spec/dummy/config/locales/en.yml
|
289
|
+
- spec/dummy/config/routes.rb
|
290
|
+
- spec/dummy/db/development.sqlite3
|
291
|
+
- spec/dummy/db/schema.rb
|
292
|
+
- spec/dummy/lib/constants.rb
|
293
|
+
- spec/dummy/log/development.log
|
294
|
+
- spec/dummy/log/production.log
|
295
|
+
- spec/dummy/log/server.log
|
296
|
+
- spec/dummy/public/404.html
|
297
|
+
- spec/dummy/public/422.html
|
298
|
+
- spec/dummy/public/500.html
|
299
|
+
- spec/dummy/public/favicon.ico
|
300
|
+
- spec/dummy/public/javascripts/application.js
|
301
|
+
- spec/dummy/public/javascripts/controls.js
|
302
|
+
- spec/dummy/public/javascripts/dragdrop.js
|
303
|
+
- spec/dummy/public/javascripts/effects.js
|
304
|
+
- spec/dummy/public/javascripts/prototype.js
|
305
|
+
- spec/dummy/public/javascripts/rails.js
|
306
|
+
- spec/dummy/public/stylesheets/.gitkeep
|
307
|
+
- spec/dummy/script/rails
|
308
|
+
- spec/dummy/spec/javascripts/helpers/.gitkeep
|
309
|
+
- spec/dummy/spec/javascripts/helpers/SpecHelper.js
|
310
|
+
- spec/dummy/spec/javascripts/jasmine_examples/PlayerSpec.js
|
311
|
+
- spec/dummy/spec/javascripts/support/jasmine.yml
|
312
|
+
- spec/generators/authengine_generator_spec.rb
|
313
|
+
- spec/integration/navigation_spec.rb
|
314
|
+
- spec/javascripts/spec.css
|
315
|
+
- spec/javascripts/spec.js.coffee
|
316
|
+
- spec/models/action_role_spec.rb
|
317
|
+
- spec/models/authenticated_system_spec.rb
|
318
|
+
- spec/models/role_spec.rb
|
319
|
+
- spec/models/user_factory_spec.rb
|
320
|
+
- spec/models/user_spec.rb
|
321
|
+
- spec/requests/sessions_spec.rb
|
322
|
+
- spec/spec_helper.rb
|
323
|
+
homepage: ''
|
324
|
+
licenses: []
|
325
|
+
post_install_message:
|
326
|
+
rdoc_options: []
|
327
|
+
require_paths:
|
328
|
+
- lib
|
329
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
330
|
+
none: false
|
331
|
+
requirements:
|
332
|
+
- - ! '>='
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: '0'
|
335
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
336
|
+
none: false
|
337
|
+
requirements:
|
338
|
+
- - ! '>='
|
339
|
+
- !ruby/object:Gem::Version
|
340
|
+
version: '0'
|
341
|
+
requirements: []
|
342
|
+
rubyforge_project: authengine
|
343
|
+
rubygems_version: 1.8.10
|
344
|
+
signing_key:
|
345
|
+
specification_version: 3
|
346
|
+
summary: Unobtrusive authentication and authorization engine
|
347
|
+
test_files:
|
348
|
+
- spec/authengine_spec.rb
|
349
|
+
- spec/dummy/.rspec
|
350
|
+
- spec/dummy/Gemfile
|
351
|
+
- spec/dummy/Rakefile
|
352
|
+
- spec/dummy/app/assets/javascripts/jasmine_examples/Player.js
|
353
|
+
- spec/dummy/app/assets/javascripts/jasmine_examples/Song.js
|
354
|
+
- spec/dummy/app/controllers/application_controller.rb
|
355
|
+
- spec/dummy/app/helpers/application_helper.rb
|
356
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
357
|
+
- spec/dummy/config.ru
|
358
|
+
- spec/dummy/config/application.rb
|
359
|
+
- spec/dummy/config/boot.rb
|
360
|
+
- spec/dummy/config/database.yml
|
361
|
+
- spec/dummy/config/environment.rb
|
362
|
+
- spec/dummy/config/environments/development.rb
|
363
|
+
- spec/dummy/config/environments/production.rb
|
364
|
+
- spec/dummy/config/environments/test.rb
|
365
|
+
- spec/dummy/config/initializers/application.rb
|
366
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
367
|
+
- spec/dummy/config/initializers/inflections.rb
|
368
|
+
- spec/dummy/config/initializers/mime_types.rb
|
369
|
+
- spec/dummy/config/initializers/secret_token.rb
|
370
|
+
- spec/dummy/config/initializers/session_store.rb
|
371
|
+
- spec/dummy/config/locales/en.yml
|
372
|
+
- spec/dummy/config/routes.rb
|
373
|
+
- spec/dummy/db/development.sqlite3
|
374
|
+
- spec/dummy/db/schema.rb
|
375
|
+
- spec/dummy/lib/constants.rb
|
376
|
+
- spec/dummy/log/development.log
|
377
|
+
- spec/dummy/log/production.log
|
378
|
+
- spec/dummy/log/server.log
|
379
|
+
- spec/dummy/public/404.html
|
380
|
+
- spec/dummy/public/422.html
|
381
|
+
- spec/dummy/public/500.html
|
382
|
+
- spec/dummy/public/favicon.ico
|
383
|
+
- spec/dummy/public/javascripts/application.js
|
384
|
+
- spec/dummy/public/javascripts/controls.js
|
385
|
+
- spec/dummy/public/javascripts/dragdrop.js
|
386
|
+
- spec/dummy/public/javascripts/effects.js
|
387
|
+
- spec/dummy/public/javascripts/prototype.js
|
388
|
+
- spec/dummy/public/javascripts/rails.js
|
389
|
+
- spec/dummy/public/stylesheets/.gitkeep
|
390
|
+
- spec/dummy/script/rails
|
391
|
+
- spec/dummy/spec/javascripts/helpers/.gitkeep
|
392
|
+
- spec/dummy/spec/javascripts/helpers/SpecHelper.js
|
393
|
+
- spec/dummy/spec/javascripts/jasmine_examples/PlayerSpec.js
|
394
|
+
- spec/dummy/spec/javascripts/support/jasmine.yml
|
395
|
+
- spec/generators/authengine_generator_spec.rb
|
396
|
+
- spec/integration/navigation_spec.rb
|
397
|
+
- spec/javascripts/spec.css
|
398
|
+
- spec/javascripts/spec.js.coffee
|
399
|
+
- spec/models/action_role_spec.rb
|
400
|
+
- spec/models/authenticated_system_spec.rb
|
401
|
+
- spec/models/role_spec.rb
|
402
|
+
- spec/models/user_factory_spec.rb
|
403
|
+
- spec/models/user_spec.rb
|
404
|
+
- spec/requests/sessions_spec.rb
|
405
|
+
- spec/spec_helper.rb
|