dcu-devise 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +378 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +260 -0
- data/Rakefile +53 -0
- data/TODO +2 -0
- data/app/controllers/confirmations_controller.rb +33 -0
- data/app/controllers/passwords_controller.rb +41 -0
- data/app/controllers/registrations_controller.rb +53 -0
- data/app/controllers/sessions_controller.rb +44 -0
- data/app/controllers/unlocks_controller.rb +41 -0
- data/app/models/devise_mailer.rb +68 -0
- data/app/views/confirmations/new.html.erb +12 -0
- data/app/views/devise_mailer/confirmation_instructions.html.erb +5 -0
- data/app/views/devise_mailer/reset_password_instructions.html.erb +8 -0
- data/app/views/devise_mailer/unlock_instructions.html.erb +7 -0
- data/app/views/passwords/edit.html.erb +16 -0
- data/app/views/passwords/new.html.erb +12 -0
- data/app/views/registrations/edit.html.erb +25 -0
- data/app/views/registrations/new.html.erb +17 -0
- data/app/views/sessions/new.html.erb +17 -0
- data/app/views/shared/_devise_links.erb +19 -0
- data/app/views/unlocks/new.html.erb +12 -0
- data/generators/devise/USAGE +5 -0
- data/generators/devise/devise_generator.rb +15 -0
- data/generators/devise/lib/route_devise.rb +32 -0
- data/generators/devise/templates/migration.rb +23 -0
- data/generators/devise/templates/model.rb +9 -0
- data/generators/devise_install/USAGE +3 -0
- data/generators/devise_install/devise_install_generator.rb +15 -0
- data/generators/devise_install/templates/README +23 -0
- data/generators/devise_install/templates/devise.rb +105 -0
- data/generators/devise_views/USAGE +3 -0
- data/generators/devise_views/devise_views_generator.rb +21 -0
- data/lib/devise.rb +264 -0
- data/lib/devise/controllers/helpers.rb +200 -0
- data/lib/devise/controllers/internal_helpers.rb +129 -0
- data/lib/devise/controllers/url_helpers.rb +41 -0
- data/lib/devise/encryptors/authlogic_sha512.rb +21 -0
- data/lib/devise/encryptors/base.rb +20 -0
- data/lib/devise/encryptors/bcrypt.rb +21 -0
- data/lib/devise/encryptors/clearance_sha1.rb +19 -0
- data/lib/devise/encryptors/restful_authentication_sha1.rb +22 -0
- data/lib/devise/encryptors/sha1.rb +27 -0
- data/lib/devise/encryptors/sha512.rb +27 -0
- data/lib/devise/failure_app.rb +65 -0
- data/lib/devise/hooks/activatable.rb +15 -0
- data/lib/devise/hooks/rememberable.rb +32 -0
- data/lib/devise/hooks/timeoutable.rb +18 -0
- data/lib/devise/hooks/trackable.rb +18 -0
- data/lib/devise/locales/en.yml +35 -0
- data/lib/devise/mapping.rb +128 -0
- data/lib/devise/models.rb +117 -0
- data/lib/devise/models/activatable.rb +16 -0
- data/lib/devise/models/confirmable.rb +162 -0
- data/lib/devise/models/database_authenticatable.rb +144 -0
- data/lib/devise/models/http_authenticatable.rb +21 -0
- data/lib/devise/models/lockable.rb +150 -0
- data/lib/devise/models/recoverable.rb +80 -0
- data/lib/devise/models/registerable.rb +8 -0
- data/lib/devise/models/rememberable.rb +92 -0
- data/lib/devise/models/timeoutable.rb +28 -0
- data/lib/devise/models/token_authenticatable.rb +89 -0
- data/lib/devise/models/trackable.rb +16 -0
- data/lib/devise/models/validatable.rb +39 -0
- data/lib/devise/orm/active_record.rb +41 -0
- data/lib/devise/orm/data_mapper.rb +83 -0
- data/lib/devise/orm/mongo_mapper.rb +47 -0
- data/lib/devise/rails.rb +14 -0
- data/lib/devise/rails/routes.rb +125 -0
- data/lib/devise/rails/warden_compat.rb +25 -0
- data/lib/devise/schema.rb +73 -0
- data/lib/devise/strategies/base.rb +16 -0
- data/lib/devise/strategies/database_authenticatable.rb +36 -0
- data/lib/devise/strategies/http_authenticatable.rb +59 -0
- data/lib/devise/strategies/rememberable.rb +37 -0
- data/lib/devise/strategies/token_authenticatable.rb +37 -0
- data/lib/devise/test_helpers.rb +90 -0
- data/lib/devise/version.rb +3 -0
- data/rails/init.rb +2 -0
- data/test/controllers/helpers_test.rb +177 -0
- data/test/controllers/internal_helpers_test.rb +55 -0
- data/test/controllers/url_helpers_test.rb +47 -0
- data/test/devise_test.rb +74 -0
- data/test/encryptors_test.rb +31 -0
- data/test/failure_app_test.rb +44 -0
- data/test/integration/authenticatable_test.rb +271 -0
- data/test/integration/confirmable_test.rb +97 -0
- data/test/integration/http_authenticatable_test.rb +52 -0
- data/test/integration/lockable_test.rb +102 -0
- data/test/integration/rack_middleware_test.rb +47 -0
- data/test/integration/recoverable_test.rb +141 -0
- data/test/integration/registerable_test.rb +144 -0
- data/test/integration/rememberable_test.rb +71 -0
- data/test/integration/timeoutable_test.rb +68 -0
- data/test/integration/token_authenticatable_test.rb +55 -0
- data/test/integration/trackable_test.rb +64 -0
- data/test/mailers/confirmation_instructions_test.rb +86 -0
- data/test/mailers/reset_password_instructions_test.rb +68 -0
- data/test/mailers/unlock_instructions_test.rb +62 -0
- data/test/mapping_test.rb +148 -0
- data/test/models/authenticatable_test.rb +180 -0
- data/test/models/confirmable_test.rb +212 -0
- data/test/models/lockable_test.rb +202 -0
- data/test/models/recoverable_test.rb +138 -0
- data/test/models/rememberable_test.rb +135 -0
- data/test/models/timeoutable_test.rb +28 -0
- data/test/models/token_authenticatable_test.rb +51 -0
- data/test/models/trackable_test.rb +5 -0
- data/test/models/validatable_test.rb +106 -0
- data/test/models_test.rb +70 -0
- data/test/orm/active_record.rb +31 -0
- data/test/orm/mongo_mapper.rb +20 -0
- data/test/rails_app/app/active_record/admin.rb +7 -0
- data/test/rails_app/app/active_record/user.rb +7 -0
- data/test/rails_app/app/controllers/admins_controller.rb +6 -0
- data/test/rails_app/app/controllers/application_controller.rb +12 -0
- data/test/rails_app/app/controllers/home_controller.rb +4 -0
- data/test/rails_app/app/controllers/users_controller.rb +16 -0
- data/test/rails_app/app/helpers/application_helper.rb +3 -0
- data/test/rails_app/app/mongo_mapper/admin.rb +13 -0
- data/test/rails_app/app/mongo_mapper/user.rb +14 -0
- data/test/rails_app/config/boot.rb +110 -0
- data/test/rails_app/config/environment.rb +42 -0
- data/test/rails_app/config/environments/development.rb +17 -0
- data/test/rails_app/config/environments/production.rb +28 -0
- data/test/rails_app/config/environments/test.rb +28 -0
- data/test/rails_app/config/initializers/devise.rb +82 -0
- data/test/rails_app/config/initializers/inflections.rb +2 -0
- data/test/rails_app/config/initializers/new_rails_defaults.rb +24 -0
- data/test/rails_app/config/initializers/session_store.rb +15 -0
- data/test/rails_app/config/routes.rb +21 -0
- data/test/routes_test.rb +110 -0
- data/test/support/assertions_helper.rb +37 -0
- data/test/support/integration_tests_helper.rb +71 -0
- data/test/support/test_silencer.rb +5 -0
- data/test/support/tests_helper.rb +39 -0
- data/test/test_helper.rb +21 -0
- data/test/test_helpers_test.rb +57 -0
- metadata +213 -0
metadata
ADDED
@@ -0,0 +1,213 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dcu-devise
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 7
|
9
|
+
version: 1.0.7
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- "Jos\xC3\xA9 Valim"
|
13
|
+
- "Carlos Ant\xC3\xB4nio"
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-06-30 00:00:00 -05:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: warden
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 10
|
31
|
+
- 3
|
32
|
+
version: 0.10.3
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
description: Flexible authentication solution for Rails with Warden
|
36
|
+
email: contact@plataformatec.com.br
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files:
|
42
|
+
- README.rdoc
|
43
|
+
- TODO
|
44
|
+
files:
|
45
|
+
- CHANGELOG.rdoc
|
46
|
+
- MIT-LICENSE
|
47
|
+
- README.rdoc
|
48
|
+
- Rakefile
|
49
|
+
- TODO
|
50
|
+
- app/controllers/confirmations_controller.rb
|
51
|
+
- app/controllers/passwords_controller.rb
|
52
|
+
- app/controllers/registrations_controller.rb
|
53
|
+
- app/controllers/sessions_controller.rb
|
54
|
+
- app/controllers/unlocks_controller.rb
|
55
|
+
- app/models/devise_mailer.rb
|
56
|
+
- app/views/confirmations/new.html.erb
|
57
|
+
- app/views/devise_mailer/confirmation_instructions.html.erb
|
58
|
+
- app/views/devise_mailer/reset_password_instructions.html.erb
|
59
|
+
- app/views/devise_mailer/unlock_instructions.html.erb
|
60
|
+
- app/views/passwords/edit.html.erb
|
61
|
+
- app/views/passwords/new.html.erb
|
62
|
+
- app/views/registrations/edit.html.erb
|
63
|
+
- app/views/registrations/new.html.erb
|
64
|
+
- app/views/sessions/new.html.erb
|
65
|
+
- app/views/shared/_devise_links.erb
|
66
|
+
- app/views/unlocks/new.html.erb
|
67
|
+
- generators/devise/USAGE
|
68
|
+
- generators/devise/devise_generator.rb
|
69
|
+
- generators/devise/lib/route_devise.rb
|
70
|
+
- generators/devise/templates/migration.rb
|
71
|
+
- generators/devise/templates/model.rb
|
72
|
+
- generators/devise_install/USAGE
|
73
|
+
- generators/devise_install/devise_install_generator.rb
|
74
|
+
- generators/devise_install/templates/README
|
75
|
+
- generators/devise_install/templates/devise.rb
|
76
|
+
- generators/devise_views/USAGE
|
77
|
+
- generators/devise_views/devise_views_generator.rb
|
78
|
+
- lib/devise.rb
|
79
|
+
- lib/devise/controllers/helpers.rb
|
80
|
+
- lib/devise/controllers/internal_helpers.rb
|
81
|
+
- lib/devise/controllers/url_helpers.rb
|
82
|
+
- lib/devise/encryptors/authlogic_sha512.rb
|
83
|
+
- lib/devise/encryptors/base.rb
|
84
|
+
- lib/devise/encryptors/bcrypt.rb
|
85
|
+
- lib/devise/encryptors/clearance_sha1.rb
|
86
|
+
- lib/devise/encryptors/restful_authentication_sha1.rb
|
87
|
+
- lib/devise/encryptors/sha1.rb
|
88
|
+
- lib/devise/encryptors/sha512.rb
|
89
|
+
- lib/devise/failure_app.rb
|
90
|
+
- lib/devise/hooks/activatable.rb
|
91
|
+
- lib/devise/hooks/rememberable.rb
|
92
|
+
- lib/devise/hooks/timeoutable.rb
|
93
|
+
- lib/devise/hooks/trackable.rb
|
94
|
+
- lib/devise/locales/en.yml
|
95
|
+
- lib/devise/mapping.rb
|
96
|
+
- lib/devise/models.rb
|
97
|
+
- lib/devise/models/activatable.rb
|
98
|
+
- lib/devise/models/confirmable.rb
|
99
|
+
- lib/devise/models/database_authenticatable.rb
|
100
|
+
- lib/devise/models/http_authenticatable.rb
|
101
|
+
- lib/devise/models/lockable.rb
|
102
|
+
- lib/devise/models/recoverable.rb
|
103
|
+
- lib/devise/models/registerable.rb
|
104
|
+
- lib/devise/models/rememberable.rb
|
105
|
+
- lib/devise/models/timeoutable.rb
|
106
|
+
- lib/devise/models/token_authenticatable.rb
|
107
|
+
- lib/devise/models/trackable.rb
|
108
|
+
- lib/devise/models/validatable.rb
|
109
|
+
- lib/devise/orm/active_record.rb
|
110
|
+
- lib/devise/orm/data_mapper.rb
|
111
|
+
- lib/devise/orm/mongo_mapper.rb
|
112
|
+
- lib/devise/rails.rb
|
113
|
+
- lib/devise/rails/routes.rb
|
114
|
+
- lib/devise/rails/warden_compat.rb
|
115
|
+
- lib/devise/schema.rb
|
116
|
+
- lib/devise/strategies/base.rb
|
117
|
+
- lib/devise/strategies/database_authenticatable.rb
|
118
|
+
- lib/devise/strategies/http_authenticatable.rb
|
119
|
+
- lib/devise/strategies/rememberable.rb
|
120
|
+
- lib/devise/strategies/token_authenticatable.rb
|
121
|
+
- lib/devise/test_helpers.rb
|
122
|
+
- lib/devise/version.rb
|
123
|
+
- rails/init.rb
|
124
|
+
has_rdoc: true
|
125
|
+
homepage: http://github.com/plataformatec/devise
|
126
|
+
licenses: []
|
127
|
+
|
128
|
+
post_install_message:
|
129
|
+
rdoc_options:
|
130
|
+
- --charset=UTF-8
|
131
|
+
require_paths:
|
132
|
+
- lib
|
133
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
segments:
|
138
|
+
- 0
|
139
|
+
version: "0"
|
140
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
segments:
|
145
|
+
- 0
|
146
|
+
version: "0"
|
147
|
+
requirements: []
|
148
|
+
|
149
|
+
rubyforge_project:
|
150
|
+
rubygems_version: 1.3.6
|
151
|
+
signing_key:
|
152
|
+
specification_version: 3
|
153
|
+
summary: Flexible authentication solution for Rails with Warden
|
154
|
+
test_files:
|
155
|
+
- test/mapping_test.rb
|
156
|
+
- test/rails_app/app/active_record/user.rb
|
157
|
+
- test/rails_app/app/active_record/admin.rb
|
158
|
+
- test/rails_app/app/mongo_mapper/user.rb
|
159
|
+
- test/rails_app/app/mongo_mapper/admin.rb
|
160
|
+
- test/rails_app/app/helpers/application_helper.rb
|
161
|
+
- test/rails_app/app/controllers/admins_controller.rb
|
162
|
+
- test/rails_app/app/controllers/users_controller.rb
|
163
|
+
- test/rails_app/app/controllers/application_controller.rb
|
164
|
+
- test/rails_app/app/controllers/home_controller.rb
|
165
|
+
- test/rails_app/config/initializers/inflections.rb
|
166
|
+
- test/rails_app/config/initializers/new_rails_defaults.rb
|
167
|
+
- test/rails_app/config/initializers/session_store.rb
|
168
|
+
- test/rails_app/config/initializers/devise.rb
|
169
|
+
- test/rails_app/config/environment.rb
|
170
|
+
- test/rails_app/config/routes.rb
|
171
|
+
- test/rails_app/config/environments/test.rb
|
172
|
+
- test/rails_app/config/environments/development.rb
|
173
|
+
- test/rails_app/config/environments/production.rb
|
174
|
+
- test/rails_app/config/boot.rb
|
175
|
+
- test/orm/active_record.rb
|
176
|
+
- test/orm/mongo_mapper.rb
|
177
|
+
- test/devise_test.rb
|
178
|
+
- test/integration/confirmable_test.rb
|
179
|
+
- test/integration/rack_middleware_test.rb
|
180
|
+
- test/integration/http_authenticatable_test.rb
|
181
|
+
- test/integration/recoverable_test.rb
|
182
|
+
- test/integration/trackable_test.rb
|
183
|
+
- test/integration/token_authenticatable_test.rb
|
184
|
+
- test/integration/registerable_test.rb
|
185
|
+
- test/integration/authenticatable_test.rb
|
186
|
+
- test/integration/rememberable_test.rb
|
187
|
+
- test/integration/lockable_test.rb
|
188
|
+
- test/integration/timeoutable_test.rb
|
189
|
+
- test/mailers/confirmation_instructions_test.rb
|
190
|
+
- test/mailers/unlock_instructions_test.rb
|
191
|
+
- test/mailers/reset_password_instructions_test.rb
|
192
|
+
- test/encryptors_test.rb
|
193
|
+
- test/models/confirmable_test.rb
|
194
|
+
- test/models/recoverable_test.rb
|
195
|
+
- test/models/trackable_test.rb
|
196
|
+
- test/models/token_authenticatable_test.rb
|
197
|
+
- test/models/validatable_test.rb
|
198
|
+
- test/models/authenticatable_test.rb
|
199
|
+
- test/models/rememberable_test.rb
|
200
|
+
- test/models/lockable_test.rb
|
201
|
+
- test/models/timeoutable_test.rb
|
202
|
+
- test/test_helper.rb
|
203
|
+
- test/support/tests_helper.rb
|
204
|
+
- test/support/assertions_helper.rb
|
205
|
+
- test/support/test_silencer.rb
|
206
|
+
- test/support/integration_tests_helper.rb
|
207
|
+
- test/models_test.rb
|
208
|
+
- test/failure_app_test.rb
|
209
|
+
- test/controllers/internal_helpers_test.rb
|
210
|
+
- test/controllers/helpers_test.rb
|
211
|
+
- test/controllers/url_helpers_test.rb
|
212
|
+
- test/test_helpers_test.rb
|
213
|
+
- test/routes_test.rb
|