ae_users 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +47 -0
- data/Rakefile +36 -0
- data/VERSION +1 -0
- data/ae_users.gemspec +117 -0
- data/app/controllers/account_controller.rb +167 -0
- data/app/controllers/auth_controller.rb +202 -0
- data/app/controllers/permission_controller.rb +172 -0
- data/app/helpers/account_helper.rb +2 -0
- data/app/helpers/auth_helper.rb +5 -0
- data/app/helpers/permission_helper.rb +2 -0
- data/app/models/account.rb +50 -0
- data/app/models/auth_notifier.rb +34 -0
- data/app/models/auth_ticket.rb +39 -0
- data/app/models/email_address.rb +17 -0
- data/app/models/login.rb +23 -0
- data/app/models/open_id_identity.rb +5 -0
- data/app/models/permission.rb +57 -0
- data/app/models/person.rb +156 -0
- data/app/models/role.rb +7 -0
- data/app/views/account/_personal_info.rhtml +35 -0
- data/app/views/account/_procon_profile.rhtml +3 -0
- data/app/views/account/_signup_form.html.erb +39 -0
- data/app/views/account/activate.rhtml +6 -0
- data/app/views/account/activation_error.rhtml +11 -0
- data/app/views/account/change_password.rhtml +3 -0
- data/app/views/account/edit_profile.rhtml +117 -0
- data/app/views/account/signup.rhtml +9 -0
- data/app/views/account/signup_noactivation.rhtml +7 -0
- data/app/views/account/signup_success.rhtml +8 -0
- data/app/views/auth/_auth_form.rhtml +54 -0
- data/app/views/auth/_forgot_form.html.erb +12 -0
- data/app/views/auth/_mini_auth_form.rhtml +17 -0
- data/app/views/auth/_openid_auth_form.html.erb +14 -0
- data/app/views/auth/_other_login_options.html.erb +24 -0
- data/app/views/auth/auth_form.js.erb +63 -0
- data/app/views/auth/forgot.rhtml +3 -0
- data/app/views/auth/forgot_form.rhtml +6 -0
- data/app/views/auth/index.css.erb +23 -0
- data/app/views/auth/login.rhtml +6 -0
- data/app/views/auth/needs_activation.rhtml +6 -0
- data/app/views/auth/needs_person.html.erb +32 -0
- data/app/views/auth/needs_profile.rhtml +14 -0
- data/app/views/auth/openid_login.html.erb +6 -0
- data/app/views/auth/resend_activation.rhtml +3 -0
- data/app/views/auth_notifier/account_activation.rhtml +13 -0
- data/app/views/auth_notifier/generated_password.rhtml +10 -0
- data/app/views/permission/_add_grantee.rhtml +47 -0
- data/app/views/permission/_role_member.rhtml +8 -0
- data/app/views/permission/_show.rhtml +81 -0
- data/app/views/permission/_userpicker.rhtml +0 -0
- data/app/views/permission/add_role_member.rhtml +3 -0
- data/app/views/permission/admin.rhtml +45 -0
- data/app/views/permission/edit.rhtml +9 -0
- data/app/views/permission/edit_role.rhtml +63 -0
- data/app/views/permission/grant.rhtml +10 -0
- data/db/migrate/002_create_accounts.rb +17 -0
- data/db/migrate/003_create_email_addresses.rb +17 -0
- data/db/migrate/004_create_people.rb +24 -0
- data/db/migrate/013_simplify_signup.rb +15 -0
- data/db/migrate/014_create_permissions.rb +16 -0
- data/db/migrate/015_create_roles.rb +18 -0
- data/db/migrate/016_refactor_people.rb +36 -0
- data/db/migrate/017_people_permissions.rb +9 -0
- data/generators/ae_users/USAGE +14 -0
- data/generators/ae_users/ae_users_generator.rb +12 -0
- data/generators/ae_users/templates/add.png +0 -0
- data/generators/ae_users/templates/admin.png +0 -0
- data/generators/ae_users/templates/group.png +0 -0
- data/generators/ae_users/templates/logout.png +0 -0
- data/generators/ae_users/templates/migration.rb +25 -0
- data/generators/ae_users/templates/openid.gif +0 -0
- data/generators/ae_users/templates/remove.png +0 -0
- data/generators/ae_users/templates/user.png +0 -0
- data/init.rb +1 -0
- data/install.rb +1 -0
- data/lib/ae_users.rb +781 -0
- data/rails/init.rb +20 -0
- data/tasks/ae_users_tasks.rake +4 -0
- data/test/ae_users_test.rb +8 -0
- data/uninstall.rb +1 -0
- metadata +134 -0
data/rails/init.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Include hook code here
|
2
|
+
|
3
|
+
require 'ae_users'
|
4
|
+
|
5
|
+
ActiveRecord::Base.send(:include, AeUsers::Acts::Permissioned)
|
6
|
+
ActionController::Base.send(:include, AeUsers::ControllerExtensions::RequirePermission)
|
7
|
+
ActionView::Base.send(:include, AeUsers::HelperFunctions)
|
8
|
+
ActionView::Base.send(:include, AeUsers::FormHelperFunctions)
|
9
|
+
ActionView::Helpers::FormBuilder.send(:include, AeUsers::FormBuilderFunctions)
|
10
|
+
ActionView::Helpers::InstanceTag.send(:include, AeUsers::InstanceTagExtensions)
|
11
|
+
|
12
|
+
infl = begin
|
13
|
+
Inflector
|
14
|
+
rescue
|
15
|
+
ActiveSupport::Inflector
|
16
|
+
end
|
17
|
+
|
18
|
+
infl.inflections do |inflect|
|
19
|
+
inflect.irregular "PermissionCache", "PermissionCaches"
|
20
|
+
end
|
data/uninstall.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Uninstall hook code here
|
metadata
ADDED
@@ -0,0 +1,134 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ae_users
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nat Budin
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-10-05 00:00:00 -04:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description:
|
17
|
+
email: natbudin@gmail.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README
|
24
|
+
files:
|
25
|
+
- README
|
26
|
+
- Rakefile
|
27
|
+
- VERSION
|
28
|
+
- ae_users.gemspec
|
29
|
+
- app/controllers/account_controller.rb
|
30
|
+
- app/controllers/auth_controller.rb
|
31
|
+
- app/controllers/permission_controller.rb
|
32
|
+
- app/helpers/account_helper.rb
|
33
|
+
- app/helpers/auth_helper.rb
|
34
|
+
- app/helpers/permission_helper.rb
|
35
|
+
- app/models/account.rb
|
36
|
+
- app/models/auth_notifier.rb
|
37
|
+
- app/models/auth_ticket.rb
|
38
|
+
- app/models/email_address.rb
|
39
|
+
- app/models/login.rb
|
40
|
+
- app/models/open_id_identity.rb
|
41
|
+
- app/models/permission.rb
|
42
|
+
- app/models/person.rb
|
43
|
+
- app/models/role.rb
|
44
|
+
- app/views/account/_personal_info.rhtml
|
45
|
+
- app/views/account/_procon_profile.rhtml
|
46
|
+
- app/views/account/_signup_form.html.erb
|
47
|
+
- app/views/account/activate.rhtml
|
48
|
+
- app/views/account/activation_error.rhtml
|
49
|
+
- app/views/account/change_password.rhtml
|
50
|
+
- app/views/account/edit_profile.rhtml
|
51
|
+
- app/views/account/signup.rhtml
|
52
|
+
- app/views/account/signup_noactivation.rhtml
|
53
|
+
- app/views/account/signup_success.rhtml
|
54
|
+
- app/views/auth/_auth_form.rhtml
|
55
|
+
- app/views/auth/_forgot_form.html.erb
|
56
|
+
- app/views/auth/_mini_auth_form.rhtml
|
57
|
+
- app/views/auth/_openid_auth_form.html.erb
|
58
|
+
- app/views/auth/_other_login_options.html.erb
|
59
|
+
- app/views/auth/auth_form.js.erb
|
60
|
+
- app/views/auth/forgot.rhtml
|
61
|
+
- app/views/auth/forgot_form.rhtml
|
62
|
+
- app/views/auth/index.css.erb
|
63
|
+
- app/views/auth/login.rhtml
|
64
|
+
- app/views/auth/needs_activation.rhtml
|
65
|
+
- app/views/auth/needs_person.html.erb
|
66
|
+
- app/views/auth/needs_profile.rhtml
|
67
|
+
- app/views/auth/openid_login.html.erb
|
68
|
+
- app/views/auth/resend_activation.rhtml
|
69
|
+
- app/views/auth_notifier/account_activation.rhtml
|
70
|
+
- app/views/auth_notifier/generated_password.rhtml
|
71
|
+
- app/views/permission/_add_grantee.rhtml
|
72
|
+
- app/views/permission/_role_member.rhtml
|
73
|
+
- app/views/permission/_show.rhtml
|
74
|
+
- app/views/permission/_userpicker.rhtml
|
75
|
+
- app/views/permission/add_role_member.rhtml
|
76
|
+
- app/views/permission/admin.rhtml
|
77
|
+
- app/views/permission/edit.rhtml
|
78
|
+
- app/views/permission/edit_role.rhtml
|
79
|
+
- app/views/permission/grant.rhtml
|
80
|
+
- db/migrate/002_create_accounts.rb
|
81
|
+
- db/migrate/003_create_email_addresses.rb
|
82
|
+
- db/migrate/004_create_people.rb
|
83
|
+
- db/migrate/013_simplify_signup.rb
|
84
|
+
- db/migrate/014_create_permissions.rb
|
85
|
+
- db/migrate/015_create_roles.rb
|
86
|
+
- db/migrate/016_refactor_people.rb
|
87
|
+
- db/migrate/017_people_permissions.rb
|
88
|
+
- generators/ae_users/USAGE
|
89
|
+
- generators/ae_users/ae_users_generator.rb
|
90
|
+
- generators/ae_users/templates/add.png
|
91
|
+
- generators/ae_users/templates/admin.png
|
92
|
+
- generators/ae_users/templates/group.png
|
93
|
+
- generators/ae_users/templates/logout.png
|
94
|
+
- generators/ae_users/templates/migration.rb
|
95
|
+
- generators/ae_users/templates/openid.gif
|
96
|
+
- generators/ae_users/templates/remove.png
|
97
|
+
- generators/ae_users/templates/user.png
|
98
|
+
- init.rb
|
99
|
+
- install.rb
|
100
|
+
- lib/ae_users.rb
|
101
|
+
- rails/init.rb
|
102
|
+
- tasks/ae_users_tasks.rake
|
103
|
+
- test/ae_users_test.rb
|
104
|
+
- uninstall.rb
|
105
|
+
has_rdoc: true
|
106
|
+
homepage: http://github.com/nbudin/ae_users
|
107
|
+
licenses: []
|
108
|
+
|
109
|
+
post_install_message:
|
110
|
+
rdoc_options:
|
111
|
+
- --charset=UTF-8
|
112
|
+
require_paths:
|
113
|
+
- lib
|
114
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: "0"
|
119
|
+
version:
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: "0"
|
125
|
+
version:
|
126
|
+
requirements: []
|
127
|
+
|
128
|
+
rubyforge_project:
|
129
|
+
rubygems_version: 1.3.5
|
130
|
+
signing_key:
|
131
|
+
specification_version: 3
|
132
|
+
summary: An authentication and authorization system for Rails
|
133
|
+
test_files:
|
134
|
+
- test/ae_users_test.rb
|