devise-async-stretch 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTlmMzljN2I0MmJhZjNjYTg1MWExZDdhZDRkYjViNjgxZjYyNzI2MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmZhODAzYjI4YmEzMmJkZGQ1MGNjYjMwNDJiN2U5MjJkOTQ1ZWUxNQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGVkMTliMDVkOTFlZTkyZWVmMWZmOGVkZTdhOTk3ODZiNDkxZjk1M2FiNGY0
|
10
|
+
ZWJjYjMzMzlhNmU0NGMxZTQwNzMxODZhZDQ0NjNlOTVjMWIyMTg0ODA4MTlj
|
11
|
+
OTk1ZjAzYmU5NDY5Y2JmZGM4MDRkNmQ2OWY1YWU1Y2E5MzRmNDg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzY1ZjVlY2RjN2Y5YjMzMmZkZGQ0NzlhMTg4NWU2ODY4ZWFkMzBjN2E5ZDEz
|
14
|
+
YTI0NzgwMzc1ODVkYjZiZGU4ZmNkMmU1NTljYjA1NmYzMGFmMzRiYWI2MTMy
|
15
|
+
NDcyZjAyM2Q0NjkyNDMyMmFkODRlYWQ3ODNmYjBiZDI2NjRlMjU=
|
data/Gemfile
CHANGED
@@ -15,7 +15,7 @@ module Devise
|
|
15
15
|
resource = klass.constantize.to_adapter.get!(id)
|
16
16
|
encrypted_password = resource.bcrypt(password, resource.class.stretches)
|
17
17
|
|
18
|
-
resource.
|
18
|
+
resource.update_column(:encrypted_password, encrypted_password)
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|
@@ -25,6 +25,7 @@ module Devise
|
|
25
25
|
|
26
26
|
test "intermidiate encrypted_password gets set" do
|
27
27
|
user = User.new(email: 'ed@example.com', password: 'password1')
|
28
|
+
|
28
29
|
encrypted_password = user.encrypted_password
|
29
30
|
assert_not_empty encrypted_password
|
30
31
|
|
@@ -34,6 +35,17 @@ module Devise
|
|
34
35
|
refute_equal encrypted_password, user.reload.encrypted_password
|
35
36
|
end
|
36
37
|
|
38
|
+
test "the record doesn't get touched, skipping callbacks" do
|
39
|
+
user = User.new(email: 'ed@example.com', password: 'password1')
|
40
|
+
|
41
|
+
user.save
|
42
|
+
updated_at = user.updated_at
|
43
|
+
|
44
|
+
Base.new.perform("User", user.id, 'password1')
|
45
|
+
|
46
|
+
assert_equal updated_at.to_i, user.reload.updated_at.to_i
|
47
|
+
end
|
48
|
+
|
37
49
|
end
|
38
50
|
end
|
39
51
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise-async-stretch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Westendorf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|