devise-secure_password 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c68e938643943a1eb93719ef84ee969b350a12b
4
- data.tar.gz: 897e40fb6a73452cbfa6fb9b39dc8990a76c65f9
3
+ metadata.gz: 537cd336906fbda7eca3ea27bec51cb3198394c3
4
+ data.tar.gz: 7aeb869fd6060a7c85479d17ef8939329bda484f
5
5
  SHA512:
6
- metadata.gz: 1a1d93997de4b2dd7dc8fe6c4495c2956f5cb17b9eeb474e1e30e022c16e5f9b20e76ff826b027e4a43d4d200246ed11b112d2d809278808d34434c3c2c2c23d
7
- data.tar.gz: 4c1e883be6167375195bdcf3487d959163ba425a5d1cb3aca3e34036e6a2d682569e5d6760e59a3bcb48fc9b422c2bd7dd6e476f624c7bb3ee3e5db74ed40754
6
+ metadata.gz: 5ad811d3b36cae428e2461087445bab6fd337298d0292b82ec2caa33d98e1377f1eb09a6379f32d1863fdd6c48b088417b6ecd8ba2ba665f8edc5a099e435d9b
7
+ data.tar.gz: 4b4c9c7b91c9489b3ee347903226bbdda54ff56dff82d2a060442a7f3088ff1819e2f46043c01c3fae0352f13d50c95656cbff7de74f27d62326f8c095467a23
@@ -1,5 +1,9 @@
1
1
  # Changelog: devise-secure_password
2
2
 
3
+ ## 1.0.6 / 2018-05-04
4
+
5
+ * Fix scoping for previous passwords returned through associations.
6
+
3
7
  ## 1.0.5 / 2018-04-30
4
8
 
5
9
  * Update rails-app-5_1_4 config for SQLite3Adapter changes.
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- devise-secure_password (1.0.5)
12
+ devise-secure_password (1.0.6)
13
13
  devise (>= 4.0.0, < 5.0.0)
14
14
  railties (>= 5.0.0, < 6.0.0)
15
15
 
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: ..
11
11
  specs:
12
- devise-secure_password (1.0.5)
12
+ devise-secure_password (1.0.6)
13
13
  devise (>= 4.0.0, < 5.0.0)
14
14
  railties (>= 5.0.0, < 6.0.0)
15
15
 
@@ -26,7 +26,7 @@ module Devise
26
26
  end
27
27
 
28
28
  def password_recent?
29
- last_password = previous_passwords.unscoped.last
29
+ last_password = previous_passwords.first
30
30
  last_password&.fresh?(self.class.password_minimum_age)
31
31
  end
32
32
 
@@ -13,7 +13,7 @@ module Devise
13
13
  end
14
14
 
15
15
  def password_expired?
16
- last_password = previous_passwords.unscoped.last
16
+ last_password = previous_passwords.first
17
17
  inconsistent_password?(last_password) || last_password.stale?(self.class.password_maximum_age)
18
18
  end
19
19
 
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module SecurePassword
3
- VERSION = '1.0.5'.freeze
3
+ VERSION = '1.0.6'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-secure_password
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Eissler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-30 00:00:00.000000000 Z
11
+ date: 2018-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
@@ -474,6 +474,7 @@ files:
474
474
  - "./lib/support/string/character_counter.rb"
475
475
  - "./pkg/devise-secure_password-1.0.3.gem"
476
476
  - "./pkg/devise-secure_password-1.0.4.gem"
477
+ - "./pkg/devise-secure_password-1.0.5.gem"
477
478
  homepage: https://github.com/valimail/devise-secure_password
478
479
  licenses:
479
480
  - MIT