ae_users 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. data/README +47 -0
  2. data/Rakefile +36 -0
  3. data/VERSION +1 -0
  4. data/ae_users.gemspec +117 -0
  5. data/app/controllers/account_controller.rb +167 -0
  6. data/app/controllers/auth_controller.rb +202 -0
  7. data/app/controllers/permission_controller.rb +172 -0
  8. data/app/helpers/account_helper.rb +2 -0
  9. data/app/helpers/auth_helper.rb +5 -0
  10. data/app/helpers/permission_helper.rb +2 -0
  11. data/app/models/account.rb +50 -0
  12. data/app/models/auth_notifier.rb +34 -0
  13. data/app/models/auth_ticket.rb +39 -0
  14. data/app/models/email_address.rb +17 -0
  15. data/app/models/login.rb +23 -0
  16. data/app/models/open_id_identity.rb +5 -0
  17. data/app/models/permission.rb +57 -0
  18. data/app/models/person.rb +156 -0
  19. data/app/models/role.rb +7 -0
  20. data/app/views/account/_personal_info.rhtml +35 -0
  21. data/app/views/account/_procon_profile.rhtml +3 -0
  22. data/app/views/account/_signup_form.html.erb +39 -0
  23. data/app/views/account/activate.rhtml +6 -0
  24. data/app/views/account/activation_error.rhtml +11 -0
  25. data/app/views/account/change_password.rhtml +3 -0
  26. data/app/views/account/edit_profile.rhtml +117 -0
  27. data/app/views/account/signup.rhtml +9 -0
  28. data/app/views/account/signup_noactivation.rhtml +7 -0
  29. data/app/views/account/signup_success.rhtml +8 -0
  30. data/app/views/auth/_auth_form.rhtml +54 -0
  31. data/app/views/auth/_forgot_form.html.erb +12 -0
  32. data/app/views/auth/_mini_auth_form.rhtml +17 -0
  33. data/app/views/auth/_openid_auth_form.html.erb +14 -0
  34. data/app/views/auth/_other_login_options.html.erb +24 -0
  35. data/app/views/auth/auth_form.js.erb +63 -0
  36. data/app/views/auth/forgot.rhtml +3 -0
  37. data/app/views/auth/forgot_form.rhtml +6 -0
  38. data/app/views/auth/index.css.erb +23 -0
  39. data/app/views/auth/login.rhtml +6 -0
  40. data/app/views/auth/needs_activation.rhtml +6 -0
  41. data/app/views/auth/needs_person.html.erb +32 -0
  42. data/app/views/auth/needs_profile.rhtml +14 -0
  43. data/app/views/auth/openid_login.html.erb +6 -0
  44. data/app/views/auth/resend_activation.rhtml +3 -0
  45. data/app/views/auth_notifier/account_activation.rhtml +13 -0
  46. data/app/views/auth_notifier/generated_password.rhtml +10 -0
  47. data/app/views/permission/_add_grantee.rhtml +47 -0
  48. data/app/views/permission/_role_member.rhtml +8 -0
  49. data/app/views/permission/_show.rhtml +81 -0
  50. data/app/views/permission/_userpicker.rhtml +0 -0
  51. data/app/views/permission/add_role_member.rhtml +3 -0
  52. data/app/views/permission/admin.rhtml +45 -0
  53. data/app/views/permission/edit.rhtml +9 -0
  54. data/app/views/permission/edit_role.rhtml +63 -0
  55. data/app/views/permission/grant.rhtml +10 -0
  56. data/db/migrate/002_create_accounts.rb +17 -0
  57. data/db/migrate/003_create_email_addresses.rb +17 -0
  58. data/db/migrate/004_create_people.rb +24 -0
  59. data/db/migrate/013_simplify_signup.rb +15 -0
  60. data/db/migrate/014_create_permissions.rb +16 -0
  61. data/db/migrate/015_create_roles.rb +18 -0
  62. data/db/migrate/016_refactor_people.rb +36 -0
  63. data/db/migrate/017_people_permissions.rb +9 -0
  64. data/generators/ae_users/USAGE +14 -0
  65. data/generators/ae_users/ae_users_generator.rb +12 -0
  66. data/generators/ae_users/templates/add.png +0 -0
  67. data/generators/ae_users/templates/admin.png +0 -0
  68. data/generators/ae_users/templates/group.png +0 -0
  69. data/generators/ae_users/templates/logout.png +0 -0
  70. data/generators/ae_users/templates/migration.rb +25 -0
  71. data/generators/ae_users/templates/openid.gif +0 -0
  72. data/generators/ae_users/templates/remove.png +0 -0
  73. data/generators/ae_users/templates/user.png +0 -0
  74. data/init.rb +1 -0
  75. data/install.rb +1 -0
  76. data/lib/ae_users.rb +781 -0
  77. data/rails/init.rb +20 -0
  78. data/tasks/ae_users_tasks.rake +4 -0
  79. data/test/ae_users_test.rb +8 -0
  80. data/uninstall.rb +1 -0
  81. metadata +134 -0
@@ -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
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ #task :ae_users do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1,8 @@
1
+ require 'test/unit'
2
+
3
+ class AeUsersTest < Test::Unit::TestCase
4
+ # Replace this with your real tests.
5
+ def test_this_plugin
6
+ flunk
7
+ end
8
+ end
@@ -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