muck-users 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +27 -0
- data/Rakefile +96 -0
- data/VERSION +1 -0
- data/app/controllers/admin/muck/roles_controller.rb +57 -0
- data/app/controllers/admin/muck/users_controller.rb +122 -0
- data/app/controllers/muck/activations_controller.rb +31 -0
- data/app/controllers/muck/password_resets_controller.rb +81 -0
- data/app/controllers/muck/user_sessions_controller.rb +40 -0
- data/app/controllers/muck/username_request_controller.rb +43 -0
- data/app/controllers/muck/users_controller.rb +211 -0
- data/app/models/muck_user_mailer.rb +53 -0
- data/app/models/permission.rb +17 -0
- data/app/models/role.rb +25 -0
- data/app/views/admin/roles/_role.html.erb +9 -0
- data/app/views/admin/roles/edit.html.erb +17 -0
- data/app/views/admin/roles/index.html.erb +8 -0
- data/app/views/admin/roles/new.html.erb +16 -0
- data/app/views/admin/roles/show.html.erb +7 -0
- data/app/views/admin/users/_activate.html.erb +5 -0
- data/app/views/admin/users/_ajax_search_box.html.erb +6 -0
- data/app/views/admin/users/_row.html.erb +6 -0
- data/app/views/admin/users/_search_box.html.erb +6 -0
- data/app/views/admin/users/_table.html.erb +21 -0
- data/app/views/admin/users/_user_navigation.html.erb +11 -0
- data/app/views/admin/users/do_search.html.erb +5 -0
- data/app/views/admin/users/inactive.html.erb +8 -0
- data/app/views/admin/users/inactive_emails.html.erb +6 -0
- data/app/views/admin/users/index.html.erb +12 -0
- data/app/views/admin/users/search.html.erb +5 -0
- data/app/views/muck_user_mailer/activation_confirmation.html.erb +7 -0
- data/app/views/muck_user_mailer/activation_instructions.html.erb +7 -0
- data/app/views/muck_user_mailer/password_not_active_instructions.html.erb +10 -0
- data/app/views/muck_user_mailer/password_reset_instructions.html.erb +10 -0
- data/app/views/muck_user_mailer/username_request.html.erb +3 -0
- data/app/views/muck_user_mailer/welcome_notification.html.erb +5 -0
- data/app/views/password_resets/edit.html.erb +9 -0
- data/app/views/password_resets/new.html.erb +11 -0
- data/app/views/user_sessions/new.html.erb +17 -0
- data/app/views/username_request/new.html.erb +11 -0
- data/app/views/users/_user.html.erb +15 -0
- data/app/views/users/activation_confirmation.html.erb +1 -0
- data/app/views/users/activation_instructions.html.erb +1 -0
- data/app/views/users/edit.html.erb +45 -0
- data/app/views/users/new.html.erb +51 -0
- data/app/views/users/show.html.erb +4 -0
- data/app/views/users/welcome.html.erb +4 -0
- data/config/muck_users_routes.rb +56 -0
- data/db/migrate/20090320174818_create_muck_permissions_and_roles.rb +16 -0
- data/db/migrate/20090512013727_add_photo_to_user.rb +13 -0
- data/install.rb +1 -0
- data/lib/action_controller/authentic_application.rb +213 -0
- data/lib/active_record/acts/muck_user.rb +192 -0
- data/lib/muck-users/exceptions.rb +5 -0
- data/lib/muck-users/initialize_routes.rb +8 -0
- data/lib/muck-users/tasks.rb +46 -0
- data/lib/muck-users.rb +7 -0
- data/locales/ar.yml +124 -0
- data/locales/bg.yml +124 -0
- data/locales/ca.yml +124 -0
- data/locales/cs.yml +124 -0
- data/locales/da.yml +124 -0
- data/locales/de.yml +124 -0
- data/locales/el.yml +124 -0
- data/locales/en.yml +127 -0
- data/locales/es.yml +124 -0
- data/locales/fr.yml +124 -0
- data/locales/it.yml +124 -0
- data/locales/iw.yml +124 -0
- data/locales/ja.yml +124 -0
- data/locales/ko.yml +124 -0
- data/locales/lt.yml +124 -0
- data/locales/lv.yml +124 -0
- data/locales/nl.yml +124 -0
- data/locales/no.yml +125 -0
- data/locales/pl.yml +124 -0
- data/locales/pt.yml +124 -0
- data/locales/ro.yml +124 -0
- data/locales/ru.yml +124 -0
- data/locales/sk.yml +124 -0
- data/locales/sl.yml +124 -0
- data/locales/sr.yml +124 -0
- data/locales/sv.yml +124 -0
- data/locales/tl.yml +124 -0
- data/locales/uk.yml +124 -0
- data/locales/vi.yml +124 -0
- data/locales/zh-CN.yml +124 -0
- data/locales/zh-TW.yml +124 -0
- data/locales/zh.yml +124 -0
- data/muck-users.gemspec +170 -0
- data/pkg/muck-users-0.1.0.gem +0 -0
- data/public/images/profile_default.jpg +0 -0
- data/rails/init.rb +18 -0
- data/tasks/muck_users_engine.rake +27 -0
- data/tasks/rails.rake +2 -0
- data/test/factories.rb +56 -0
- data/test/functional/activations_controller_test.rb +73 -0
- data/test/functional/admin/roles_controller_test.rb +10 -0
- data/test/functional/admin/users_controller_test.rb +55 -0
- data/test/functional/password_resets_controller_test.rb +60 -0
- data/test/functional/user_sessions_controller_test.rb +62 -0
- data/test/functional/users_controller_test.rb +255 -0
- data/test/shoulda_macros/controller.rb +43 -0
- data/test/shoulda_macros/forms.rb +28 -0
- data/test/shoulda_macros/models.rb +34 -0
- data/test/shoulda_macros/pagination.rb +48 -0
- data/test/shoulda_macros/plugins.rb +30 -0
- data/test/test_helper.rb +36 -0
- data/test/unit/muck_user_mailer_test.rb +64 -0
- data/test/unit/permission_test.rb +19 -0
- data/test/unit/role_test.rb +17 -0
- data/uninstall.rb +1 -0
- metadata +198 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
2
|
+
|
3
|
+
class RoleTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
should_validate_presence_of :rolename
|
6
|
+
should_have_many :permissions
|
7
|
+
|
8
|
+
context "Create new role" do
|
9
|
+
should "should create a new role" do
|
10
|
+
assert_difference 'Role.count' do
|
11
|
+
new_role = Role.create(:rolename => "new role")
|
12
|
+
new_role.save
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
data/uninstall.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# Uninstall hook code here
|
metadata
ADDED
@@ -0,0 +1,198 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: muck-users
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Justin Ball
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-06-11 00:00:00 -06:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: authlogic
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: muck-engine
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "0"
|
34
|
+
version:
|
35
|
+
description: Easily add user signup, login and other features to your application
|
36
|
+
email: justinball@gmail.com
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files:
|
42
|
+
- README.rdoc
|
43
|
+
files:
|
44
|
+
- MIT-LICENSE
|
45
|
+
- README.rdoc
|
46
|
+
- Rakefile
|
47
|
+
- VERSION
|
48
|
+
- app/controllers/admin/muck/roles_controller.rb
|
49
|
+
- app/controllers/admin/muck/users_controller.rb
|
50
|
+
- app/controllers/muck/activations_controller.rb
|
51
|
+
- app/controllers/muck/password_resets_controller.rb
|
52
|
+
- app/controllers/muck/user_sessions_controller.rb
|
53
|
+
- app/controllers/muck/username_request_controller.rb
|
54
|
+
- app/controllers/muck/users_controller.rb
|
55
|
+
- app/models/muck_user_mailer.rb
|
56
|
+
- app/models/permission.rb
|
57
|
+
- app/models/role.rb
|
58
|
+
- app/views/admin/roles/_role.html.erb
|
59
|
+
- app/views/admin/roles/edit.html.erb
|
60
|
+
- app/views/admin/roles/index.html.erb
|
61
|
+
- app/views/admin/roles/new.html.erb
|
62
|
+
- app/views/admin/roles/show.html.erb
|
63
|
+
- app/views/admin/users/_activate.html.erb
|
64
|
+
- app/views/admin/users/_ajax_search_box.html.erb
|
65
|
+
- app/views/admin/users/_row.html.erb
|
66
|
+
- app/views/admin/users/_search_box.html.erb
|
67
|
+
- app/views/admin/users/_table.html.erb
|
68
|
+
- app/views/admin/users/_user_navigation.html.erb
|
69
|
+
- app/views/admin/users/do_search.html.erb
|
70
|
+
- app/views/admin/users/inactive.html.erb
|
71
|
+
- app/views/admin/users/inactive_emails.html.erb
|
72
|
+
- app/views/admin/users/index.html.erb
|
73
|
+
- app/views/admin/users/search.html.erb
|
74
|
+
- app/views/muck_user_mailer/activation_confirmation.html.erb
|
75
|
+
- app/views/muck_user_mailer/activation_instructions.html.erb
|
76
|
+
- app/views/muck_user_mailer/password_not_active_instructions.html.erb
|
77
|
+
- app/views/muck_user_mailer/password_reset_instructions.html.erb
|
78
|
+
- app/views/muck_user_mailer/username_request.html.erb
|
79
|
+
- app/views/muck_user_mailer/welcome_notification.html.erb
|
80
|
+
- app/views/password_resets/edit.html.erb
|
81
|
+
- app/views/password_resets/new.html.erb
|
82
|
+
- app/views/user_sessions/new.html.erb
|
83
|
+
- app/views/username_request/new.html.erb
|
84
|
+
- app/views/users/_user.html.erb
|
85
|
+
- app/views/users/activation_confirmation.html.erb
|
86
|
+
- app/views/users/activation_instructions.html.erb
|
87
|
+
- app/views/users/edit.html.erb
|
88
|
+
- app/views/users/new.html.erb
|
89
|
+
- app/views/users/show.html.erb
|
90
|
+
- app/views/users/welcome.html.erb
|
91
|
+
- config/muck_users_routes.rb
|
92
|
+
- db/migrate/20090320174818_create_muck_permissions_and_roles.rb
|
93
|
+
- db/migrate/20090512013727_add_photo_to_user.rb
|
94
|
+
- install.rb
|
95
|
+
- lib/action_controller/authentic_application.rb
|
96
|
+
- lib/active_record/acts/muck_user.rb
|
97
|
+
- lib/muck-users.rb
|
98
|
+
- lib/muck-users/exceptions.rb
|
99
|
+
- lib/muck-users/initialize_routes.rb
|
100
|
+
- lib/muck-users/tasks.rb
|
101
|
+
- locales/ar.yml
|
102
|
+
- locales/bg.yml
|
103
|
+
- locales/ca.yml
|
104
|
+
- locales/cs.yml
|
105
|
+
- locales/da.yml
|
106
|
+
- locales/de.yml
|
107
|
+
- locales/el.yml
|
108
|
+
- locales/en.yml
|
109
|
+
- locales/es.yml
|
110
|
+
- locales/fr.yml
|
111
|
+
- locales/it.yml
|
112
|
+
- locales/iw.yml
|
113
|
+
- locales/ja.yml
|
114
|
+
- locales/ko.yml
|
115
|
+
- locales/lt.yml
|
116
|
+
- locales/lv.yml
|
117
|
+
- locales/nl.yml
|
118
|
+
- locales/no.yml
|
119
|
+
- locales/pl.yml
|
120
|
+
- locales/pt.yml
|
121
|
+
- locales/ro.yml
|
122
|
+
- locales/ru.yml
|
123
|
+
- locales/sk.yml
|
124
|
+
- locales/sl.yml
|
125
|
+
- locales/sr.yml
|
126
|
+
- locales/sv.yml
|
127
|
+
- locales/tl.yml
|
128
|
+
- locales/uk.yml
|
129
|
+
- locales/vi.yml
|
130
|
+
- locales/zh-CN.yml
|
131
|
+
- locales/zh-TW.yml
|
132
|
+
- locales/zh.yml
|
133
|
+
- muck-users.gemspec
|
134
|
+
- pkg/muck-users-0.1.0.gem
|
135
|
+
- public/images/profile_default.jpg
|
136
|
+
- rails/init.rb
|
137
|
+
- tasks/muck_users_engine.rake
|
138
|
+
- tasks/rails.rake
|
139
|
+
- test/factories.rb
|
140
|
+
- test/functional/activations_controller_test.rb
|
141
|
+
- test/functional/admin/roles_controller_test.rb
|
142
|
+
- test/functional/admin/users_controller_test.rb
|
143
|
+
- test/functional/password_resets_controller_test.rb
|
144
|
+
- test/functional/user_sessions_controller_test.rb
|
145
|
+
- test/functional/users_controller_test.rb
|
146
|
+
- test/shoulda_macros/controller.rb
|
147
|
+
- test/shoulda_macros/forms.rb
|
148
|
+
- test/shoulda_macros/models.rb
|
149
|
+
- test/shoulda_macros/pagination.rb
|
150
|
+
- test/shoulda_macros/plugins.rb
|
151
|
+
- test/test_helper.rb
|
152
|
+
- test/unit/muck_user_mailer_test.rb
|
153
|
+
- test/unit/permission_test.rb
|
154
|
+
- test/unit/role_test.rb
|
155
|
+
- uninstall.rb
|
156
|
+
has_rdoc: true
|
157
|
+
homepage: http://github.com/jbasdf/muck-users
|
158
|
+
post_install_message:
|
159
|
+
rdoc_options:
|
160
|
+
- --charset=UTF-8
|
161
|
+
require_paths:
|
162
|
+
- lib
|
163
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: "0"
|
168
|
+
version:
|
169
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: "0"
|
174
|
+
version:
|
175
|
+
requirements: []
|
176
|
+
|
177
|
+
rubyforge_project: muck-users
|
178
|
+
rubygems_version: 1.3.1
|
179
|
+
signing_key:
|
180
|
+
specification_version: 2
|
181
|
+
summary: Easy to use user engine for Rails
|
182
|
+
test_files:
|
183
|
+
- test/factories.rb
|
184
|
+
- test/functional/activations_controller_test.rb
|
185
|
+
- test/functional/admin/roles_controller_test.rb
|
186
|
+
- test/functional/admin/users_controller_test.rb
|
187
|
+
- test/functional/password_resets_controller_test.rb
|
188
|
+
- test/functional/user_sessions_controller_test.rb
|
189
|
+
- test/functional/users_controller_test.rb
|
190
|
+
- test/shoulda_macros/controller.rb
|
191
|
+
- test/shoulda_macros/forms.rb
|
192
|
+
- test/shoulda_macros/models.rb
|
193
|
+
- test/shoulda_macros/pagination.rb
|
194
|
+
- test/shoulda_macros/plugins.rb
|
195
|
+
- test/test_helper.rb
|
196
|
+
- test/unit/muck_user_mailer_test.rb
|
197
|
+
- test/unit/permission_test.rb
|
198
|
+
- test/unit/role_test.rb
|