devise 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of devise might be problematic. Click here for more details.
- data/CHANGELOG.rdoc +5 -0
- data/Gemfile.lock +4 -4
- data/gemfiles/Gemfile.rails-3.1.x.lock +6 -6
- data/lib/devise/models/authenticatable.rb +1 -1
- data/lib/devise/models/confirmable.rb +0 -5
- data/lib/devise/version.rb +1 -1
- data/test/integration/recoverable_test.rb +0 -9
- data/test/models/authenticatable_test.rb +3 -3
- metadata +24 -24
data/CHANGELOG.rdoc
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
devise (2.1.
|
4
|
+
devise (2.1.4)
|
5
5
|
bcrypt-ruby (~> 3.0)
|
6
6
|
orm_adapter (~> 0.1)
|
7
7
|
railties (~> 3.1)
|
@@ -39,7 +39,7 @@ GEM
|
|
39
39
|
multi_json (~> 1.0)
|
40
40
|
addressable (2.2.6)
|
41
41
|
arel (3.0.2)
|
42
|
-
bcrypt-ruby (3.
|
42
|
+
bcrypt-ruby (3.1.1)
|
43
43
|
bson (1.5.1)
|
44
44
|
bson_ext (1.3.1)
|
45
45
|
builder (3.0.0)
|
@@ -87,7 +87,7 @@ GEM
|
|
87
87
|
omniauth-openid (1.0.1)
|
88
88
|
omniauth (~> 1.0)
|
89
89
|
rack-openid (~> 1.3.1)
|
90
|
-
orm_adapter (0.
|
90
|
+
orm_adapter (0.4.0)
|
91
91
|
polyglot (0.3.3)
|
92
92
|
rack (1.4.1)
|
93
93
|
rack-cache (1.2)
|
@@ -135,7 +135,7 @@ GEM
|
|
135
135
|
polyglot
|
136
136
|
polyglot (>= 0.3.1)
|
137
137
|
tzinfo (0.3.33)
|
138
|
-
warden (1.2.
|
138
|
+
warden (1.2.3)
|
139
139
|
rack (>= 1.0)
|
140
140
|
webrat (0.7.2)
|
141
141
|
nokogiri (>= 1.2.0)
|
@@ -1,11 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ..
|
3
3
|
specs:
|
4
|
-
devise (2.1.
|
4
|
+
devise (2.1.4)
|
5
5
|
bcrypt-ruby (~> 3.0)
|
6
|
-
orm_adapter (~> 0.
|
6
|
+
orm_adapter (~> 0.1)
|
7
7
|
railties (~> 3.1)
|
8
|
-
warden (~> 1.
|
8
|
+
warden (~> 1.2.1)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: http://rubygems.org/
|
@@ -40,7 +40,7 @@ GEM
|
|
40
40
|
multi_json (~> 1.0)
|
41
41
|
addressable (2.2.7)
|
42
42
|
arel (2.2.3)
|
43
|
-
bcrypt-ruby (3.
|
43
|
+
bcrypt-ruby (3.1.1)
|
44
44
|
bson (1.5.2)
|
45
45
|
bson_ext (1.3.1)
|
46
46
|
builder (3.0.0)
|
@@ -87,7 +87,7 @@ GEM
|
|
87
87
|
omniauth-openid (1.0.1)
|
88
88
|
omniauth (~> 1.0)
|
89
89
|
rack-openid (~> 1.3.1)
|
90
|
-
orm_adapter (0.0
|
90
|
+
orm_adapter (0.4.0)
|
91
91
|
polyglot (0.3.3)
|
92
92
|
rack (1.3.6)
|
93
93
|
rack-cache (1.2)
|
@@ -137,7 +137,7 @@ GEM
|
|
137
137
|
polyglot
|
138
138
|
polyglot (>= 0.3.1)
|
139
139
|
tzinfo (0.3.33)
|
140
|
-
warden (1.
|
140
|
+
warden (1.2.3)
|
141
141
|
rack (>= 1.0)
|
142
142
|
webrat (0.7.2)
|
143
143
|
nokogiri (>= 1.2.0)
|
@@ -206,7 +206,7 @@ module Devise
|
|
206
206
|
# Example:
|
207
207
|
#
|
208
208
|
# def self.find_for_authentication(tainted_conditions)
|
209
|
-
# find_first_by_auth_conditions(tainted_conditions, active
|
209
|
+
# find_first_by_auth_conditions(tainted_conditions, :active => true)
|
210
210
|
# end
|
211
211
|
#
|
212
212
|
# Finally, notice that Devise also queries for users in other scenarios
|
@@ -177,11 +177,6 @@ module Devise
|
|
177
177
|
generate_confirmation_token && save(:validate => false)
|
178
178
|
end
|
179
179
|
|
180
|
-
def after_password_reset
|
181
|
-
super
|
182
|
-
confirm! unless confirmed?
|
183
|
-
end
|
184
|
-
|
185
180
|
def postpone_email_change_until_confirmation
|
186
181
|
@reconfirmation_required = true
|
187
182
|
self.unconfirmed_email = self.email
|
data/lib/devise/version.rb
CHANGED
@@ -201,15 +201,6 @@ class PasswordTest < ActionController::IntegrationTest
|
|
201
201
|
assert !warden.authenticated?(:user)
|
202
202
|
end
|
203
203
|
|
204
|
-
test 'sign in user automatically and confirm after changing its password if it\'s not confirmed' do
|
205
|
-
user = create_user(:confirm => false)
|
206
|
-
request_forgot_password
|
207
|
-
reset_password :reset_password_token => user.reload.reset_password_token
|
208
|
-
|
209
|
-
assert warden.authenticated?(:user)
|
210
|
-
assert user.reload.confirmed?
|
211
|
-
end
|
212
|
-
|
213
204
|
test 'reset password request with valid E-Mail in XML format should return valid response' do
|
214
205
|
create_user
|
215
206
|
post user_password_path(:format => 'xml'), :user => {:email => "user@test.com"}
|
@@ -6,8 +6,8 @@ class AuthenticatableTest < ActiveSupport::TestCase
|
|
6
6
|
end
|
7
7
|
|
8
8
|
test 'find_first_by_auth_conditions allows custom filtering parameters' do
|
9
|
-
user = User.create!(email
|
10
|
-
assert_equal User.find_first_by_auth_conditions({ email
|
11
|
-
assert_equal User.find_first_by_auth_conditions({ email
|
9
|
+
user = User.create!(:email => "example@example.com", :password => "123456")
|
10
|
+
assert_equal User.find_first_by_auth_conditions({ :email => "example@example.com" }), user
|
11
|
+
assert_equal User.find_first_by_auth_conditions({ :email => "example@example.com" }, :id => user.id + 1), nil
|
12
12
|
end
|
13
13
|
end
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.1.4
|
4
5
|
prerelease:
|
5
|
-
version: 2.1.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- José Valim
|
@@ -10,72 +10,72 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-08-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
|
16
|
+
name: warden
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
17
19
|
requirements:
|
18
20
|
- - ~>
|
19
21
|
- !ruby/object:Gem::Version
|
20
22
|
version: 1.2.1
|
21
|
-
none: false
|
22
|
-
name: warden
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
26
27
|
requirements:
|
27
28
|
- - ~>
|
28
29
|
- !ruby/object:Gem::Version
|
29
30
|
version: 1.2.1
|
30
|
-
none: false
|
31
31
|
- !ruby/object:Gem::Dependency
|
32
|
-
|
32
|
+
name: orm_adapter
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
33
35
|
requirements:
|
34
36
|
- - ~>
|
35
37
|
- !ruby/object:Gem::Version
|
36
38
|
version: '0.1'
|
37
|
-
none: false
|
38
|
-
name: orm_adapter
|
39
39
|
type: :runtime
|
40
40
|
prerelease: false
|
41
|
-
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
42
43
|
requirements:
|
43
44
|
- - ~>
|
44
45
|
- !ruby/object:Gem::Version
|
45
46
|
version: '0.1'
|
46
|
-
none: false
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
|
48
|
+
name: bcrypt-ruby
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
49
51
|
requirements:
|
50
52
|
- - ~>
|
51
53
|
- !ruby/object:Gem::Version
|
52
54
|
version: '3.0'
|
53
|
-
none: false
|
54
|
-
name: bcrypt-ruby
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
58
59
|
requirements:
|
59
60
|
- - ~>
|
60
61
|
- !ruby/object:Gem::Version
|
61
62
|
version: '3.0'
|
62
|
-
none: false
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
|
-
|
64
|
+
name: railties
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
65
67
|
requirements:
|
66
68
|
- - ~>
|
67
69
|
- !ruby/object:Gem::Version
|
68
70
|
version: '3.1'
|
69
|
-
none: false
|
70
|
-
name: railties
|
71
71
|
type: :runtime
|
72
72
|
prerelease: false
|
73
|
-
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
74
75
|
requirements:
|
75
76
|
- - ~>
|
76
77
|
- !ruby/object:Gem::Version
|
77
78
|
version: '3.1'
|
78
|
-
none: false
|
79
79
|
description: Flexible authentication solution for Rails with Warden
|
80
80
|
email: contact@plataformatec.com.br
|
81
81
|
executables: []
|
@@ -294,17 +294,17 @@ rdoc_options: []
|
|
294
294
|
require_paths:
|
295
295
|
- lib
|
296
296
|
required_ruby_version: !ruby/object:Gem::Requirement
|
297
|
+
none: false
|
297
298
|
requirements:
|
298
299
|
- - ! '>='
|
299
300
|
- !ruby/object:Gem::Version
|
300
301
|
version: '0'
|
301
|
-
none: false
|
302
302
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
303
|
+
none: false
|
303
304
|
requirements:
|
304
305
|
- - ! '>='
|
305
306
|
- !ruby/object:Gem::Version
|
306
307
|
version: '0'
|
307
|
-
none: false
|
308
308
|
requirements: []
|
309
309
|
rubyforge_project: devise
|
310
310
|
rubygems_version: 1.8.23
|