headstart 0.1.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.
- data/LICENSE +20 -0
- data/README.rdoc +117 -0
- data/Rakefile +95 -0
- data/VERSION +1 -0
- data/app/controllers/headstart/confirmations_controller.rb +76 -0
- data/app/controllers/headstart/impersonations_controller.rb +44 -0
- data/app/controllers/headstart/passwords_controller.rb +93 -0
- data/app/controllers/headstart/sessions_controller.rb +76 -0
- data/app/controllers/headstart/users_controller.rb +85 -0
- data/app/models/deliver_change_password_job.rb +19 -0
- data/app/models/deliver_welcome_job.rb +17 -0
- data/app/models/generic_mailer.rb +31 -0
- data/app/models/headstart_mailer.rb +28 -0
- data/app/models/impersonation.rb +26 -0
- data/app/models/mimi_mailer.rb +30 -0
- data/app/views/generic_mailer/change_password.html.erb +9 -0
- data/app/views/generic_mailer/confirmation.html.erb +5 -0
- data/app/views/generic_mailer/welcome.html.erb +1 -0
- data/app/views/impersonations/index.html.erb +5 -0
- data/app/views/passwords/edit.html.erb +23 -0
- data/app/views/passwords/new.html.erb +15 -0
- data/app/views/sessions/new.html.erb +48 -0
- data/app/views/users/_form.html.erb +21 -0
- data/app/views/users/edit.html.erb +6 -0
- data/app/views/users/new.html.erb +6 -0
- data/app/views/users/show.html.erb +8 -0
- data/generators/headstart/USAGE +1 -0
- data/generators/headstart/headstart_generator.rb +86 -0
- data/generators/headstart/lib/insert_commands.rb +33 -0
- data/generators/headstart/lib/rake_commands.rb +22 -0
- data/generators/headstart/templates/README +20 -0
- data/generators/headstart/templates/app/controllers/sessions_controller.rb +6 -0
- data/generators/headstart/templates/app/views/sessions/index.html.erb +1 -0
- data/generators/headstart/templates/application.html.erb +75 -0
- data/generators/headstart/templates/factories.rb +23 -0
- data/generators/headstart/templates/headstart.rb +25 -0
- data/generators/headstart/templates/headstart.yml +45 -0
- data/generators/headstart/templates/layout.css +353 -0
- data/generators/headstart/templates/migrations/create_users.rb +26 -0
- data/generators/headstart/templates/migrations/update_users.rb +44 -0
- data/generators/headstart/templates/report.css +69 -0
- data/generators/headstart/templates/reset.css +1 -0
- data/generators/headstart/templates/style.css +31 -0
- data/generators/headstart/templates/text.css +1 -0
- data/generators/headstart/templates/user.rb +3 -0
- data/generators/headstart/templates/xd_receiver.html +10 -0
- data/generators/headstart/templates/xd_receiver_ssl.html +10 -0
- data/generators/headstart_admin/USAGE +1 -0
- data/generators/headstart_admin/headstart_admin_generator.rb +32 -0
- data/generators/headstart_admin/lib/insert_commands.rb +33 -0
- data/generators/headstart_admin/templates/README +16 -0
- data/generators/headstart_admin/templates/app/controllers/admin/admin_controller.rb +17 -0
- data/generators/headstart_admin/templates/app/controllers/admin/users_controller.rb +52 -0
- data/generators/headstart_admin/templates/app/views/admin/admin/index.html.erb +2 -0
- data/generators/headstart_admin/templates/app/views/admin/users/_form.html.erb +25 -0
- data/generators/headstart_admin/templates/app/views/admin/users/edit.html.erb +6 -0
- data/generators/headstart_admin/templates/app/views/admin/users/index.html.erb +7 -0
- data/generators/headstart_admin/templates/app/views/admin/users/new.html.erb +6 -0
- data/generators/headstart_admin/templates/app/views/admin/users/show.html.erb +10 -0
- data/generators/headstart_admin/templates/test/integration/admin/users_test.rb +201 -0
- data/generators/headstart_tests/USAGE +1 -0
- data/generators/headstart_tests/headstart_tests_generator.rb +21 -0
- data/generators/headstart_tests/templates/README +58 -0
- data/generators/headstart_tests/templates/test/integration/edit_profile_test.rb +35 -0
- data/generators/headstart_tests/templates/test/integration/facebook_test.rb +61 -0
- data/generators/headstart_tests/templates/test/integration/impersonation_test.rb +39 -0
- data/generators/headstart_tests/templates/test/integration/password_reset_test.rb +128 -0
- data/generators/headstart_tests/templates/test/integration/sign_in_test.rb +66 -0
- data/generators/headstart_tests/templates/test/integration/sign_out_test.rb +28 -0
- data/generators/headstart_tests/templates/test/integration/sign_up_test.rb +47 -0
- data/lib/headstart/authentication.rb +138 -0
- data/lib/headstart/configuration.rb +34 -0
- data/lib/headstart/extensions/errors.rb +6 -0
- data/lib/headstart/extensions/rescue.rb +5 -0
- data/lib/headstart/routes.rb +67 -0
- data/lib/headstart/user.rb +279 -0
- data/lib/headstart.rb +7 -0
- data/rails/init.rb +4 -0
- data/shoulda_macros/headstart.rb +244 -0
- data/test/controllers/passwords_controller_test.rb +184 -0
- data/test/controllers/sessions_controller_test.rb +129 -0
- data/test/controllers/users_controller_test.rb +57 -0
- data/test/models/headstart_mailer_test.rb +52 -0
- data/test/models/impersonation_test.rb +25 -0
- data/test/models/user_test.rb +213 -0
- data/test/rails_root/app/controllers/accounts_controller.rb +10 -0
- data/test/rails_root/app/controllers/application_controller.rb +6 -0
- data/test/rails_root/app/helpers/application_helper.rb +5 -0
- data/test/rails_root/app/helpers/confirmations_helper.rb +2 -0
- data/test/rails_root/app/helpers/passwords_helper.rb +2 -0
- data/test/rails_root/config/boot.rb +110 -0
- data/test/rails_root/config/environment.rb +22 -0
- data/test/rails_root/config/environments/development.rb +19 -0
- data/test/rails_root/config/environments/production.rb +1 -0
- data/test/rails_root/config/environments/test.rb +37 -0
- data/test/rails_root/config/initializers/inflections.rb +10 -0
- data/test/rails_root/config/initializers/mime_types.rb +5 -0
- data/test/rails_root/config/initializers/requires.rb +13 -0
- data/test/rails_root/config/initializers/time_formats.rb +4 -0
- data/test/rails_root/config/routes.rb +9 -0
- data/test/rails_root/public/dispatch.rb +10 -0
- data/test/rails_root/script/create_project.rb +52 -0
- data/test/rails_root/test/functional/accounts_controller_test.rb +23 -0
- data/test/test_helper.rb +21 -0
- metadata +232 -0
metadata
ADDED
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: headstart
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
prerelease: false
|
|
5
|
+
segments:
|
|
6
|
+
- 0
|
|
7
|
+
- 1
|
|
8
|
+
- 0
|
|
9
|
+
version: 0.1.0
|
|
10
|
+
platform: ruby
|
|
11
|
+
authors:
|
|
12
|
+
- Brian Burridge
|
|
13
|
+
autorequire:
|
|
14
|
+
bindir: bin
|
|
15
|
+
cert_chain: []
|
|
16
|
+
|
|
17
|
+
date: 2010-04-16 00:00:00 -04:00
|
|
18
|
+
default_executable:
|
|
19
|
+
dependencies:
|
|
20
|
+
- !ruby/object:Gem::Dependency
|
|
21
|
+
name: mini_fb
|
|
22
|
+
prerelease: false
|
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
24
|
+
requirements:
|
|
25
|
+
- - "="
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
segments:
|
|
28
|
+
- 0
|
|
29
|
+
- 2
|
|
30
|
+
- 2
|
|
31
|
+
version: 0.2.2
|
|
32
|
+
type: :runtime
|
|
33
|
+
version_requirements: *id001
|
|
34
|
+
- !ruby/object:Gem::Dependency
|
|
35
|
+
name: delayed_job
|
|
36
|
+
prerelease: false
|
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - "="
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
segments:
|
|
42
|
+
- 1
|
|
43
|
+
- 8
|
|
44
|
+
- 4
|
|
45
|
+
version: 1.8.4
|
|
46
|
+
type: :runtime
|
|
47
|
+
version_requirements: *id002
|
|
48
|
+
- !ruby/object:Gem::Dependency
|
|
49
|
+
name: mad_mimi_mailer
|
|
50
|
+
prerelease: false
|
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - "="
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
segments:
|
|
56
|
+
- 0
|
|
57
|
+
- 0
|
|
58
|
+
- 7
|
|
59
|
+
version: 0.0.7
|
|
60
|
+
type: :runtime
|
|
61
|
+
version_requirements: *id003
|
|
62
|
+
- !ruby/object:Gem::Dependency
|
|
63
|
+
name: create-rails-dev-db
|
|
64
|
+
prerelease: false
|
|
65
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
|
66
|
+
requirements:
|
|
67
|
+
- - "="
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
segments:
|
|
70
|
+
- 0
|
|
71
|
+
- 1
|
|
72
|
+
- 0
|
|
73
|
+
version: 0.1.0
|
|
74
|
+
type: :runtime
|
|
75
|
+
version_requirements: *id004
|
|
76
|
+
- !ruby/object:Gem::Dependency
|
|
77
|
+
name: shoulda
|
|
78
|
+
prerelease: false
|
|
79
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
|
80
|
+
requirements:
|
|
81
|
+
- - ">="
|
|
82
|
+
- !ruby/object:Gem::Version
|
|
83
|
+
segments:
|
|
84
|
+
- 0
|
|
85
|
+
version: "0"
|
|
86
|
+
type: :development
|
|
87
|
+
version_requirements: *id005
|
|
88
|
+
description: Rails authentication by email and password with integrated dependencies to MadMimi. Also provides administrative user impersonation. Based on Headstart
|
|
89
|
+
email: bburridg@gmail.com
|
|
90
|
+
executables: []
|
|
91
|
+
|
|
92
|
+
extensions: []
|
|
93
|
+
|
|
94
|
+
extra_rdoc_files:
|
|
95
|
+
- LICENSE
|
|
96
|
+
- README.rdoc
|
|
97
|
+
files:
|
|
98
|
+
- LICENSE
|
|
99
|
+
- README.rdoc
|
|
100
|
+
- Rakefile
|
|
101
|
+
- VERSION
|
|
102
|
+
- app/controllers/headstart/impersonations_controller.rb
|
|
103
|
+
- app/controllers/headstart/confirmations_controller.rb
|
|
104
|
+
- app/controllers/headstart/passwords_controller.rb
|
|
105
|
+
- app/controllers/headstart/sessions_controller.rb
|
|
106
|
+
- app/controllers/headstart/users_controller.rb
|
|
107
|
+
- app/models/headstart_mailer.rb
|
|
108
|
+
- app/models/deliver_change_password_job.rb
|
|
109
|
+
- app/models/deliver_welcome_job.rb
|
|
110
|
+
- app/models/mimi_mailer.rb
|
|
111
|
+
- app/models/generic_mailer.rb
|
|
112
|
+
- app/models/impersonation.rb
|
|
113
|
+
- app/views/generic_mailer/change_password.html.erb
|
|
114
|
+
- app/views/generic_mailer/confirmation.html.erb
|
|
115
|
+
- app/views/generic_mailer/welcome.html.erb
|
|
116
|
+
- app/views/impersonations/index.html.erb
|
|
117
|
+
- app/views/passwords/edit.html.erb
|
|
118
|
+
- app/views/passwords/new.html.erb
|
|
119
|
+
- app/views/sessions/new.html.erb
|
|
120
|
+
- app/views/users/_form.html.erb
|
|
121
|
+
- app/views/users/edit.html.erb
|
|
122
|
+
- app/views/users/new.html.erb
|
|
123
|
+
- app/views/users/show.html.erb
|
|
124
|
+
- generators/headstart/USAGE
|
|
125
|
+
- generators/headstart/headstart_generator.rb
|
|
126
|
+
- generators/headstart/lib/insert_commands.rb
|
|
127
|
+
- generators/headstart/lib/rake_commands.rb
|
|
128
|
+
- generators/headstart/templates/README
|
|
129
|
+
- generators/headstart/templates/app/controllers/sessions_controller.rb
|
|
130
|
+
- generators/headstart/templates/app/views/sessions/index.html.erb
|
|
131
|
+
- generators/headstart/templates/application.html.erb
|
|
132
|
+
- generators/headstart/templates/headstart.rb
|
|
133
|
+
- generators/headstart/templates/headstart.yml
|
|
134
|
+
- generators/headstart/templates/factories.rb
|
|
135
|
+
- generators/headstart/templates/migrations/create_users.rb
|
|
136
|
+
- generators/headstart/templates/migrations/update_users.rb
|
|
137
|
+
- generators/headstart/templates/report.css
|
|
138
|
+
- generators/headstart/templates/reset.css
|
|
139
|
+
- generators/headstart/templates/style.css
|
|
140
|
+
- generators/headstart/templates/text.css
|
|
141
|
+
- generators/headstart/templates/layout.css
|
|
142
|
+
- generators/headstart/templates/user.rb
|
|
143
|
+
- generators/headstart/templates/xd_receiver.html
|
|
144
|
+
- generators/headstart/templates/xd_receiver_ssl.html
|
|
145
|
+
- generators/headstart_admin/USAGE
|
|
146
|
+
- generators/headstart_admin/headstart_admin_generator.rb
|
|
147
|
+
- generators/headstart_admin/lib/insert_commands.rb
|
|
148
|
+
- generators/headstart_admin/templates/README
|
|
149
|
+
- generators/headstart_admin/templates/app/controllers/admin/admin_controller.rb
|
|
150
|
+
- generators/headstart_admin/templates/app/controllers/admin/users_controller.rb
|
|
151
|
+
- generators/headstart_admin/templates/app/views/admin/admin/index.html.erb
|
|
152
|
+
- generators/headstart_admin/templates/app/views/admin/users/_form.html.erb
|
|
153
|
+
- generators/headstart_admin/templates/app/views/admin/users/edit.html.erb
|
|
154
|
+
- generators/headstart_admin/templates/app/views/admin/users/index.html.erb
|
|
155
|
+
- generators/headstart_admin/templates/app/views/admin/users/new.html.erb
|
|
156
|
+
- generators/headstart_admin/templates/app/views/admin/users/show.html.erb
|
|
157
|
+
- generators/headstart_admin/templates/test/integration/admin/users_test.rb
|
|
158
|
+
- generators/headstart_tests/USAGE
|
|
159
|
+
- generators/headstart_tests/headstart_tests_generator.rb
|
|
160
|
+
- generators/headstart_tests/templates/README
|
|
161
|
+
- generators/headstart_tests/templates/test/integration/edit_profile_test.rb
|
|
162
|
+
- generators/headstart_tests/templates/test/integration/facebook_test.rb
|
|
163
|
+
- generators/headstart_tests/templates/test/integration/impersonation_test.rb
|
|
164
|
+
- generators/headstart_tests/templates/test/integration/password_reset_test.rb
|
|
165
|
+
- generators/headstart_tests/templates/test/integration/sign_in_test.rb
|
|
166
|
+
- generators/headstart_tests/templates/test/integration/sign_out_test.rb
|
|
167
|
+
- generators/headstart_tests/templates/test/integration/sign_up_test.rb
|
|
168
|
+
- lib/headstart.rb
|
|
169
|
+
- lib/headstart/authentication.rb
|
|
170
|
+
- lib/headstart/configuration.rb
|
|
171
|
+
- lib/headstart/extensions/errors.rb
|
|
172
|
+
- lib/headstart/extensions/rescue.rb
|
|
173
|
+
- lib/headstart/routes.rb
|
|
174
|
+
- lib/headstart/user.rb
|
|
175
|
+
- rails/init.rb
|
|
176
|
+
- shoulda_macros/headstart.rb
|
|
177
|
+
has_rdoc: true
|
|
178
|
+
homepage: http://github.com/envylabs/headstart
|
|
179
|
+
licenses: []
|
|
180
|
+
|
|
181
|
+
post_install_message:
|
|
182
|
+
rdoc_options:
|
|
183
|
+
- --charset=UTF-8
|
|
184
|
+
require_paths:
|
|
185
|
+
- lib
|
|
186
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
187
|
+
requirements:
|
|
188
|
+
- - ">="
|
|
189
|
+
- !ruby/object:Gem::Version
|
|
190
|
+
segments:
|
|
191
|
+
- 0
|
|
192
|
+
version: "0"
|
|
193
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
|
+
requirements:
|
|
195
|
+
- - ">="
|
|
196
|
+
- !ruby/object:Gem::Version
|
|
197
|
+
segments:
|
|
198
|
+
- 0
|
|
199
|
+
version: "0"
|
|
200
|
+
requirements: []
|
|
201
|
+
|
|
202
|
+
rubyforge_project:
|
|
203
|
+
rubygems_version: 1.3.6
|
|
204
|
+
signing_key:
|
|
205
|
+
specification_version: 3
|
|
206
|
+
summary: Rails authentication by email and password
|
|
207
|
+
test_files:
|
|
208
|
+
- test/controllers/passwords_controller_test.rb
|
|
209
|
+
- test/controllers/sessions_controller_test.rb
|
|
210
|
+
- test/controllers/users_controller_test.rb
|
|
211
|
+
- test/models/headstart_mailer_test.rb
|
|
212
|
+
- test/models/impersonation_test.rb
|
|
213
|
+
- test/models/user_test.rb
|
|
214
|
+
- test/rails_root/app/controllers/accounts_controller.rb
|
|
215
|
+
- test/rails_root/app/controllers/application_controller.rb
|
|
216
|
+
- test/rails_root/app/helpers/application_helper.rb
|
|
217
|
+
- test/rails_root/app/helpers/confirmations_helper.rb
|
|
218
|
+
- test/rails_root/app/helpers/passwords_helper.rb
|
|
219
|
+
- test/rails_root/config/boot.rb
|
|
220
|
+
- test/rails_root/config/environment.rb
|
|
221
|
+
- test/rails_root/config/environments/development.rb
|
|
222
|
+
- test/rails_root/config/environments/production.rb
|
|
223
|
+
- test/rails_root/config/environments/test.rb
|
|
224
|
+
- test/rails_root/config/initializers/inflections.rb
|
|
225
|
+
- test/rails_root/config/initializers/mime_types.rb
|
|
226
|
+
- test/rails_root/config/initializers/requires.rb
|
|
227
|
+
- test/rails_root/config/initializers/time_formats.rb
|
|
228
|
+
- test/rails_root/config/routes.rb
|
|
229
|
+
- test/rails_root/public/dispatch.rb
|
|
230
|
+
- test/rails_root/script/create_project.rb
|
|
231
|
+
- test/rails_root/test/functional/accounts_controller_test.rb
|
|
232
|
+
- test/test_helper.rb
|