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
- MTg2OWRjMjIyNTIwZGJiYWQ3MzAxMmYzOTRlMDAyZjQ5Yzk4ZTc4Nw==
4
+ OTlmMzljN2I0MmJhZjNjYTg1MWExZDdhZDRkYjViNjgxZjYyNzI2MQ==
5
5
  data.tar.gz: !binary |-
6
- ZGYyZjAxZGI5MGE2YzZjMmRlMGRiODY3OTljZjQ1MWRjNWEwMWRkYg==
6
+ YmZhODAzYjI4YmEzMmJkZGQ1MGNjYjMwNDJiN2U5MjJkOTQ1ZWUxNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWUwN2Q0NTE0MTA0NGM0OGZjNmUzMDQ4ZDQwYmRjYWYzOTM4NDdjZGY5ODU5
10
- NGUwMjU4NTFjOWNhOTA5MTg3NTc3ZmE5NWU3YTYyYjBkMzQ0YzY3NDE4MjRm
11
- NTJkODVkNzVjMmJkMGM4ZTczOTRmNDI3M2IwZDE3NjViNzQ0NTg=
9
+ NGVkMTliMDVkOTFlZTkyZWVmMWZmOGVkZTdhOTk3ODZiNDkxZjk1M2FiNGY0
10
+ ZWJjYjMzMzlhNmU0NGMxZTQwNzMxODZhZDQ0NjNlOTVjMWIyMTg0ODA4MTlj
11
+ OTk1ZjAzYmU5NDY5Y2JmZGM4MDRkNmQ2OWY1YWU1Y2E5MzRmNDg=
12
12
  data.tar.gz: !binary |-
13
- NmE5ZjUzY2FkNTNkMjU5ZWNmOWFlMTM1MmNlZDc3ZWJmYTI4NjBlMWM5ZWU4
14
- ZjhiMmUzYmNjNTk3Yzg2YWJlODlhMWNhNTYzOWI0ZmZkYjhjNTIxMzdmMGMy
15
- NDkwMTFlOTdmNGNhNGYzNWM0OTJiODJlYzFlMDZjYTNlNzAxYmU=
13
+ NzY1ZjVlY2RjN2Y5YjMzMmZkZGQ0NzlhMTg4NWU2ODY4ZWFkMzBjN2E5ZDEz
14
+ YTI0NzgwMzc1ODVkYjZiZGU4ZmNkMmU1NTljYjA1NmYzMGFmMzRiYWI2MTMy
15
+ NDcyZjAyM2Q0NjkyNDMyMmFkODRlYWQ3ODNmYjBiZDI2NjRlMjU=
data/Gemfile CHANGED
@@ -12,4 +12,5 @@ end
12
12
  group :test do
13
13
  gem "codeclimate-test-reporter", require: nil
14
14
  gem "test_after_commit"
15
+ gem 'lumberjack'
15
16
  end
@@ -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.update(encrypted_password: encrypted_password)
18
+ resource.update_column(:encrypted_password, encrypted_password)
19
19
  end
20
20
 
21
21
  end
@@ -1,7 +1,7 @@
1
1
  module Devise
2
2
  module Async
3
3
  module Stretch
4
- VERSION = "0.0.6"
4
+ VERSION = "0.0.7"
5
5
  end
6
6
  end
7
7
  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.6
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-01-27 00:00:00.000000000 Z
11
+ date: 2015-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise