password_strength 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/password_strength/base.rb +2 -1
- data/lib/password_strength/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac4e6d055b4d0ab0540abc95fc4e2ba16403b215
|
4
|
+
data.tar.gz: 1e077cdf0a350ef189e28a5daa6340478c5358fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba9036a1ece3f16d0f81db4210bd0465a2d4f7b20a6d11a429f1dfaba86e8c65db01011ed5ae320e0a6dd411b5f588f21c620e147b4d82307e1ac25e25239b6d
|
7
|
+
data.tar.gz: 61d95581e777bfb44deac202034584e0145b201fe18726bdabfd5515f6e37fe2d03ac86382286a1d70038f26079230d0bdf5e440a1613e567e08d9becc22f6a3
|
data/Gemfile.lock
CHANGED
@@ -21,6 +21,8 @@ module PasswordStrength
|
|
21
21
|
# The current test status. Can be +:weak+, +:good+, +:strong+ or +:invalid+.
|
22
22
|
attr_reader :status
|
23
23
|
|
24
|
+
# The ActiveRecord instance.
|
25
|
+
# It only makes sense if you're creating a custom ActiveRecord validator.
|
24
26
|
attr_reader :record
|
25
27
|
|
26
28
|
# Set what characters cannot be present on password.
|
@@ -222,7 +224,6 @@ module PasswordStrength
|
|
222
224
|
end
|
223
225
|
|
224
226
|
def repetitions(text, size) # :nodoc:
|
225
|
-
text = text.mb_chars
|
226
227
|
count = 0
|
227
228
|
matches = []
|
228
229
|
|