loyal_devise 2.1.2 → 2.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. data/.gitignore +2 -0
  2. data/.travis.yml +14 -9
  3. data/.yardopts +9 -0
  4. data/CHANGELOG.rdoc +60 -5
  5. data/CONTRIBUTING.md +4 -2
  6. data/Gemfile +7 -7
  7. data/Gemfile.lock +107 -101
  8. data/MIT-LICENSE +1 -1
  9. data/README.md +110 -48
  10. data/Rakefile +1 -0
  11. data/app/controllers/devise/confirmations_controller.rb +2 -4
  12. data/app/controllers/devise/omniauth_callbacks_controller.rb +0 -1
  13. data/app/controllers/devise/passwords_controller.rb +16 -5
  14. data/app/controllers/devise/registrations_controller.rb +13 -7
  15. data/app/controllers/devise/sessions_controller.rb +6 -6
  16. data/app/controllers/devise/unlocks_controller.rb +3 -4
  17. data/app/controllers/devise_controller.rb +12 -33
  18. data/app/helpers/devise_helper.rb +0 -1
  19. data/app/mailers/devise/mailer.rb +7 -8
  20. data/app/views/devise/mailer/confirmation_instructions.html.erb +1 -1
  21. data/app/views/devise/mailer/reset_password_instructions.html.erb +1 -1
  22. data/app/views/devise/registrations/edit.html.erb +5 -1
  23. data/config/locales/en.yml +48 -48
  24. data/devise.gemspec +6 -6
  25. data/devise.png +0 -0
  26. data/gemfiles/{Gemfile.rails-3.1.x → Gemfile.rails-3.2.x} +8 -12
  27. data/gemfiles/Gemfile.rails-3.2.x.lock +156 -0
  28. data/lib/devise.rb +34 -11
  29. data/lib/devise/controllers/helpers.rb +33 -7
  30. data/lib/devise/controllers/rememberable.rb +6 -3
  31. data/lib/devise/controllers/scoped_views.rb +1 -2
  32. data/lib/devise/controllers/url_helpers.rb +0 -1
  33. data/lib/devise/delegator.rb +0 -1
  34. data/lib/devise/failure_app.rb +8 -2
  35. data/lib/devise/hooks/activatable.rb +1 -2
  36. data/lib/devise/hooks/forgetable.rb +0 -1
  37. data/lib/devise/hooks/lockable.rb +1 -2
  38. data/lib/devise/hooks/rememberable.rb +1 -2
  39. data/lib/devise/hooks/timeoutable.rb +0 -1
  40. data/lib/devise/hooks/trackable.rb +0 -1
  41. data/lib/devise/mailers/helpers.rb +18 -14
  42. data/lib/devise/mapping.rb +6 -7
  43. data/lib/devise/models.rb +0 -1
  44. data/lib/devise/models/authenticatable.rb +50 -27
  45. data/lib/devise/models/confirmable.rb +37 -16
  46. data/lib/devise/models/database_authenticatable.rb +17 -3
  47. data/lib/devise/models/lockable.rb +1 -2
  48. data/lib/devise/models/omniauthable.rb +1 -2
  49. data/lib/devise/models/recoverable.rb +10 -6
  50. data/lib/devise/models/registerable.rb +0 -1
  51. data/lib/devise/models/rememberable.rb +1 -2
  52. data/lib/devise/models/timeoutable.rb +1 -2
  53. data/lib/devise/models/token_authenticatable.rb +0 -1
  54. data/lib/devise/models/trackable.rb +0 -1
  55. data/lib/devise/models/validatable.rb +0 -1
  56. data/lib/devise/modules.rb +1 -2
  57. data/lib/devise/omniauth.rb +0 -1
  58. data/lib/devise/omniauth/config.rb +0 -1
  59. data/lib/devise/omniauth/url_helpers.rb +0 -1
  60. data/lib/devise/orm/active_record.rb +1 -2
  61. data/lib/devise/orm/mongoid.rb +1 -2
  62. data/lib/devise/{param_filter.rb → parameter_filter.rb} +10 -12
  63. data/lib/devise/parameter_sanitizer.rb +59 -0
  64. data/lib/devise/rails.rb +0 -1
  65. data/lib/devise/rails/routes.rb +22 -18
  66. data/lib/devise/rails/warden_compat.rb +0 -30
  67. data/lib/devise/strategies/authenticatable.rb +8 -6
  68. data/lib/devise/strategies/base.rb +1 -2
  69. data/lib/devise/strategies/database_authenticatable.rb +1 -2
  70. data/lib/devise/strategies/rememberable.rb +1 -2
  71. data/lib/devise/strategies/token_authenticatable.rb +38 -4
  72. data/lib/devise/test_helpers.rb +0 -1
  73. data/lib/devise/time_inflector.rb +1 -2
  74. data/lib/devise/version.rb +1 -2
  75. data/lib/generators/active_record/devise_generator.rb +1 -5
  76. data/lib/generators/active_record/templates/migration.rb +0 -1
  77. data/lib/generators/active_record/templates/migration_existing.rb +0 -1
  78. data/lib/generators/devise/devise_generator.rb +0 -1
  79. data/lib/generators/devise/install_generator.rb +0 -1
  80. data/lib/generators/devise/orm_helpers.rb +1 -2
  81. data/lib/generators/devise/views_generator.rb +8 -3
  82. data/lib/generators/mongoid/devise_generator.rb +1 -2
  83. data/lib/generators/templates/README +1 -1
  84. data/lib/generators/templates/devise.rb +10 -5
  85. data/lib/generators/templates/markerb/confirmation_instructions.markerb +1 -1
  86. data/lib/generators/templates/simple_form_for/confirmations/new.html.erb +1 -0
  87. data/lib/generators/templates/simple_form_for/registrations/edit.html.erb +6 -1
  88. data/lib/generators/templates/simple_form_for/unlocks/new.html.erb +1 -0
  89. data/loyal_devise.gemspec +27 -0
  90. data/test/controllers/custom_strategy_test.rb +0 -1
  91. data/test/controllers/helpers_test.rb +0 -1
  92. data/test/controllers/internal_helpers_test.rb +13 -4
  93. data/test/controllers/passwords_controller_test.rb +32 -0
  94. data/test/controllers/sessions_controller_test.rb +28 -1
  95. data/test/controllers/url_helpers_test.rb +0 -1
  96. data/test/delegator_test.rb +0 -1
  97. data/test/devise_test.rb +12 -2
  98. data/test/failure_app_test.rb +3 -4
  99. data/test/generators/active_record_generator_test.rb +1 -4
  100. data/test/generators/devise_generator_test.rb +0 -1
  101. data/test/generators/install_generator_test.rb +0 -1
  102. data/test/generators/mongoid_generator_test.rb +0 -1
  103. data/test/generators/views_generator_test.rb +16 -2
  104. data/test/helpers/devise_helper_test.rb +1 -2
  105. data/test/integration/authenticatable_test.rb +92 -27
  106. data/test/integration/confirmable_test.rb +7 -7
  107. data/test/integration/database_authenticatable_test.rb +8 -7
  108. data/test/integration/http_authenticatable_test.rb +19 -2
  109. data/test/integration/lockable_test.rb +1 -2
  110. data/test/integration/omniauthable_test.rb +2 -3
  111. data/test/integration/recoverable_test.rb +40 -12
  112. data/test/integration/registerable_test.rb +17 -14
  113. data/test/integration/rememberable_test.rb +16 -10
  114. data/test/integration/timeoutable_test.rb +11 -2
  115. data/test/integration/token_authenticatable_test.rb +45 -2
  116. data/test/integration/trackable_test.rb +1 -2
  117. data/test/mailers/confirmation_instructions_test.rb +11 -3
  118. data/test/mailers/reset_password_instructions_test.rb +11 -3
  119. data/test/mailers/unlock_instructions_test.rb +11 -2
  120. data/test/mapping_test.rb +0 -1
  121. data/test/models/authenticatable_test.rb +6 -1
  122. data/test/models/confirmable_test.rb +53 -2
  123. data/test/models/database_authenticatable_test.rb +57 -21
  124. data/test/models/lockable_test.rb +1 -2
  125. data/test/models/omniauthable_test.rb +0 -1
  126. data/test/models/recoverable_test.rb +21 -5
  127. data/test/models/registerable_test.rb +0 -1
  128. data/test/models/rememberable_test.rb +4 -4
  129. data/test/models/serializable_test.rb +8 -8
  130. data/test/models/timeoutable_test.rb +0 -1
  131. data/test/models/token_authenticatable_test.rb +0 -1
  132. data/test/models/trackable_test.rb +0 -1
  133. data/test/models/validatable_test.rb +16 -6
  134. data/test/models_test.rb +7 -24
  135. data/test/omniauth/config_test.rb +1 -2
  136. data/test/omniauth/url_helpers_test.rb +4 -2
  137. data/test/orm/active_record.rb +1 -1
  138. data/test/orm/mongoid.rb +2 -4
  139. data/test/parameter_sanitizer_test.rb +51 -0
  140. data/test/rails_app/Rakefile +0 -4
  141. data/test/rails_app/app/active_record/admin.rb +0 -1
  142. data/test/rails_app/app/active_record/shim.rb +1 -2
  143. data/test/rails_app/app/active_record/user.rb +0 -1
  144. data/test/rails_app/app/controllers/admins/sessions_controller.rb +1 -2
  145. data/test/rails_app/app/controllers/admins_controller.rb +0 -1
  146. data/test/rails_app/app/controllers/application_controller.rb +1 -1
  147. data/test/rails_app/app/controllers/home_controller.rb +0 -1
  148. data/test/rails_app/app/controllers/publisher/registrations_controller.rb +1 -2
  149. data/test/rails_app/app/controllers/publisher/sessions_controller.rb +1 -2
  150. data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +1 -2
  151. data/test/rails_app/app/controllers/users_controller.rb +8 -1
  152. data/test/rails_app/app/helpers/application_helper.rb +0 -1
  153. data/test/rails_app/app/mailers/users/mailer.rb +4 -1
  154. data/test/rails_app/app/mongoid/admin.rb +4 -3
  155. data/test/rails_app/app/mongoid/shim.rb +3 -5
  156. data/test/rails_app/app/mongoid/user.rb +2 -3
  157. data/test/rails_app/app/views/users/edit_form.html.erb +1 -0
  158. data/test/rails_app/bin/bundle +3 -0
  159. data/test/rails_app/bin/rails +4 -0
  160. data/test/rails_app/bin/rake +4 -0
  161. data/test/rails_app/config/application.rb +1 -3
  162. data/test/rails_app/config/boot.rb +3 -4
  163. data/test/rails_app/config/environment.rb +2 -3
  164. data/test/rails_app/config/environments/development.rb +23 -8
  165. data/test/rails_app/config/environments/production.rb +68 -18
  166. data/test/rails_app/config/environments/test.rb +18 -16
  167. data/test/rails_app/config/initializers/backtrace_silencers.rb +0 -1
  168. data/test/rails_app/config/initializers/devise.rb +0 -1
  169. data/test/rails_app/config/initializers/inflections.rb +0 -1
  170. data/test/rails_app/config/initializers/secret_token.rb +8 -3
  171. data/test/rails_app/config/initializers/session_store.rb +1 -0
  172. data/test/rails_app/config/routes.rb +20 -17
  173. data/test/rails_app/db/migrate/20100401102949_create_tables.rb +0 -1
  174. data/test/rails_app/db/schema.rb +0 -1
  175. data/test/rails_app/lib/shared_admin.rb +0 -1
  176. data/test/rails_app/lib/shared_user.rb +0 -2
  177. data/test/routes_test.rb +22 -21
  178. data/test/support/assertions.rb +0 -1
  179. data/test/support/helpers.rb +1 -2
  180. data/test/support/integration.rb +0 -1
  181. data/test/support/webrat/integrations/rails.rb +0 -1
  182. data/test/test_helper.rb +8 -2
  183. data/test/test_helpers_test.rb +0 -1
  184. data/test/test_models.rb +26 -0
  185. metadata +65 -27
  186. data/gemfiles/Gemfile.rails-3.1.x.lock +0 -167
  187. data/test/indifferent_hash.rb +0 -34
  188. data/test/rails_app/script/rails +0 -10
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  require 'active_support/test_case'
3
2
 
4
3
  class ActiveSupport::TestCase
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  require 'active_support/test_case'
3
2
 
4
3
  class ActiveSupport::TestCase
@@ -64,7 +63,7 @@ class ActiveSupport::TestCase
64
63
  def clear_cached_variables(options)
65
64
  if options.key?(:case_insensitive_keys) || options.key?(:strip_whitespace_keys)
66
65
  Devise.mappings.each do |_, mapping|
67
- mapping.to.instance_variable_set(:@devise_param_filter, nil)
66
+ mapping.to.instance_variable_set(:@devise_parameter_filter, nil)
68
67
  end
69
68
  end
70
69
  end
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  require 'action_dispatch/testing/integration'
3
2
 
4
3
  class ActionDispatch::IntegrationTest
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  require 'webrat/core/elements/form'
3
2
  require 'action_dispatch/testing/integration'
4
3
 
@@ -1,17 +1,23 @@
1
- # -*- encoding : utf-8 -*-
2
1
  ENV["RAILS_ENV"] = "test"
3
2
  DEVISE_ORM = (ENV["DEVISE_ORM"] || :active_record).to_sym
4
3
 
5
4
  $:.unshift File.dirname(__FILE__)
6
5
  puts "\n==> Devise.orm = #{DEVISE_ORM.inspect}"
7
6
 
7
+ module Devise
8
+ # Detection for minor differences between Rails 3.2 and 4 in tests.
9
+ def self.rails4?
10
+ Rails.version.start_with? '4'
11
+ end
12
+ end
13
+
8
14
  require "rails_app/config/environment"
9
15
  require "rails/test_help"
10
16
  require "orm/#{DEVISE_ORM}"
11
17
 
12
18
  I18n.load_path << File.expand_path("../support/locale/en.yml", __FILE__)
13
19
 
14
- require 'mocha'
20
+ require 'mocha/setup'
15
21
  require 'webrat'
16
22
  Webrat.configure do |config|
17
23
  config.mode = :rails
@@ -1,4 +1,3 @@
1
- # -*- encoding : utf-8 -*-
2
1
  require 'test_helper'
3
2
 
4
3
  class TestHelpersTest < ActionController::TestCase
@@ -0,0 +1,26 @@
1
+ class Configurable < User
2
+ devise :database_authenticatable, :confirmable, :rememberable, :timeoutable, :lockable,
3
+ :stretches => 15, :pepper => 'abcdef', :allow_unconfirmed_access_for => 5.days,
4
+ :remember_for => 7.days, :timeout_in => 15.minutes, :unlock_in => 10.days
5
+ end
6
+
7
+ class WithValidation < Admin
8
+ devise :database_authenticatable, :validatable, :password_length => 2..6
9
+ end
10
+
11
+ class UserWithValidation < User
12
+ validates_presence_of :username
13
+ end
14
+
15
+ class UserWithVirtualAttributes < User
16
+ devise :case_insensitive_keys => [ :email, :email_confirmation ]
17
+ validates :email, :presence => true, :confirmation => {:on => :create}
18
+ end
19
+
20
+ class Several < Admin
21
+ devise :validatable
22
+ devise :lockable
23
+ end
24
+
25
+ class Inheritable < Admin
26
+ end
metadata CHANGED
@@ -1,39 +1,38 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loyal_devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - José Valim
9
- - Carlos Antônio
8
+ - happy
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-03-16 00:00:00.000000000 Z
12
+ date: 2013-06-26 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
- name: loyal_warden
15
+ name: warden
17
16
  requirement: !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
- - - "~>"
19
+ - - ~>
21
20
  - !ruby/object:Gem::Version
22
- version: 2.0.0
21
+ version: 1.2.1
23
22
  type: :runtime
24
23
  prerelease: false
25
24
  version_requirements: !ruby/object:Gem::Requirement
26
25
  none: false
27
26
  requirements:
28
- - - "~>"
27
+ - - ~>
29
28
  - !ruby/object:Gem::Version
30
- version: 2.0.0
29
+ version: 1.2.1
31
30
  - !ruby/object:Gem::Dependency
32
31
  name: orm_adapter
33
32
  requirement: !ruby/object:Gem::Requirement
34
33
  none: false
35
34
  requirements:
36
- - - "~>"
35
+ - - ~>
37
36
  - !ruby/object:Gem::Version
38
37
  version: '0.1'
39
38
  type: :runtime
@@ -41,7 +40,7 @@ dependencies:
41
40
  version_requirements: !ruby/object:Gem::Requirement
42
41
  none: false
43
42
  requirements:
44
- - - "~>"
43
+ - - ~>
45
44
  - !ruby/object:Gem::Version
46
45
  version: '0.1'
47
46
  - !ruby/object:Gem::Dependency
@@ -49,7 +48,7 @@ dependencies:
49
48
  requirement: !ruby/object:Gem::Requirement
50
49
  none: false
51
50
  requirements:
52
- - - "~>"
51
+ - - ~>
53
52
  - !ruby/object:Gem::Version
54
53
  version: '3.0'
55
54
  type: :runtime
@@ -57,17 +56,40 @@ dependencies:
57
56
  version_requirements: !ruby/object:Gem::Requirement
58
57
  none: false
59
58
  requirements:
60
- - - "~>"
59
+ - - ~>
61
60
  - !ruby/object:Gem::Version
62
61
  version: '3.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: railties
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: 3.2.6
70
+ - - <
71
+ - !ruby/object:Gem::Version
72
+ version: '5'
73
+ type: :runtime
74
+ prerelease: false
75
+ version_requirements: !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - ! '>='
79
+ - !ruby/object:Gem::Version
80
+ version: 3.2.6
81
+ - - <
82
+ - !ruby/object:Gem::Version
83
+ version: '5'
63
84
  description: Flexible authentication solution for Rails with Warden
64
- email: contact@plataformatec.com.br
85
+ email: andywang7259@gmail.com
65
86
  executables: []
66
87
  extensions: []
67
88
  extra_rdoc_files: []
68
89
  files:
69
- - ".gitignore"
70
- - ".travis.yml"
90
+ - .gitignore
91
+ - .travis.yml
92
+ - .yardopts
71
93
  - CHANGELOG.rdoc
72
94
  - CONTRIBUTING.md
73
95
  - Gemfile
@@ -98,8 +120,9 @@ files:
98
120
  - app/views/devise/unlocks/new.html.erb
99
121
  - config/locales/en.yml
100
122
  - devise.gemspec
101
- - gemfiles/Gemfile.rails-3.1.x
102
- - gemfiles/Gemfile.rails-3.1.x.lock
123
+ - devise.png
124
+ - gemfiles/Gemfile.rails-3.2.x
125
+ - gemfiles/Gemfile.rails-3.2.x.lock
103
126
  - lib/devise.rb
104
127
  - lib/devise/controllers/helpers.rb
105
128
  - lib/devise/controllers/rememberable.rb
@@ -134,7 +157,8 @@ files:
134
157
  - lib/devise/omniauth/url_helpers.rb
135
158
  - lib/devise/orm/active_record.rb
136
159
  - lib/devise/orm/mongoid.rb
137
- - lib/devise/param_filter.rb
160
+ - lib/devise/parameter_filter.rb
161
+ - lib/devise/parameter_sanitizer.rb
138
162
  - lib/devise/rails.rb
139
163
  - lib/devise/rails/routes.rb
140
164
  - lib/devise/rails/warden_compat.rb
@@ -166,9 +190,11 @@ files:
166
190
  - lib/generators/templates/simple_form_for/registrations/new.html.erb
167
191
  - lib/generators/templates/simple_form_for/sessions/new.html.erb
168
192
  - lib/generators/templates/simple_form_for/unlocks/new.html.erb
193
+ - loyal_devise.gemspec
169
194
  - test/controllers/custom_strategy_test.rb
170
195
  - test/controllers/helpers_test.rb
171
196
  - test/controllers/internal_helpers_test.rb
197
+ - test/controllers/passwords_controller_test.rb
172
198
  - test/controllers/sessions_controller_test.rb
173
199
  - test/controllers/url_helpers_test.rb
174
200
  - test/delegator_test.rb
@@ -180,7 +206,6 @@ files:
180
206
  - test/generators/mongoid_generator_test.rb
181
207
  - test/generators/views_generator_test.rb
182
208
  - test/helpers/devise_helper_test.rb
183
- - test/indifferent_hash.rb
184
209
  - test/integration/authenticatable_test.rb
185
210
  - test/integration/confirmable_test.rb
186
211
  - test/integration/database_authenticatable_test.rb
@@ -215,6 +240,7 @@ files:
215
240
  - test/omniauth/url_helpers_test.rb
216
241
  - test/orm/active_record.rb
217
242
  - test/orm/mongoid.rb
243
+ - test/parameter_sanitizer_test.rb
218
244
  - test/rails_app/Rakefile
219
245
  - test/rails_app/app/active_record/admin.rb
220
246
  - test/rails_app/app/active_record/shim.rb
@@ -240,9 +266,13 @@ files:
240
266
  - test/rails_app/app/views/home/private.html.erb
241
267
  - test/rails_app/app/views/home/user_dashboard.html.erb
242
268
  - test/rails_app/app/views/layouts/application.html.erb
269
+ - test/rails_app/app/views/users/edit_form.html.erb
243
270
  - test/rails_app/app/views/users/index.html.erb
244
271
  - test/rails_app/app/views/users/mailer/confirmation_instructions.erb
245
272
  - test/rails_app/app/views/users/sessions/new.html.erb
273
+ - test/rails_app/bin/bundle
274
+ - test/rails_app/bin/rails
275
+ - test/rails_app/bin/rake
246
276
  - test/rails_app/config.ru
247
277
  - test/rails_app/config/application.rb
248
278
  - test/rails_app/config/boot.rb
@@ -255,6 +285,7 @@ files:
255
285
  - test/rails_app/config/initializers/devise.rb
256
286
  - test/rails_app/config/initializers/inflections.rb
257
287
  - test/rails_app/config/initializers/secret_token.rb
288
+ - test/rails_app/config/initializers/session_store.rb
258
289
  - test/rails_app/config/routes.rb
259
290
  - test/rails_app/db/migrate/20100401102949_create_tables.rb
260
291
  - test/rails_app/db/schema.rb
@@ -264,7 +295,6 @@ files:
264
295
  - test/rails_app/public/422.html
265
296
  - test/rails_app/public/500.html
266
297
  - test/rails_app/public/favicon.ico
267
- - test/rails_app/script/rails
268
298
  - test/routes_test.rb
269
299
  - test/support/assertions.rb
270
300
  - test/support/helpers.rb
@@ -273,8 +303,10 @@ files:
273
303
  - test/support/webrat/integrations/rails.rb
274
304
  - test/test_helper.rb
275
305
  - test/test_helpers_test.rb
306
+ - test/test_models.rb
276
307
  homepage: http://github.com/blogsoso/devise
277
- licenses: []
308
+ licenses:
309
+ - MIT
278
310
  post_install_message:
279
311
  rdoc_options: []
280
312
  require_paths:
@@ -282,18 +314,18 @@ require_paths:
282
314
  required_ruby_version: !ruby/object:Gem::Requirement
283
315
  none: false
284
316
  requirements:
285
- - - ">="
317
+ - - ! '>='
286
318
  - !ruby/object:Gem::Version
287
319
  version: '0'
288
320
  required_rubygems_version: !ruby/object:Gem::Requirement
289
321
  none: false
290
322
  requirements:
291
- - - ">="
323
+ - - ! '>='
292
324
  - !ruby/object:Gem::Version
293
325
  version: '0'
294
326
  requirements: []
295
327
  rubyforge_project:
296
- rubygems_version: 1.8.25
328
+ rubygems_version: 1.8.24
297
329
  signing_key:
298
330
  specification_version: 3
299
331
  summary: Flexible authentication solution for Rails with Warden
@@ -301,6 +333,7 @@ test_files:
301
333
  - test/controllers/custom_strategy_test.rb
302
334
  - test/controllers/helpers_test.rb
303
335
  - test/controllers/internal_helpers_test.rb
336
+ - test/controllers/passwords_controller_test.rb
304
337
  - test/controllers/sessions_controller_test.rb
305
338
  - test/controllers/url_helpers_test.rb
306
339
  - test/delegator_test.rb
@@ -312,7 +345,6 @@ test_files:
312
345
  - test/generators/mongoid_generator_test.rb
313
346
  - test/generators/views_generator_test.rb
314
347
  - test/helpers/devise_helper_test.rb
315
- - test/indifferent_hash.rb
316
348
  - test/integration/authenticatable_test.rb
317
349
  - test/integration/confirmable_test.rb
318
350
  - test/integration/database_authenticatable_test.rb
@@ -347,6 +379,7 @@ test_files:
347
379
  - test/omniauth/url_helpers_test.rb
348
380
  - test/orm/active_record.rb
349
381
  - test/orm/mongoid.rb
382
+ - test/parameter_sanitizer_test.rb
350
383
  - test/rails_app/Rakefile
351
384
  - test/rails_app/app/active_record/admin.rb
352
385
  - test/rails_app/app/active_record/shim.rb
@@ -372,9 +405,13 @@ test_files:
372
405
  - test/rails_app/app/views/home/private.html.erb
373
406
  - test/rails_app/app/views/home/user_dashboard.html.erb
374
407
  - test/rails_app/app/views/layouts/application.html.erb
408
+ - test/rails_app/app/views/users/edit_form.html.erb
375
409
  - test/rails_app/app/views/users/index.html.erb
376
410
  - test/rails_app/app/views/users/mailer/confirmation_instructions.erb
377
411
  - test/rails_app/app/views/users/sessions/new.html.erb
412
+ - test/rails_app/bin/bundle
413
+ - test/rails_app/bin/rails
414
+ - test/rails_app/bin/rake
378
415
  - test/rails_app/config.ru
379
416
  - test/rails_app/config/application.rb
380
417
  - test/rails_app/config/boot.rb
@@ -387,6 +424,7 @@ test_files:
387
424
  - test/rails_app/config/initializers/devise.rb
388
425
  - test/rails_app/config/initializers/inflections.rb
389
426
  - test/rails_app/config/initializers/secret_token.rb
427
+ - test/rails_app/config/initializers/session_store.rb
390
428
  - test/rails_app/config/routes.rb
391
429
  - test/rails_app/db/migrate/20100401102949_create_tables.rb
392
430
  - test/rails_app/db/schema.rb
@@ -396,7 +434,6 @@ test_files:
396
434
  - test/rails_app/public/422.html
397
435
  - test/rails_app/public/500.html
398
436
  - test/rails_app/public/favicon.ico
399
- - test/rails_app/script/rails
400
437
  - test/routes_test.rb
401
438
  - test/support/assertions.rb
402
439
  - test/support/helpers.rb
@@ -405,3 +442,4 @@ test_files:
405
442
  - test/support/webrat/integrations/rails.rb
406
443
  - test/test_helper.rb
407
444
  - test/test_helpers_test.rb
445
+ - test/test_models.rb
@@ -1,167 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- devise (2.1.0.rc2)
5
- bcrypt-ruby (~> 3.0)
6
- orm_adapter (~> 0.0.7)
7
- railties (~> 3.1)
8
- warden (~> 1.1.1)
9
-
10
- GEM
11
- remote: http://rubygems.org/
12
- specs:
13
- actionmailer (3.1.4)
14
- actionpack (= 3.1.4)
15
- mail (~> 2.3.0)
16
- actionpack (3.1.4)
17
- activemodel (= 3.1.4)
18
- activesupport (= 3.1.4)
19
- builder (~> 3.0.0)
20
- erubis (~> 2.7.0)
21
- i18n (~> 0.6)
22
- rack (~> 1.3.6)
23
- rack-cache (~> 1.1)
24
- rack-mount (~> 0.8.2)
25
- rack-test (~> 0.6.1)
26
- sprockets (~> 2.0.3)
27
- activemodel (3.1.4)
28
- activesupport (= 3.1.4)
29
- builder (~> 3.0.0)
30
- i18n (~> 0.6)
31
- activerecord (3.1.4)
32
- activemodel (= 3.1.4)
33
- activesupport (= 3.1.4)
34
- arel (~> 2.2.3)
35
- tzinfo (~> 0.3.29)
36
- activeresource (3.1.4)
37
- activemodel (= 3.1.4)
38
- activesupport (= 3.1.4)
39
- activesupport (3.1.4)
40
- multi_json (~> 1.0)
41
- addressable (2.2.7)
42
- arel (2.2.3)
43
- bcrypt-ruby (3.0.1)
44
- bson (1.5.2)
45
- bson_ext (1.3.1)
46
- builder (3.0.0)
47
- columnize (0.3.6)
48
- erubis (2.7.0)
49
- faraday (0.7.6)
50
- addressable (~> 2.2)
51
- multipart-post (~> 1.1)
52
- rack (~> 1.1)
53
- hashie (1.2.0)
54
- hike (1.2.1)
55
- i18n (0.6.0)
56
- json (1.7.0)
57
- linecache (0.46)
58
- rbx-require-relative (> 0.0.4)
59
- mail (2.3.3)
60
- i18n (>= 0.4.0)
61
- mime-types (~> 1.16)
62
- treetop (~> 1.4.8)
63
- metaclass (0.0.1)
64
- mime-types (1.18)
65
- mocha (0.10.4)
66
- metaclass (~> 0.0.1)
67
- mongo (1.3.1)
68
- bson (>= 1.3.1)
69
- mongoid (2.4.4)
70
- activemodel (~> 3.1)
71
- mongo (~> 1.3)
72
- tzinfo (~> 0.3.22)
73
- multi_json (1.3.4)
74
- multipart-post (1.1.5)
75
- nokogiri (1.5.0)
76
- oauth2 (0.5.2)
77
- faraday (~> 0.7)
78
- multi_json (~> 1.0)
79
- omniauth (1.0.2)
80
- hashie (~> 1.2)
81
- rack
82
- omniauth-facebook (1.2.0)
83
- omniauth-oauth2 (~> 1.0.0)
84
- omniauth-oauth2 (1.0.0)
85
- oauth2 (~> 0.5.0)
86
- omniauth (~> 1.0)
87
- omniauth-openid (1.0.1)
88
- omniauth (~> 1.0)
89
- rack-openid (~> 1.3.1)
90
- orm_adapter (0.0.7)
91
- polyglot (0.3.3)
92
- rack (1.3.6)
93
- rack-cache (1.2)
94
- rack (>= 0.4)
95
- rack-mount (0.8.3)
96
- rack (>= 1.0.0)
97
- rack-openid (1.3.1)
98
- rack (>= 1.1.0)
99
- ruby-openid (>= 2.1.8)
100
- rack-ssl (1.3.2)
101
- rack
102
- rack-test (0.6.1)
103
- rack (>= 1.0)
104
- rails (3.1.4)
105
- actionmailer (= 3.1.4)
106
- actionpack (= 3.1.4)
107
- activerecord (= 3.1.4)
108
- activeresource (= 3.1.4)
109
- activesupport (= 3.1.4)
110
- bundler (~> 1.0)
111
- railties (= 3.1.4)
112
- railties (3.1.4)
113
- actionpack (= 3.1.4)
114
- activesupport (= 3.1.4)
115
- rack-ssl (~> 1.3.2)
116
- rake (>= 0.8.7)
117
- rdoc (~> 3.4)
118
- thor (~> 0.14.6)
119
- rake (0.9.2.2)
120
- rbx-require-relative (0.0.5)
121
- rdoc (3.12)
122
- json (~> 1.4)
123
- ruby-debug (0.10.4)
124
- columnize (>= 0.1)
125
- ruby-debug-base (~> 0.10.4.0)
126
- ruby-debug-base (0.10.4)
127
- linecache (>= 0.3)
128
- ruby-openid (2.1.8)
129
- sprockets (2.0.4)
130
- hike (~> 1.2)
131
- rack (~> 1.0)
132
- tilt (~> 1.1, != 1.3.0)
133
- sqlite3 (1.3.5)
134
- thor (0.14.6)
135
- tilt (1.3.3)
136
- treetop (1.4.10)
137
- polyglot
138
- polyglot (>= 0.3.1)
139
- tzinfo (0.3.33)
140
- warden (1.1.1)
141
- rack (>= 1.0)
142
- webrat (0.7.2)
143
- nokogiri (>= 1.2.0)
144
- rack (>= 1.0)
145
- rack-test (>= 0.5.3)
146
-
147
- PLATFORMS
148
- ruby
149
-
150
- DEPENDENCIES
151
- activerecord-jdbc-adapter
152
- activerecord-jdbcsqlite3-adapter
153
- bson_ext (~> 1.3.0)
154
- devise!
155
- jruby-openssl
156
- mocha
157
- mongo (~> 1.3.0)
158
- mongoid (~> 2.0)
159
- omniauth (~> 1.0.0)
160
- omniauth-facebook
161
- omniauth-oauth2 (~> 1.0.0)
162
- omniauth-openid (~> 1.0.1)
163
- rails (~> 3.1.0)
164
- rdoc
165
- ruby-debug (>= 0.10.3)
166
- sqlite3
167
- webrat (= 0.7.2)