mongoid-devise 1.0.1

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